From cdb763f4c5b8c55ec5a34d52534ffeea636275aa Mon Sep 17 00:00:00 2001 From: Tlntin Date: Sun, 20 Nov 2022 11:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0Mac=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E6=89=93=E5=8C=85=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/build.sh | 4 ++++ script/sd-apple-x64 | Bin 2 files changed, 4 insertions(+) mode change 100644 => 100755 script/sd-apple-x64 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