Skip to content

Commit

Permalink
[_]: Decode key base64 directly on notarization step
Browse files Browse the repository at this point in the history
  • Loading branch information
PixoDev committed Oct 25, 2023
1 parent f60e26c commit 0b3e542
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-macos-dmg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Add env.json
run: echo ${{ secrets.JSON_ENV }} >> ./InternxtDesktop/env.local.json
run: echo ${{ secrets.JSON_ENV }} > ./InternxtDesktop/env.local.json


- name: Run Fastlane release
Expand Down
13 changes: 7 additions & 6 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ platform :mac do

setup_ci()

app_store_connect_api_key(
key_id: ENV["APP_STORE_KEY_ID"],
issuer_id: ENV["APP_STORE_ISSUER_ID"],
key_content: ENV["APP_STORE_KEY_CONTENT_BASE64"],
is_key_content_base64: true
)

# Prepare certificates using Match
match(
type: "developer_id",
Expand All @@ -47,8 +42,14 @@ platform :mac do
scheme: "InternxtDesktop",
)


notarize(
package: './build/Internxt Drive.app',
api_key: {
key_id: ENV["APP_STORE_KEY_ID"],
issuer_id: ENV["APP_STORE_ISSUER_ID"],
key: Base64.decode64(ENV["APP_STORE_KEY_CONTENT_BASE64"]),
}
)

end
Expand Down

0 comments on commit 0b3e542

Please sign in to comment.