Skip to content

Commit

Permalink
osx: update bundle name
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Dec 13, 2024
1 parent 6da23a1 commit 0cb400e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions crates/notedeck_chrome/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
11 changes: 6 additions & 5 deletions scripts/macos_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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..."
Expand All @@ -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
Expand All @@ -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."

0 comments on commit 0cb400e

Please sign in to comment.