Skip to content

Commit

Permalink
Merge pull request #53 from maidsafe/fix/aarch64-build-unable-to-open
Browse files Browse the repository at this point in the history
adds additional macOS configuration and improves codesign config
  • Loading branch information
beckthetech authored Jan 14, 2025
2 parents 60d783d + af236d0 commit 2ff2b05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ jobs:
if: matrix.platform == 'macos-latest'
run: |
echo "Processing macOS build..."
# Create temporary keychain
security create-keychain -p temppass build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p temppass build.keychain
# Sign the app
codesign --force --deep --sign - ./src-tauri/target/*/release/bundle/macos/*.app
# Remove quarantine from app and DMG
codesign --force --deep --options runtime --sign - ./src-tauri/target/*/release/bundle/macos/*.app
# Remove quarantine attributes
find ./src-tauri/target/*/release/bundle -name "*.app" -o -name "*.dmg" -exec xattr -rd com.apple.quarantine {} \;
# Verify signature
codesign --verify --verbose ./src-tauri/target/*/release/bundle/macos/*.app
3 changes: 2 additions & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"minimumSystemVersion": "10.13",
"entitlements": null,
"providerShortName": null,
"signingIdentity": null
"signingIdentity": null,
"hardenedRuntime": true
}
},
"plugins": {
Expand Down

0 comments on commit 2ff2b05

Please sign in to comment.