From de3ef9bfdfad2215b07a6b71bba4c7988ba1418f Mon Sep 17 00:00:00 2001 From: Tlntin Date: Mon, 16 Jan 2023 22:04:51 +0800 Subject: [PATCH] Fix the regular expression with errors during batch packaging in pake-cli --- script/build.bat | 10 +++++----- src-tauri/tauri.conf.json | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 src-tauri/tauri.conf.json diff --git a/script/build.bat b/script/build.bat index 9796ee1..6f4fd92 100644 --- a/script/build.bat +++ b/script/build.bat @@ -52,8 +52,8 @@ for /f "skip=1 tokens=1-4 delims=," %%i in (app.csv) do ( :: replace url .\script\sd.exe -s !old_url! !url! src-tauri\tauri.conf.json ::replace pacakge name - .\script\sd.exe !old_title! !title! src-tauri\tauri.conf.json - .\script\sd.exe !old_name! !name! src-tauri\tauri.windows.conf.json + .\script\sd.exe -s !old_title! !title! src-tauri\tauri.conf.json + .\script\sd.exe -s !old_name! !name! src-tauri\tauri.windows.conf.json if not exist src-tauri\png\!name!_32.ico ( copy src-tauri\png\icon_32.ico src-tauri\png\!name!_32.ico ) @@ -98,6 +98,6 @@ for /f "skip=1 tokens=1-4 delims=," %%i in (app.csv) do ( echo "output dir is output\windows" ::recovery code -.\script\sd.exe %url% %init_url% src-tauri\tauri.conf.json -.\script\sd.exe %title% %init_title% src-tauri\tauri.conf.json -.\script\sd.exe %name% %init_name% src-tauri\tauri.windows.conf.json \ No newline at end of file +.\script\sd.exe -s %url% %init_url% src-tauri\tauri.conf.json +.\script\sd.exe -s %title% %init_title% src-tauri\tauri.conf.json +.\script\sd.exe -s %name% %init_name% src-tauri\tauri.windows.conf.json \ No newline at end of file diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json new file mode 100644 index 0000000..bd260ec --- /dev/null +++ b/src-tauri/tauri.conf.json @@ -0,0 +1,30 @@ +{ + "package": { + "productName": "WeRead", + "version": "1.0.0" + }, + "tauri": { + "windows": [ + { + "url": "https://weread.qq.com/", + "transparent": true, + "fullscreen": false, + "width": 1200, + "height": 780, + "resizable": true + } + ], + "security": { + "csp": null + }, + "updater": { + "active": false + } + }, + "build": { + "devPath": "../dist", + "distDir": "../dist", + "beforeBuildCommand": "", + "beforeDevCommand": "" + } +}