Update build.sh

Signed-off-by: Tlntin <TlntinDeng01@Gmail.com>
This commit is contained in:
Tlntin
2023-01-11 23:51:48 +08:00
committed by GitHub
parent 91c959865a
commit b3d86c2dba

4
script/build.sh vendored
View File

@@ -75,7 +75,7 @@ do
if [[ "$OSTYPE" =~ ^darwin ]]; then if [[ "$OSTYPE" =~ ^darwin ]]; then
# update icon # update icon
# if icon exsits, change icon path # if icon exsits, change icon path
if [! -f "src-tauri/icons/${package_name}.icons" ]; then if [ ! -f "src-tauri/icons/${package_name}.icons" ]; then
# else, replace icon to default # else, replace icon to default
echo "warning" echo "warning"
echo "icon for MacOS not exsist, will use default icon to replace it" echo "icon for MacOS not exsist, will use default icon to replace it"
@@ -92,7 +92,7 @@ do
if [[ "$OSTYPE" =~ ^linux ]]; then if [[ "$OSTYPE" =~ ^linux ]]; then
# update icon # update icon
# if icon exsits, change icon path # if icon exsits, change icon path
if [! -f "src-tauri/png/${package_name}_512.png" ]; then if [ ! -f "src-tauri/png/${package_name}_512.png" ]; then
# else, replace icon to default # else, replace icon to default
echo "warning" echo "warning"
echo "icon for linux not exsist, will use default icon to replace it" echo "icon for linux not exsist, will use default icon to replace it"