This commit is contained in:
Jonas Bark
2025-10-15 18:56:33 +02:00
parent 62097ec7ea
commit ab451fa689
2 changed files with 11 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ jobs:
uses: actions/checkout@v3
- name: 🐦 Setup Shorebird
if: false
uses: shorebirdtech/setup-shorebird@v1
with:
cache: true
@@ -70,11 +71,13 @@ jobs:
cp $PP_PATH_MACOS ~/Library/MobileDevice/Provisioning\ Profiles
- name: Decode Keystore
if: false
run: |
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > android/android.keystore;
echo "${{ secrets.KEYSTORE_PROPERTIES }}" > android/keystore.properties;
- name: 🚀 Shorebird Patch macOS
if: false
uses: shorebirdtech/shorebird-patch@v1
with:
platform: macos
@@ -82,6 +85,7 @@ jobs:
args: '--allow-asset-diffs'
- name: 🚀 Shorebird Patch Android
if: false
uses: shorebirdtech/shorebird-patch@v1
with:
platform: android
@@ -89,6 +93,7 @@ jobs:
args: '--allow-asset-diffs'
- name: 🚀 Shorebird Patch iOS
if: false
uses: shorebirdtech/shorebird-patch@v1
with:
platform: ios
@@ -103,12 +108,15 @@ jobs:
# shorebird struggles with the app from GitHub
- name: Build macOS
env:
DEVELOPER_ID_APPLICATION_SIGNING_IDENTITY: ${{ secrets.DEVELOPER_ID_APPLICATION_SIGNING_IDENTITY }}
run: |
flutter build macos --release;
cd build/macos/Build/Products/Release/;
zip -r SwiftControl.macos.zip SwiftControl.app/;
- name: Sign macOS build
env:
DEVELOPER_ID_APPLICATION_SIGNING_IDENTITY: ${{ secrets.DEVELOPER_ID_APPLICATION_SIGNING_IDENTITY }}
run: |
version=$(grep '^version: ' pubspec.yaml | cut -d ' ' -f 2 | tr -d '\r');
echo "VERSION=$version" >> $GITHUB_ENV;
/usr/bin/codesign --deep --force -s "$DEVELOPER_ID_APPLICATION_SIGNING_IDENTITY" --entitlements ../../../../../macos/Runner/Release.entitlements --options runtime SwiftControl.app -v;