fix: macOS and iOS flavors (#68)

## Pull Request Description

Both macos and iOS flavors are now configured properly

## Checklist

- [x] If a new package was added, did you ensure it works for all
supported platforms? Is the package also well maintained?
- [x] Did you add localization for any text? If yes, did you sort the
.arb file using ```arb_utils sort <INPUT_FILE>```?
- [x] Check that any changes are related to the issue at hand.

---------

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2024-10-24 15:27:07 +02:00 committed by GitHub
parent 2ad6bc1b5e
commit 8926ece5bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 960 additions and 101 deletions

View file

@ -145,7 +145,7 @@ jobs:
VERSION_NAME=$(grep '^version:' pubspec.yaml | cut -d ':' -f2 | cut -d '+' -f1 | tr -d ' ')
echo "PACKAGE_NAME=$APP_NAME-iOS-$VERSION_NAME" >> $GITHUB_ENV
flutter build ipa --no-codesign --build-name=$VERSION_NAME --build-number=${{ github.run_number }}
flutter build ipa --no-codesign --flavor production --build-name=$VERSION_NAME --build-number=${{ github.run_number }}
- name: Create unsigned IPA
run: |
@ -185,17 +185,17 @@ jobs:
VERSION_NAME=$(grep '^version:' pubspec.yaml | cut -d ':' -f2 | cut -d '+' -f1 | tr -d ' ')
echo "PACKAGE_NAME=$APP_NAME-macOS-$VERSION_NAME" >> $GITHUB_ENV
flutter build macos --build-name=$VERSION_NAME --build-number=${{ github.run_number }}
flutter build macos --flavor production --build-name=$VERSION_NAME --build-number=${{ github.run_number }}
- name: Create DMG file
run: |
hdiutil create -format UDZO -srcfolder build/macos/Build/Products/Release/fladder.app build/macos/Build/Products/Release/${{ env.PACKAGE_NAME }}.dmg
hdiutil create -format UDZO -srcfolder build/macos/Build/Products/Release-production/fladder.app build/macos/Build/Products/Release-production/${{ env.PACKAGE_NAME }}.dmg
- name: Archive macOS artifact
uses: actions/upload-artifact@v4.0.0
with:
name: ${{ env.PACKAGE_NAME }}
path: build/macos/Build/Products/Release/${{ env.PACKAGE_NAME }}.dmg
path: build/macos/Build/Products/Release-production/${{ env.PACKAGE_NAME }}.dmg
build-linux:
runs-on: ubuntu-latest