diff --git a/script/build.sh b/script/build.sh index e48b636..c8e9f4c 100755 --- a/script/build.sh +++ b/script/build.sh @@ -38,6 +38,7 @@ if [[ "$OSTYPE" =~ ^linux ]]; then echo "Build for Linux" echo "===============" export sd=${SHELL_FOLDER}/sd-linux-x64 + chmod +x $sd # for linux, package name may be com.xxx.xxx echo "rename package name" export desktop_file="src-tauri/assets/${package_prefix}.weread.desktop" @@ -52,6 +53,7 @@ if [[ "$OSTYPE" =~ ^darwin ]]; then echo "===============" export sd=${SHELL_FOLDER}/sd-apple-x64 + chmod +x $sd echo "rename package name" $sd "\"productName\": \"weread\"" "\"productName\": \"WeRead\"" src-tauri/tauri.conf.json fi @@ -114,5 +116,7 @@ if [[ "$OSTYPE" =~ ^linux ]]; then fi if [[ "$OSTYPE" =~ ^darwin ]]; then + # replace again + $sd "\"productName\": \"WeRead\"" "\"productName\": \"weread\"" src-tauri/tauri.conf.json echo "result file in output/macos" fi \ No newline at end of file diff --git a/script/sd-apple-x64 b/script/sd-apple-x64 old mode 100644 new mode 100755