commit 0cb400efe3113ec1ab5d33a1c90f22d0529f7121
parent 6da23a13743e2c03933141cbee0416038173eaa4
Author: William Casarin <jb55@jb55.com>
Date: Fri, 13 Dec 2024 10:11:29 -0800
osx: update bundle name
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/crates/notedeck_chrome/Cargo.toml b/crates/notedeck_chrome/Cargo.toml
@@ -45,6 +45,8 @@ android-activity = { version = "0.4", features = [ "native-activity" ] }
winit = { version = "0.30.5", features = [ "android-native-activity" ] }
[package.metadata.bundle]
+name = "Notedeck"
+short_description = "The nostr browser"
identifier = "com.damus.notedeck"
icon = ["assets/app_icon.icns"]
diff --git a/scripts/macos_build.sh b/scripts/macos_build.sh
@@ -5,6 +5,7 @@ set -u # Treat unset variables as an error
set -o pipefail # Catch errors in pipelines
# Ensure the script is running in the correct directory
+NAME="Notedeck"
REQUIRED_DIR="notedeck"
ARCH=${ARCH:-"aarch64"}
TARGET=${TARGET:-${ARCH}-apple-darwin}
@@ -53,11 +54,11 @@ codesign \
--options runtime \
--entitlements entitlements.plist \
--sign "$NOTEDECK_APPLE_RELEASE_CERT_ID" \
- target/${TARGET}/release/bundle/osx/notedeck.app
+ target/${TARGET}/release/bundle/osx/$NAME.app
# Create a zip for notarization
echo "Creating zip for notarization..."
-zip -r notedeck.zip target/${TARGET}/release/bundle/osx/notedeck.app
+zip -r notedeck.zip target/${TARGET}/release/bundle/osx/$NAME.app
# Submit for notarization
echo "Submitting for notarization..."
@@ -70,7 +71,7 @@ xcrun notarytool submit \
# Staple the notarization
echo "Stapling notarization to the app..."
-xcrun stapler staple target/${TARGET}/release/bundle/osx/notedeck.app
+xcrun stapler staple target/${TARGET}/release/bundle/osx/$NAME.app
echo "Removing notedeck.zip"
rm notedeck.zip
@@ -81,7 +82,7 @@ mkdir -p packages
create-dmg \
--window-size 600 400 \
--app-drop-link 400 100 \
- packages/notedeck-${ARCH}.dmg \
- target/${TARGET}/release/bundle/osx/notedeck.app
+ packages/$NAME-${ARCH}.dmg \
+ target/${TARGET}/release/bundle/osx/$NAME.app
echo "Build and signing process completed successfully."