修改打包方式为onedir,自更新适配新打包方式
This commit is contained in:
parent
7fbbc088ae
commit
988924ed3a
4 changed files with 33 additions and 32 deletions
|
@ -9,5 +9,11 @@
|
|||
前端运行 `npm run build` 生成 `ui/dist`,之后安装 PyInstaller,运行
|
||||
|
||||
```bash
|
||||
pyinstaller -w -F --add-data ui/dist:ui/dist launcher.py
|
||||
pyinstaller -w --add-data ui/dist:ui/dist launcher.py
|
||||
```
|
||||
|
||||
在dist文件夹生成launcher文件夹,切到dist文件夹下运行
|
||||
|
||||
```bash
|
||||
tar -cf launcher.tar launcher
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue