Skip to content

Commit

Permalink
注释掉macos的打包
Browse files Browse the repository at this point in the history
  • Loading branch information
chivehao committed Aug 31, 2024
1 parent fa624a5 commit 0d1324c
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/ci_build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,45 +113,45 @@ jobs:
asset_name: ikaros-windows-${{ github.ref_name }}.zip


build_macos:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Git submodule init
uses: snickerbockers/submodules-init@v4

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.1'
channel: 'stable'

- name: Install dependencies
run: flutter pub get

- name: Build macOS app
run: flutter build macos --release

- name: Find the generated .app file
id: find_app
run: echo "APP_NAME=$(ls build/macos/Build/Products/Release/ | grep .app)" >> $GITHUB_ENV

- name: Create DMG installer
run: |
mkdir -p build/macos/Build/Products/Release/dmg
hdiutil create build/macos/Build/Products/Release/dmg/${{ env.APP_NAME }}-macOS.dmg \
-volname "IkarosApp Installer" \
-srcfolder build/macos/Build/Products/Release/${{ env.APP_NAME }} \
-ov -format UDZO
- name: Publish Macos Artefacts
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.LI_GUOHAO_TOKEN }}
file: build/macos/Build/Products/Release/dmg/${{ env.APP_NAME }}-macOS.dmg
asset_name: ikaros-macOS-${{ github.ref_name }}.dmg
# build_macos:
# runs-on: macos-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
#
# - name: Git submodule init
# uses: snickerbockers/submodules-init@v4
#
# - name: Set up Flutter
# uses: subosito/flutter-action@v2
# with:
# flutter-version: '3.24.1'
# channel: 'stable'
#
# - name: Install dependencies
# run: flutter pub get
#
# - name: Build macOS app
# run: flutter build macos --release
#
# - name: Find the generated .app file
# id: find_app
# run: echo "APP_NAME=$(ls build/macos/Build/Products/Release/ | grep .app)" >> $GITHUB_ENV
#
# - name: Create DMG installer
# run: |
# mkdir -p build/macos/Build/Products/Release/dmg
# hdiutil create build/macos/Build/Products/Release/dmg/${{ env.APP_NAME }}-macOS.dmg \
# -volname "IkarosApp Installer" \
# -srcfolder build/macos/Build/Products/Release/${{ env.APP_NAME }} \
# -ov -format UDZO
#
# - name: Publish Macos Artefacts
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.LI_GUOHAO_TOKEN }}
# file: build/macos/Build/Products/Release/dmg/${{ env.APP_NAME }}-macOS.dmg
# asset_name: ikaros-macOS-${{ github.ref_name }}.dmg


# build_linux:
Expand Down

0 comments on commit 0d1324c

Please sign in to comment.