2024-09-23 21:58:47 +08:00
|
|
|
# mower-ng 启动器
|
|
|
|
|
|
|
|
## 开发环境
|
|
|
|
|
|
|
|
目前只有 `pywebview` 一个依赖。
|
|
|
|
|
|
|
|
## 打包
|
|
|
|
|
|
|
|
前端运行 `npm run build` 生成 `ui/dist`,之后安装 PyInstaller,运行
|
|
|
|
|
|
|
|
```bash
|
2024-12-14 19:49:55 +08:00
|
|
|
pyinstaller -w --add-data "ui/dist:ui/dist" --add-data "launcher/sys_config/config_dist.yaml:launcher/sys_config" launcher.py
|
2024-12-01 19:56:55 +08:00
|
|
|
```
|
|
|
|
|
2024-12-14 19:49:55 +08:00
|
|
|
在dist文件夹生成launcher文件夹
|
2024-12-01 19:56:55 +08:00
|
|
|
|
|
|
|
```bash
|
2024-12-14 19:49:55 +08:00
|
|
|
tar -cf dist/launcher.tar dist/launcher
|
2024-09-23 21:58:47 +08:00
|
|
|
```
|