Skip to content

Commit 46023f9

Browse files
committed
new
1 parent 5434b3b commit 46023f9

13 files changed

Lines changed: 35 additions & 2 deletions

File tree

.github/workflows/release-artifacts.yml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Release Artifacts
22

3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
5+
36
on:
47
release:
58
types: [published]
@@ -13,7 +16,7 @@ jobs:
1316
runs-on: windows-latest
1417
steps:
1518
- name: Checkout
16-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
1720

1821
- name: Read app version
1922
id: app_version
@@ -23,7 +26,7 @@ jobs:
2326
"version=$($pom.project.version)" >> $env:GITHUB_OUTPUT
2427
2528
- name: Set up Java 17
26-
uses: actions/setup-java@v4
29+
uses: actions/setup-java@v5
2730
with:
2831
distribution: temurin
2932
java-version: "17"
@@ -32,6 +35,36 @@ jobs:
3235
shell: powershell
3336
run: choco install wixtoolset --no-progress -y
3437

38+
- name: Add WiX to PATH
39+
shell: powershell
40+
run: |
41+
$candle = Get-Command candle.exe -ErrorAction SilentlyContinue
42+
if ($candle) {
43+
$wixBin = Split-Path $candle.Source
44+
} else {
45+
$candidates = @(
46+
"$env:ProgramFiles(x86)\WiX Toolset v3.14\bin",
47+
"$env:ProgramFiles(x86)\WiX Toolset v3.11\bin",
48+
"$env:ProgramFiles(x86)\WiX Toolset v3.10\bin",
49+
"$env:ProgramFiles\WiX Toolset v3.14\bin"
50+
)
51+
$wixBin = $candidates | Where-Object { Test-Path (Join-Path $_ 'candle.exe') } | Select-Object -First 1
52+
}
53+
54+
if (-not $wixBin) {
55+
throw "WiX Toolset was installed but candle.exe was not found."
56+
}
57+
58+
$wixBin | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
59+
Write-Host "WiX bin path added: $wixBin"
60+
61+
- name: Verify packaging tools
62+
shell: powershell
63+
run: |
64+
where.exe jpackage
65+
where.exe candle.exe
66+
where.exe light.exe
67+
3568
- name: Build shaded jar
3669
shell: cmd
3770
run: mvnw.cmd -B clean package
Binary file not shown.
1.22 KB
Binary file not shown.
499 Bytes
Binary file not shown.
-34 Bytes
Binary file not shown.
-60 Bytes
Binary file not shown.
127 Bytes
Binary file not shown.
-6 Bytes
Binary file not shown.
42 Bytes
Binary file not shown.
27 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)