github: build IPA on release

This commit is contained in:
osy
2020-02-19 14:54:43 -08:00
parent 64b2bb3785
commit ac89c106ec
2 changed files with 30 additions and 1 deletions
+24
View File
@@ -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
+6 -1
View File
@@ -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:
@@ -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