-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.25 KB
/
gradle.yml
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
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build macOS .dmg
env:
DEVELOPER_DIR: /Applications/Xcode_13.app/Contents/Developer
on:
push:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set Up OpenJDK 20
uses: actions/setup-java@v3
with:
java-version: 20
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with jlink
run: ./gradlew jlink
- name: Use jpackage to bundle macOS dmg
run: |
jpackage --app-version "1.0.0" \
--copyright "Copyright 2020, example.com" \
--description "Pew File Viewer" \
--name "PewFileViewer" \
--vendor "example.com" \
--runtime-image build/image \
--icon raw/AppIcon.icns \
--mac-package-identifier com.example.pew \
--mac-package-name "PewFileViewer" \
--file-associations mac.properties \
--module pew/com.example.pew.Launcher
- name: Upload Artefact
uses: actions/upload-artifact@v2
with:
path: ./*.dmg