mirror of
https://github.com/OatmealDome/dolphin-ios.git
synced 2024-11-27 00:30:50 +00:00
80 lines
4.4 KiB
YAML
80 lines
4.4 KiB
YAML
name: Release
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
jobs:
|
|
build:
|
|
# runs-on: macos-12
|
|
runs-on: [self-hosted, macOS]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: 'recursive'
|
|
|
|
# - name: Set Xcode Version
|
|
# run: sudo xcode-select -s /Applications/Xcode_14.2.app
|
|
|
|
# - name: Install Build Utilities
|
|
# run: |
|
|
# brew install cmake ninja bartycrouch dpkg
|
|
# /usr/bin/python3 -m pip install polib
|
|
|
|
# - name: Import Signing Certificate
|
|
# run: |
|
|
# echo ${{ secrets.DIOS_SIGNING_CERTIFICATE }} | base64 -d > "SigningCertificate.p12"
|
|
# security create-keychain -p alpine build.keychain
|
|
# security default-keychain -s build.keychain
|
|
# security unlock-keychain -p alpine build.keychain
|
|
# security set-keychain-settings -t 36000 build.keychain
|
|
# security import "SigningCertificate.p12" -k build.keychain -P ${{ secrets.DIOS_SIGNING_CERTIFICATE_PASSWORD }} -A
|
|
# security set-key-partition-list -S apple-tool:,apple: -s -k alpine build.keychain
|
|
|
|
- name: Write GoogleServices-Info.plist
|
|
run: |
|
|
echo ${{ secrets.DIOS_GOOGLE_PLIST }} | base64 -d > "Source/iOS/App/Project/Assets/GoogleService-Info.plist"
|
|
|
|
- name: Set Schema for Normal
|
|
if: "!github.event.release.prerelease"
|
|
run: |
|
|
echo "XCODE_CONFIGURATION_NJB=Release (Non-Jailbroken)" >> $GITHUB_ENV
|
|
echo "XCODE_CONFIGURATION_JB=Release (Jailbroken)" >> $GITHUB_ENV
|
|
echo "XCODE_CONFIGURATION_TS=Release (TrollStore)" >> $GITHUB_ENV
|
|
echo "DEB_CONTROL_NAME=control-normal" >> $GITHUB_ENV
|
|
|
|
- name: Set Schema for Beta
|
|
if: "github.event.release.prerelease"
|
|
run: |
|
|
echo "XCODE_CONFIGURATION_NJB=Release (Beta, Non-Jailbroken)" >> $GITHUB_ENV
|
|
echo "XCODE_CONFIGURATION_JB=Release (Beta, Jailbroken)" >> $GITHUB_ENV
|
|
echo "XCODE_CONFIGURATION_TS=Release (Beta, TrollStore)" >> $GITHUB_ENV
|
|
echo "DEB_CONTROL_NAME=control-beta" >> $GITHUB_ENV
|
|
|
|
- name: Build Application
|
|
env:
|
|
XCODE_COMMON_BUILD_ARGS: -project Source/iOS/App/DolphiniOS.xcodeproj -derivedDataPath "${{ github.workspace }}/build-Xcode" DOL_PBID_ORGANIZATION_IDENTIFIER="me.oatmealdome" DOL_BUILD_SOURCE="official" CURRENT_PROJECT_VERSION=${{ github.run_number }} CODE_SIGNING_ALLOWED="NO" CODE_SIGNING_REQUIRED="NO"
|
|
run: |
|
|
xcodebuild -configuration "${{ env.XCODE_CONFIGURATION_NJB }}" -scheme "DiOS (NJB)" ${{ env.XCODE_COMMON_BUILD_ARGS }}
|
|
xcodebuild -configuration "${{ env.XCODE_CONFIGURATION_JB }}" -scheme "DiOS (JB)" ${{ env.XCODE_COMMON_BUILD_ARGS }}
|
|
xcodebuild -configuration "${{ env.XCODE_CONFIGURATION_TS }}" -scheme "DiOS (JB)" ${{ env.XCODE_COMMON_BUILD_ARGS }}
|
|
|
|
- name: Build IPA Files
|
|
run: |
|
|
mkdir "${{ github.workspace }}/products"
|
|
"${{ github.workspace }}/Source/iOS/App/Project/Scripts/CreateIpa.sh" "${{ github.workspace }}/build-Xcode/Build/Products/${{ env.XCODE_CONFIGURATION_NJB }}-iphoneos/DolphiniOS.app" "OatmealDome Software" "${{ github.workspace }}/Source/iOS/App/Project/Entitlements/Public.entitlements" "${{ github.workspace }}/products/Non-Jailbroken.ipa"
|
|
"${{ github.workspace }}/Source/iOS/App/Project/Scripts/CreateIpa.sh" "${{ github.workspace }}/build-Xcode/Build/Products/${{ env.XCODE_CONFIGURATION_TS }}-iphoneos/DolphiniOS.app" "OatmealDome Software" "${{ github.workspace }}/Source/iOS/App/Project/Entitlements/Private.entitlements" "${{ github.workspace }}/products/TrollStore.tipa"
|
|
|
|
- name: Build DEB File
|
|
run: |
|
|
"${{ github.workspace }}/Source/iOS/App/Project/Scripts/CreateDeb.sh" "${{ github.workspace }}/build-Xcode/Build/Products/${{ env.XCODE_CONFIGURATION_JB }}-iphoneos/DolphiniOS.app" "OatmealDome Software" "${{ github.workspace }}/Source/iOS/App/Project/Entitlements/Private.entitlements" "${{ github.workspace }}/Source/iOS/App/Project/Package/Deb/${{ env.DEB_CONTROL_NAME }}.in" "${{ github.workspace }}/Source/iOS/App/Project/Package/Deb/postinst.sh" "${{ github.workspace }}/Source/iOS/App/Project/Package/Deb/postrm.sh" "${{ github.workspace }}/products/Jailbroken.deb"
|
|
|
|
- uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: |
|
|
products/Non-Jailbroken.ipa
|
|
products/TrollStore.tipa
|
|
products/Jailbroken.deb
|