Skip to content

Commit

Permalink
github: build IPA on release
Browse files Browse the repository at this point in the history
  • Loading branch information
osy committed Feb 19, 2020
1 parent 64b2bb3 commit ac89c10
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,27 @@ jobs:
with:
name: UTM-${{ matrix.arch }}
path: build-utm
package:
name: Package
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'release'
steps:
- name: Download Artifact
uses: actions/download-artifact@v1
with:
name: UTM-arm64
- name: Package IPA
run: |
mkdir Payload
mv UTM-arm64/UTM.xcarchive/Products/Applications/UTM.app Payload/UTM.app
zip -r UTM.zip Payload
- name: Upload Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: UTM.zip
asset_name: UTM.ipa
asset_content_type: application/octet-stream
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ If you want to build the dependencies yourself, it is highly recommended that yo

Since iOS 13.3.1, it [appears Apple has stopped allowing free developer profiles to sign dylibs][2]. As a workaround, you can either spend $99/year on an Apple developer program or < $10/year on some third party iOS signing certificate (you can search for it online, do not ask for help with this).

## Signing Existing Build
## Signing Release

If you want to sign an `ipa` from the [release page][3], there are a variety of ways. You can search online for information on sideloading IPA. One thing to note is if you are given the choice between signing for "development" or "distribution", you must chose "development". More specifically, you need the `get-task-allow` entitlement. Most signing services and tools already do this.

## Signing Development Build

If you want to sign an `xcarchive` such as from a [Github Actions][1] built artifact, you can use the following command:

Expand All @@ -60,3 +64,4 @@ UTM is distributed under the permissive Apache 2.0 license. However, it uses sev

[1]: https://github.com/utmapp/UTM/actions?query=workflow%3ABuild
[2]: https://github.com/flutter/flutter/issues/49504#issuecomment-581090664
[3]: https://github.com/utmapp/UTM/releases

0 comments on commit ac89c10

Please sign in to comment.