构建:打包和开发时使用不同的配置文件
This commit is contained in:
parent
89c4121f61
commit
f604e8ac99
6 changed files with 64 additions and 5 deletions
|
@ -16,6 +16,7 @@ import webview
|
|||
from py7zr.callbacks import ExtractCallback
|
||||
|
||||
from launcher import config
|
||||
from launcher.sys_config import sys_config
|
||||
from log import logger
|
||||
|
||||
mimetypes.add_type("text/html", ".html")
|
||||
|
@ -344,9 +345,7 @@ class Api:
|
|||
if Path(upgrade_script_name).exists():
|
||||
os.remove(upgrade_script_name)
|
||||
|
||||
# url = "ui/dist/index.html"
|
||||
url = "http://localhost:5173/"
|
||||
window = webview.create_window(
|
||||
f"mower-ng launcher {version}", url, js_api=Api()
|
||||
f"mower-ng launcher {version}", sys_config.get('url'), js_api=Api()
|
||||
)
|
||||
webview.start()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue