-
-
Notifications
You must be signed in to change notification settings - Fork 99
37 lines (36 loc) · 1.15 KB
/
build_installers.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
name: Installer Build
on:
workflow_call:
secrets:
INSTALL4J_LICENSE:
required: true
jobs:
install4jc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: java_info
uses: YunaBraska/java-info-action@main
- uses: actions/download-artifact@v4
with:
name: maven-dist
path: target/
- uses: luangong/setup-install4j@v1
name: Setup Install4j
with:
version: 11.0.2
license: ${{ secrets.INSTALL4J_LICENSE }}
- name: Make installers
run: |
/opt/install4j/bin/install4jc -L ${{ secrets.INSTALL4J_LICENSE }} -r ${{ steps.java_info.outputs.project_version }} -g -d target/media -D librariesPath=$(pwd)/target/libraries install4j/project.install4j
- name: Delete garbages
run: |
rm -rf target/media/debug*
# jarPath=$(pwd) 是必须的,install4jc 不知道什么毛病,不支持相对路径,这太诡异了
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: installer-dist
path: |
target/media/*
id: project