Fix the regular expression with errors during batch packaging in pake-cli
This commit is contained in:
10
script/build.bat
vendored
10
script/build.bat
vendored
@@ -52,8 +52,8 @@ for /f "skip=1 tokens=1-4 delims=," %%i in (app.csv) do (
|
|||||||
:: replace url
|
:: replace url
|
||||||
.\script\sd.exe -s !old_url! !url! src-tauri\tauri.conf.json
|
.\script\sd.exe -s !old_url! !url! src-tauri\tauri.conf.json
|
||||||
::replace pacakge name
|
::replace pacakge name
|
||||||
.\script\sd.exe !old_title! !title! src-tauri\tauri.conf.json
|
.\script\sd.exe -s !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_name! !name! src-tauri\tauri.windows.conf.json
|
||||||
if not exist src-tauri\png\!name!_32.ico (
|
if not exist src-tauri\png\!name!_32.ico (
|
||||||
copy src-tauri\png\icon_32.ico 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"
|
echo "output dir is output\windows"
|
||||||
|
|
||||||
::recovery code
|
::recovery code
|
||||||
.\script\sd.exe %url% %init_url% src-tauri\tauri.conf.json
|
.\script\sd.exe -s %url% %init_url% src-tauri\tauri.conf.json
|
||||||
.\script\sd.exe %title% %init_title% src-tauri\tauri.conf.json
|
.\script\sd.exe -s %title% %init_title% src-tauri\tauri.conf.json
|
||||||
.\script\sd.exe %name% %init_name% src-tauri\tauri.windows.conf.json
|
.\script\sd.exe -s %name% %init_name% src-tauri\tauri.windows.conf.json
|
||||||
30
src-tauri/tauri.conf.json
Normal file
30
src-tauri/tauri.conf.json
Normal file
@@ -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": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user