Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -632,3 +632,18 @@ jobs:
nm -gU "$binary" | grep -q ___pushups_background_handler || { echo "no background handler in $binary"; exit 1; }
done
done
# The Tauri build needs its CLI, and CI has no signing identity, so the app comes out unsigned.
- name: Build the Tauri app, unsigned, and check the handler and the aps-environment entitlement
run: |
cargo install tauri-cli --locked --version 2.12.1
(cd examples/tauri && cargo tauri build --debug --bundles app)
app=$(find examples/tauri/target/debug/bundle/macos -maxdepth 1 -name "*.app" | head -n1)
binary="$app/Contents/MacOS/pushups-tauri-example"
nm -gU "$binary" | grep -q ___pushups_background_handler || { echo "no background handler in $binary"; exit 1; }
entitlements=$(codesign -d --entitlements - "$binary" 2>/dev/null || true)
if [ -n "$entitlements" ]; then
echo "$entitlements" | grep -q "com.apple.developer.aps-environment" || { echo "no aps-environment in the Tauri app entitlements"; exit 1; }
else
# An unsigned build applies no entitlements, so check the file the signed build applies.
grep -q "com.apple.developer.aps-environment" examples/tauri/entitlements.plist || { echo "no aps-environment in examples/tauri/entitlements.plist"; exit 1; }
fi
1 change: 1 addition & 0 deletions examples/tauri/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
/gen
/google-services.json
/embedded.provisionprofile
8 changes: 8 additions & 0 deletions examples/tauri/entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.aps-environment</key>
<string>development</string>
</dict>
</plist>
6 changes: 5 additions & 1 deletion examples/tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"../../assets/brand/png/icon-macos-128.png",
"../../assets/brand/png/icon-macos-32.png",
"../../assets/brand/icon-macos.ico"
]
],
"macOS": {
"entitlements": "entitlements.plist",
"hardenedRuntime": false
}
}
}
Loading