Skip to content

Commit cb8b388

Browse files
committed
Update IzPack installation process in CI workflow for non-interactive setup
1 parent 511268e commit cb8b388

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/ant.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ jobs:
2525
distribution: 'temurin'
2626
- name: Set up IzPack 5
2727
run: |
28-
wget -O izpack-installer.jar https://repo1.maven.org/maven2/org/codehaus/izpack/izpack-dist/5.2.4/izpack-dist-5.2.4-installer.jar
29-
java -jar izpack-installer.jar -options .github/workflows/auto-install.xml
28+
wget -q -O izpack-installer.jar https://repo1.maven.org/maven2/org/codehaus/izpack/izpack-dist/5.2.4/izpack-dist-5.2.4-installer.jar
29+
IZPACK_INSTALL_PATH="$HOME/IzPack" envsubst < .github/workflows/auto-install.xml > /tmp/izpack-auto-install.xml
30+
java -jar izpack-installer.jar -options /tmp/izpack-auto-install.xml
3031
- name : Generate override.properties
3132
run: |
3233
rm -f override.properties

.github/workflows/auto-install.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
IzPack 5 unattended installation options file.
44
Used in GitHub Actions to install IzPack 5 non-interactively.
55
6-
Usage:
7-
java -jar izpack-dist-5.2.4-installer.jar -options .github/workflows/auto-install.xml
6+
${IZPACK_INSTALL_PATH} is a shell variable expanded at runtime by the workflow
7+
via envsubst, so the literal string is never passed to IzPack.
88
9-
$USER_HOME resolves to the runner's home directory (~), so IzPack will be installed
10-
at ~/IzPack, which matches the default izpack5.home value in build.properties.
9+
Usage (from ant.yml):
10+
IZPACK_INSTALL_PATH="$HOME/IzPack" envsubst < .github/workflows/auto-install.xml > /tmp/izpack-auto-install.xml
11+
java -jar izpack-dist-5.2.4-installer.jar -options /tmp/izpack-auto-install.xml
1112
-->
1213
<AutoInstall>
1314
<langpack code="eng"/>
14-
<installpath>$USER_HOME/IzPack</installpath>
15+
<installpath>${IZPACK_INSTALL_PATH}</installpath>
1516
</AutoInstall>

0 commit comments

Comments
 (0)