From 2ebea9f5ae94768f302ceb06a2e23138885eeb91 Mon Sep 17 00:00:00 2001 From: yuruo Date: Wed, 3 Jul 2024 22:59:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/windows.ts | 2 +- package.bat | 17 ++++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/app/src/main/windows.ts b/app/src/main/windows.ts index fad2602..432ea76 100644 --- a/app/src/main/windows.ts +++ b/app/src/main/windows.ts @@ -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' diff --git a/package.bat b/package.bat index 94ef518..b4ab1b1 100644 --- a/package.bat +++ b/package.bat @@ -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