diff --git a/README.md b/README.md index 325867c..a330caa 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,5 @@ 前端运行 `npm run build` 生成 `ui/dist`,之后安装 PyInstaller,运行 ```bash -pyinstaller -w -F --add-data ui/dist:dist main.py +pyinstaller -w -F --add-data ui/dist:ui/dist main.py ``` diff --git a/main.py b/main.py index 05b3d74..3374ddc 100644 --- a/main.py +++ b/main.py @@ -4,6 +4,8 @@ from subprocess import PIPE, STDOUT, Popen import webview +version = "2024-10-10" + config_path = Path("launcher.json") try: @@ -65,7 +67,7 @@ class Api: custom_event(line) -window = webview.create_window("mower-ng launcher", "dist/index.html", js_api=Api()) +window = webview.create_window(f"mower-ng launcher {version}", "ui/dist/index.html", js_api=Api()) webview.start() with config_path.open("w") as f: