Skip to content

Commit

Permalink
adds initial apple upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
aristidesstaffieri committed Jul 26, 2023
1 parent d75e9fc commit e4fa3a7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/scripts/archive-safari-app.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -eo pipefail

xcodebuild -scheme Freighter -archivePath ./build/Freighter.xarchive build

xcodebuild -archivePath ./build/Freighter.xarchive \
-exportOptionsPlist Freighter.plist \
-exportPath ./build \
-allowProvisioningUpdates \
-exportArchive | xcpretty

xcrun altool --upload-app -f build/Freighter.ipa --apiKey $API_KEY --apiIssuer $API_ISSUER --verbose
2 changes: 2 additions & 0 deletions .github/workflows/submitProduction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ jobs:
client-id: ${{ secrets.EXTENSION_CLIENT_ID }}
client-secret: ${{ secrets.EXTENSION_CLIENT_SECRET }}
refresh-token: ${{ secrets.EXTENSION_REFRESH_TOKEN }}
- name: Submit extension to Apple
run: ./.github/scripts/archive-safari-app.sh
- name: Slack Notification
uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 #v2.2.0
env:
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,15 @@ fi
```

This will instruct the git hook to use the .nvmrc found in this repo.

### TEMP NOTES

Setup Safari to allow unsigned extensions
https://developer.apple.com/documentation/safariservices/safari_web_extensions/running_your_safari_web_extension#3744467

xcrun safari-web-extension-converter freighter/extension/build --project-location freighter-safari

https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari#3586258
says we can't use persistent bg scripts but I don't see that when running it locally

Run in xcode and open in Safari

0 comments on commit e4fa3a7

Please sign in to comment.