From a0a5696502024be413d8c1d392f9368c2ecedd00 Mon Sep 17 00:00:00 2001 From: B0ney <40839054+B0ney@users.noreply.github.com> Date: Sat, 4 Nov 2023 17:59:24 +0000 Subject: [PATCH] macos build script fix --- dist/build-macos.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/build-macos.sh b/dist/build-macos.sh index 2a75647e..421c214c 100644 --- a/dist/build-macos.sh +++ b/dist/build-macos.sh @@ -14,7 +14,7 @@ ARCHIVE_DIR="$RELEASE_DIR/archive" ARTIFACT_DIR="$RELEASE_DIR/artifact" BINARY="$ARCHIVE_DIR/$TARGET" -APP_TEMPLATE="dist/macos/xmodits.app/" +APP_TEMPLATE="dist/macos/xmodits.app" APP_DIR="$RELEASE_DIR/xmodits.app" APP_PLIST="$APP_DIR/Contents/Info.plist" APP_BINARY_DIR="$RELEASE_DIR/xmodits.app/Contents/Macos" @@ -41,11 +41,11 @@ BUILD="v$VERSION-$(git rev-parse --short=8 HEAD)" # remove app binary folder, copy template rm -rf $APP_DIR/* &> /dev/null -cp -fRp $APP_TEMPLATE $RELEASE_DIR +cp -r $APP_TEMPLATE $RELEASE_DIR # update version & build from template -sed -i '' -e "s/{{ VERSION }}/$VERSION/g" "$APP_PLIST" -sed -i '' -e "s/{{ BUILD }}/$BUILD/g" "$APP_PLIST" +sed -i '' "s/{{ VERSION }}/$VERSION/g" "$APP_PLIST" +sed -i '' "s/{{ BUILD }}/$BUILD/g" "$APP_PLIST" chmod +x $BINARY mv $BINARY $APP_BINARY_DIR