add default icon for windows when icon not exsist. only usefull for mutlit compile in github action.
This commit is contained in:
11
script/build.bat
vendored
11
script/build.bat
vendored
@@ -53,8 +53,17 @@ for /f "skip=1 tokens=1-4 delims=," %%i in (app.csv) do (
|
|||||||
.\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 !old_title! !title! src-tauri\tauri.conf.json
|
||||||
.\script\sd.exe !old_name! !name! src-tauri\tauri.windows.conf.json
|
if not exist src-tauri\png\!title!_32.ico(
|
||||||
|
set name=icon
|
||||||
|
.\script\sd.exe !old_name! icon src-tauri\tauri.windows.conf.json
|
||||||
|
)
|
||||||
|
|
||||||
|
if not exist src-tauri\png\!title!_256.ico(
|
||||||
|
.\script\sd.exe !old_name! icon src-tauri\tauri.windows.conf.json
|
||||||
|
set name=icon
|
||||||
|
) else (
|
||||||
|
.\script\sd.exe !old_name! !name! src-tauri\tauri.windows.conf.json
|
||||||
|
)
|
||||||
echo.
|
echo.
|
||||||
::update package info
|
::update package info
|
||||||
set old_zh_name=!name_zh!
|
set old_zh_name=!name_zh!
|
||||||
|
|||||||
Reference in New Issue
Block a user