From b710cb6dfc03f045c600b5f1558afd78da1d11a7 Mon Sep 17 00:00:00 2001 From: Tlntin Date: Sun, 27 Nov 2022 22:51:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0windows=E4=B8=8B=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E6=89=93=E5=8C=85=E8=84=9A=E6=9C=AC=EF=BC=8C=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E4=B8=AD=E9=97=B4=E6=97=A0=E7=94=A8=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/build.bat | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/script/build.bat b/script/build.bat index 20a340d..bbf9018 100644 --- a/script/build.bat +++ b/script/build.bat @@ -64,7 +64,15 @@ for /f "skip=1 tokens=1-4 delims=," %%i in (app.csv) do ( @echo off call npm run tauri build -- --target x86_64-pc-windows-msvc move src-tauri\target\x86_64-pc-windows-msvc\release\bundle\msi\*.msi output\windows - + ::rm cache + del /q /f /s src-tauri\target\x86_64-pc-windows-msvc\release\*.exe + del /q /f /s src-tauri\target\x86_64-pc-windows-msvc\release\resources\*.ico + del /q /f /s src-tauri\target\x86_64-pc-windows-msvc\release\png\*.ico + del /q /f /s src-tauri\target\x86_64-pc-windows-msvc\release\wix\*.* + del /q /f /s src-tauri\target\x86_64-pc-windows-msvc\release\app.* + rd /s /q src-tauri\target\x86_64-pc-windows-msvc\release\resources + rd /s /q src-tauri\target\x86_64-pc-windows-msvc\release\png + rd /s /q src-tauri\target\x86_64-pc-windows-msvc\release\wix @echo on echo package build success! echo. @@ -76,5 +84,5 @@ for /f "skip=1 tokens=1-4 delims=," %%i in (app.csv) do ( ) :: for windows, we need replace package name to lower again -.\script\sd.exe "\"productName\": \"WeRead\"" "\"productName\": \"weread\"" src-tauri\tauri.conf.json +:: .\script\sd.exe "\"productName\": \"WeRead\"" "\"productName\": \"weread\"" src-tauri\tauri.conf.json echo "output dir is output\windows"