From 0cb400efe3113ec1ab5d33a1c90f22d0529f7121 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 13 Dec 2024 10:11:29 -0800 Subject: [PATCH] osx: update bundle name Signed-off-by: William Casarin --- crates/notedeck_chrome/Cargo.toml | 2 ++ scripts/macos_build.sh | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/crates/notedeck_chrome/Cargo.toml b/crates/notedeck_chrome/Cargo.toml index c117e036..5a4d99cc 100644 --- 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 index d33480bb..346b6991 100755 --- 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."