Skip to content

Commit

Permalink
github: update fake signing for IPA
Browse files Browse the repository at this point in the history
  • Loading branch information
osy committed Jun 10, 2021
1 parent cd8df64 commit 1d84c99
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ jobs:
with:
submodules: recursive
- name: Build
run: xcodebuild archive -archivePath Jitterbug -scheme Jitterbug -configuration Release CODE_SIGNING_ALLOWED=NO
run: |
xcodebuild archive -archivePath Jitterbug -scheme Jitterbug -configuration Release CODE_SIGNING_ALLOWED=NO
codesign --force --sign - --timestamp=none --preserve-metadata=identifier,entitlements,flags "Jitterbug.xcarchive/Products/Applications/Jitterbug.app/PlugIns/OpenSSL.framework"
codesign --force --sign - --timestamp=none --preserve-metadata=identifier,entitlements,flags "Jitterbug.xcarchive/Products/Applications/Jitterbug.app/Frameworks/OpenSSL.framework"
codesign --force --sign - --entitlements "JitterbugTunnel/JitterbugTunnel.entitlements" --timestamp=none "Jitterbug.xcarchive/Products/Applications/Jitterbug.app/PlugIns/JitterbugTunnel.appex"
codesign --force --sign - --entitlements "Jitterbug/Jitterbug.entitlements" --timestamp=none "Jitterbug.xcarchive/Products/Applications/Jitterbug.app"
- name: Compress
run: tar cf Jitterbug.xcarchive.tgz Jitterbug.xcarchive
- name: Upload
Expand Down Expand Up @@ -117,22 +122,18 @@ jobs:
build/libwinpthread-1.dll
package-ipa:
name: Package IPA
runs-on: macos-10.15
runs-on: ubuntu-20.04
needs: build-ios
if: github.event_name == 'release' || github.event.inputs.test_release == 'true'
steps:
- name: Install ldid
run: brew install ldid
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: Jitterbug
- name: Fakesign IPA
- name: Package IPA
run: |
tar xf Jitterbug.xcarchive.tgz
mv Jitterbug.xcarchive/Products/Applications Payload
ldid -S Payload/Jitterbug.app/Frameworks/OpenSSL.framework/OpenSSL
ldid -S Payload/Jitterbug.app/Jitterbug
zip -r Jitterbug.ipa Payload -x "._*" -x ".DS_Store" -x "__MACOSX"
- name: Upload Release Asset
if: github.event_name == 'release'
Expand Down

0 comments on commit 1d84c99

Please sign in to comment.