修改打包脚本

This commit is contained in:
yuruo 2024-07-03 22:59:42 +08:00
parent 1d76f18920
commit 2ebea9f5ae
2 changed files with 11 additions and 8 deletions

View File

@ -17,7 +17,7 @@ export const config = {
initShow: true,
width: 1300,
height: 700,
openDevTools: true,
openDevTools: false,
frame: true,
transparent: false,
hash: '/#config/category/contentList'

View File

@ -1,10 +1,13 @@
@REM cd app
@REM @REM call npm run build:win
@REM @REM move .\dist\win-unpacked\resources\app.asar.unpacked\resources\icon.png .\dist\win-unpacked\resources
@REM cd ..
cd app
call npm run build:win
move .\dist\win-unpacked\resources\app.asar.unpacked\resources\icon.png .\dist\win-unpacked\resources
cd ..
cd server
@REM call .\.venv\Scripts\activate
call .\.venv\Scripts\activate
call echo y | pyinstaller main.spec
xcopy .\.venv\Lib\site-packages\litellm\*.json .\dist\autoMateServer\_internal\litellm\ /H /F /I /Y
xcopy .\.venv\Lib\site-packages\litellm\*.json .\dist\autoMateServer\_internal\litellm\ /E /H /F /I /Y
xcopy .\dist\autoMateServer\* ..\app\dist\win-unpacked\ /E /H /F /I /Y
cd ..\app\dist
REN win-unpacked autoMate
call del autoMate.zip
powershell Compress-Archive -Path autoMate -DestinationPath autoMate.zip