osx: update bundle name

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-12-13 10:11:29 -08:00
parent 6da23a1374
commit 0cb400efe3
2 changed files with 8 additions and 5 deletions

View File

@@ -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"]

View File

@@ -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."