forked from fossasia/pslab-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
50 lines (43 loc) · 1.31 KB
/
Copy pathaction.yml
File metadata and controls
50 lines (43 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: "macOS Workflow"
inputs:
VERSION_NAME:
description: 'Version Name to be used for build'
required: false
default: '1.0.0'
VERSION_CODE:
description: 'Version Code to be used for build'
required: true
default: '1'
runs:
using: "composite"
steps:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
cache: false # TODO set to <true> after https://github.com/actions/runner/issues/449 is fixed
flutter-version-file: .flutter-version
- name: Update Podfile
shell: bash
run: |
cd ./macos
flutter pub get
pod install --repo-update
- name: Build macOS App
shell: bash
env:
VERSION_NAME: ${{ inputs.VERSION_NAME }}
VERSION_CODE: ${{ inputs.VERSION_CODE }}
run: |
flutter config --enable-macos-desktop
flutter build macos --build-name $VERSION_NAME --build-number $VERSION_CODE
- name: Package into dmg
shell: bash
run: |
brew install node
npm install -g appdmg
appdmg appdmg.json pslab-${{ inputs.VERSION_NAME }}+${{ inputs.VERSION_CODE }}.dmg
- name: Store App file
uses: actions/upload-artifact@v4
with:
name: macos-app
path: pslab-${{ inputs.VERSION_NAME }}+${{ inputs.VERSION_CODE }}.dmg