diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 47f5062..49ba689 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,23 @@ jobs: with: name: Jitterbug path: Jitterbug.xcarchive.tgz + build-macos-ui: + name: Jitterbug (macOS) + runs-on: macos-10.15 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: recursive + - name: Build + run: xcodebuild archive -archivePath JitterbugMac -scheme JitterbugMac -configuration Release + - name: Compress + run: tar cf JitterbugMac.xcarchive.tgz JitterbugMac.xcarchive + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: JitterbugMac + path: JitterbugMac.xcarchive.tgz build-macos: name: JitterbugPair (macOS) runs-on: macos-10.15 @@ -135,6 +152,43 @@ jobs: token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} repository: ${{ secrets.DISPATCH_ALTSTORE_REPO_NAME }} event-type: new-release + package-dmg: + name: Package DMG + runs-on: macos-10.15 + needs: build-macos-ui + if: github.event_name == 'release' || github.event.inputs.test_release == 'true' + steps: + - name: Import signing certificate into keychain + uses: apple-actions/import-codesign-certs@v1 + with: + p12-file-base64: ${{ secrets.SIGNING_CERTIFICATE_P12_DATA }} + p12-password: ${{ secrets.SIGNING_CERTIFICATE_PASSWORD }} + - name: Download Artifact + uses: actions/download-artifact@v2 + with: + name: JitterbugMac + - name: Sign Binaries + run: | + tar xf JitterbugMac.xcarchive.tgz + codesign --force --sign "Developer ID Application" --timestamp=none --options runtime "JitterbugMac.xcarchive/Products/Applications/Jitterbug.app/Contents/Frameworks/OpenSSL.framework" + codesign --force --sign "Developer ID Application" --timestamp=none --options runtime "JitterbugMac.xcarchive/Products/Applications/Jitterbug.app" + - name: Create DMG + run: hdiutil create -fs HFS+ -srcfolder "JitterbugMac.xcarchive/Products/Applications/Jitterbug.app" -volname "Jitterbug" "Jitterbug.dmg" + - name: Notarize app + run: npx notarize-cli --file "Jitterbug.dmg" --bundle-id "com.osy86.Jitterbug" + env: + NOTARIZE_USERNAME: ${{ secrets.SIGNING_USERNAME }} + NOTARIZE_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} + - name: Upload Release Asset + if: github.event_name == 'release' + uses: actions/upload-release-asset@v1.0.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: Jitterbug.dmg + asset_name: Jitterbug.dmg + asset_content_type: application/octet-stream package-pair: name: Package JitterbugPair runs-on: ubuntu-20.04 diff --git a/README.md b/README.md index bc86f77..8714448 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,12 @@ The software to generate a pairing token is available for macOS, Linux, and Wind On macOS and Windows, make sure you have iTunes installed. On Linux, make sure `usbmuxd` is installed (`sudo apt install usbmuxd`). +## macOS 11 + +Jitterbug is also available for macOS 11 and higher. Run the app and connect your device via USB. Select the device and press the export button on the top toolbar to export `YOUR-UDID.mobiledevicepairing`. + +## Other Systems + Run `jitterbugpair` with your device plugged in to generate `YOUR-UDID.mobiledevicepairing`. You need to have a passcode enabled and the device should be unlocked. The first time you run the tool, you will get a prompt for your passcode. Type it in and keep the screen on and unlocked and run the tool again to generate the pairing. ## Developer Image