窗口名恢复版本号显示,修改readme中的打包命令

This commit is contained in:
li-xiaochen 2024-11-28 22:00:49 +08:00
parent 60d2f99675
commit 1b4ce1966f
2 changed files with 2 additions and 2 deletions

View file

@ -9,5 +9,5 @@
前端运行 `npm run build` 生成 `ui/dist`,之后安装 PyInstaller,运行 前端运行 `npm run build` 生成 `ui/dist`,之后安装 PyInstaller,运行
```bash ```bash
pyinstaller -w -F --add-data ui/dist:ui/dist main.py pyinstaller -w -F --add-data ui/dist:ui/dist launcher.py
``` ```

View file

@ -112,7 +112,7 @@ class Api:
return "failed" return "failed"
window = webview.create_window("mower-ng launcher", "ui/dist/index.html", js_api=Api()) window = webview.create_window(f"mower-ng launcher {version}", "ui/dist/index.html", js_api=Api())
webview.start() webview.start()
with config_path.open("w") as f: with config_path.open("w") as f: