Skip to content

Update README.md

Update README.md #19

Workflow file for this run

# Support build dmg macos
name: Macos Release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "12.x"
cache: 'gradle'
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.10.2"
channel: 'stable'
cache: true
- name: Get dependencies
run: flutter --disable-telemetry && flutter pub get && flutter doctor || true
- name: Get dependencies example app
working-directory: example
run: flutter pub get
- name: Start release build
working-directory: example
run: flutter build macos --release
- name: Install app-dmg & Create dmg file
working-directory: example
run: npm install -g appdmg && appdmg installers/dmg_creator/config.json installers/dmg_creator/flutter_m3.dmg
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: Macos - Release
path: example/installers/dmg_creator/flutter_m3.dmg