forked from KRTirtho/spotube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cd: build iPA support for iOS (KRTirtho#971)
* Create build-iPA.yml * Update build-iPA.yml * update-iOS - Set AppIcon(same as Android) - Set to correct app name(Sptube -> Spotube) - * update iOS flavors * Update build-iPA.yml * Update spotube-release-binary.yml * rename release-bin iPA filename * update appicon * Update dev-Info.plist
- Loading branch information
Showing
76 changed files
with
2,789 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build iPA | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- uses: actions/checkout@v4 | ||
- name: submodules-init | ||
uses: snickerbockers/submodules-init@v4 | ||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
- name: Build | ||
run: | | ||
cp .env.example .env | ||
flutter pub get && dart run build_runner build --delete-conflicting-outputs --enable-experiment=records,patterns | ||
flutter build ios --release --no-codesign --flavor dev | ||
flutter build ios --release --no-codesign --flavor stable | ||
flutter build ios --release --no-codesign --flavor nightly | ||
ln -sf ./build/ios/iphoneos Payload | ||
zip -r9 spotube-dev.ipa Payload/dev.app | ||
zip -r9 spotube-stable.ipa Payload/stable.app | ||
zip -r9 spotube-nightly.ipa Payload/nightly.app | ||
- name: Upload spotube-dev.ipa | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: "spotube-dev.ipa" | ||
path: "spotube-dev.ipa" | ||
- name: Upload spotube-stable.ipa | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: "spotube-stable.ipa" | ||
path: "spotube-stable.ipa" | ||
- name: Upload spotube-nightly.ipa | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: "spotube-nightly.ipa" | ||
path: "spotube-nightly.ipa" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -321,13 +321,54 @@ jobs: | |
mkdir -p build/${{ env.BUILD_VERSION }} | ||
appdmg appdmg.json build/Spotube-macos-universal.dmg | ||
iOS: | ||
|
||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/[email protected] | ||
with: | ||
cache: true | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
|
||
- name: Replace pubspec version and BUILD_VERSION Env (nightly) | ||
if: ${{ inputs.channel == 'nightly' }} | ||
run: | | ||
brew install yq | ||
yq -i '.version |= sub("\+\d+", "+${{ inputs.channel }}.")' pubspec.yaml | ||
yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml | ||
echo "BUILD_VERSION=${{ inputs.version }}+${{ inputs.channel }}.${{ github.run_number }}" >> $GITHUB_ENV | ||
- name: BUILD_VERSION Env (stable) | ||
if: ${{ inputs.channel == 'stable' }} | ||
run: | | ||
echo "BUILD_VERSION=${{ inputs.version }}" >> $GITHUB_ENV | ||
- name: Create Stable .env | ||
if: ${{ inputs.channel == 'stable' }} | ||
run: echo '${{ secrets.DOTENV_RELEASE }}' > .env | ||
|
||
- name: Create Nightly .env | ||
if: ${{ inputs.channel == 'nightly' }} | ||
run: echo '${{ secrets.DOTENV_NIGHTLY }}' > .env | ||
|
||
- name: Generate Secrets | ||
run: | | ||
flutter pub get | ||
dart run build_runner build --delete-conflicting-outputs --enable-experiment=records,patterns | ||
- name: Build iOS iPA | ||
run: | | ||
flutter build ios --release --no-codesign --flavor ${{ inputs.channel }} | ||
ln -sf ./build/ios/iphoneos Payload | ||
zip -r9 Spotube-iOS.ipa Payload/${{ inputs.channel }}.app | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
if-no-files-found: error | ||
name: Spotube-Release-Binaries | ||
path: | | ||
build/Spotube-macos-universal.dmg | ||
Spotube-iOS.ipa | ||
- name: Debug With SSH When fails | ||
if: ${{ failure() && inputs.debug && inputs.channel == 'nightly' }} | ||
|
@@ -343,6 +384,7 @@ jobs: | |
- linux | ||
- android | ||
- macos | ||
- iOS | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
flutter_launcher_icons: | ||
android: true | ||
ios: true | ||
image_path: "assets/spotube-nightly-logo.png" | ||
adaptive_icon_foreground: "assets/spotube-nightly-logo-foreground.jpg" | ||
adaptive_icon_background: "#242832" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.