Skip to content

Commit

Permalink
feat: app notarisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirajn2311 committed Feb 2, 2025
1 parent e0d87fa commit 1522e8f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ jobs:
args: "--target aarch64-apple-darwin"
- platform: "macos-latest"
args: "--target x86_64-apple-darwin"
- platform: "ubuntu-22.04"
args: ""
- platform: "windows-latest"
args: "--config src-tauri/tauri.microsoftstore.conf.json --bundles msi,updater"
- platform: "windows-latest"
args: "--bundles nsis,updater"
# - platform: "ubuntu-22.04"
# args: ""
# - platform: "windows-latest"
# args: "--config src-tauri/tauri.microsoftstore.conf.json --bundles msi,updater"
# - platform: "windows-latest"
# args: "--bundles nsis,updater"

runs-on: ${{ matrix.platform }}
env:
Expand Down Expand Up @@ -118,18 +118,18 @@ jobs:
if: matrix.platform == 'macos-latest'
env:
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
APPLE_DISTRIBUTION_CERT: ${{ secrets.APPLE_DISTRIBUTION_CERT }}
PROVISIONING_PROFILE: ${{ secrets.PROVISIONING_PROFILE }}
APPLE_DEVELOPER_ID_CERT: ${{ secrets.APPLE_DEVELOPER_ID_CERT }}
PROVISIONING_PROFILE: ${{ secrets.MAC_APP_DIRECT_PROVISIONING_PROFILE }}
run: |
# create variables
CERT_BASE_PATH=/Users/runner/Library/MobileDevice/Certificates
mkdir -p $CERT_BASE_PATH
DISTRIBUTION_CERT_PATH=$CERT_BASE_PATH/distribution_certificate.p12
DEVELOPER_ID_CERT_PATH=$CERT_BASE_PATH/developer_id_certificate.p12
PP_PATH=./src-tauri/embedded.provisionprofile
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
# import certificate and provisioning profile from secrets
echo -n "$APPLE_DISTRIBUTION_CERT" | base64 --decode -o $DISTRIBUTION_CERT_PATH
echo -n "$APPLE_DEVELOPER_ID_CERT" | base64 --decode -o $DEVELOPER_ID_CERT_PATH
echo -n "$PROVISIONING_PROFILE" | base64 --decode -o $PP_PATH
# create temporary keychain
Expand All @@ -150,6 +150,9 @@ jobs:
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}

# MacOS specific
APPLE_SIGNING_IDENTITY: "Developer ID Application: Free Code Camp, Inc. (L33K9LWVP9)"

SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
VITE_FREECODECAMP_API: ${{ env.VITE_FREECODECAMP_API }}
VITE_MOCK_DATA: ${{ env.VITE_MOCK_DATA }}
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"icons/icon.ico"
],
"macOS": {
"entitlements": "./Release.entitlements",
"entitlements": "./Entitlements.plist",
"exceptionDomain": "",
"frameworks": [],
"signingIdentity": "Apple Distribution: Free Code Camp, Inc. (L33K9LWVP9)",
"signingIdentity": "Developer ID Application: Free Code Camp, Inc. (L33K9LWVP9)",
"files": {
"embedded.provisionprofile": "./embedded.provisionprofile"
}
Expand Down

0 comments on commit 1522e8f

Please sign in to comment.