From c9c8857457b127c661cabbd59a5264941d00e3a1 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Mon, 17 Jun 2024 16:26:08 +0800 Subject: [PATCH] chore: try to fix the macos build --- .github/workflows/macos.yaml | 2 +- .github/workflows/release.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index 8c7c2b3..6916f76 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -43,7 +43,7 @@ env: jobs: x86_64: - runs-on: macos-latest + runs-on: macos-12 if: ${{ github.event.inputs.arch == 'All' || github.event.inputs.arch == 'x86_64' }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 067b5b4..9a9075a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -140,7 +140,7 @@ jobs: - { target: x86_64-apple-darwin, os: macos-latest } env: MACOS_APP_RELEASE_PATH: frontend/appflowy_flutter/product/${{ needs.prepare.outputs.version }}/macos/Release - MACOS_DMG_NAME: AppFlowy_${{ github.ref_name }}_macos-x86_64 + MACOS_DMG_NAME: AppFlowy_${{ github.ref_name }}_macos-universal MACOS_CODESIGN_ID: ${{ secrets.MACOS_CODESIGN_ID }} steps: - name: Checkout source code @@ -174,8 +174,8 @@ jobs: working-directory: frontend run: | flutter config --enable-macos-desktop - dart ./scripts/flutter_release_build/build_flowy.dart exclude-directives . ${{ needs.prepare.outputs.version }} - cargo make --profile production-mac-x86_64 appflowy + sh scripts/flutter_release_build/build_universal_package_for_macos.sh ${{ needs.prepare.outputs.version }} + - name: Check for Code signing ID run: |