Skip to content

Commit 0c9a7b5

Browse files
committed
ci: build for windows
1 parent cf228bf commit 0c9a7b5

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/build-installers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
build:
1717
strategy:
1818
matrix:
19-
os: [macos-14, ubuntu-latest, macos-latest]
19+
os: [macos-14, windows-latest, ubuntu-latest, macos-latest]
2020
runs-on: ${{ matrix.os }}
2121
steps:
2222
- name: Checkout

.github/workflows/publish-installers.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ name: Publish Installers
55

66
on:
77
push:
8-
tags: "paintera-conversion-helper-*.*.*"
8+
tags:
9+
- "paintera-conversion-helper-*.*.*"
10+
- "prerelease-*"
911
workflow_dispatch:
1012

1113

@@ -31,6 +33,7 @@ jobs:
3133
echo "VERSION=$tag_name" >> $GITHUB_ENV
3234
- name: Rename Artifacts
3335
run: |
36+
mv Paintera-windows-latest-*/*.msi Paintera-${{ env.VERSION }}-Windows.msi
3437
mv PainteraConvert-ubuntu-latest-*/*.deb PainteraConvert-${{ env.VERSION }}_x86_64.deb
3538
mv PainteraConvert-macos-latest-*/*.pkg PainteraConvert-${{ env.VERSION }}-MacOS.pkg
3639
mv PainteraConvert-macos-14-*/*.pkg PainteraConvert-${{ env.VERSION }}-MacOS-AppleSilicon.pkg
@@ -41,6 +44,7 @@ jobs:
4144
tag_name: ${{ github.ref }}
4245
prerelease: false
4346
files: |
47+
PainteraConvert-${{ env.VERSION }}-Windows.msi
4448
PainteraConvert-${{ env.VERSION }}_x86_64.deb
4549
PainteraConvert-${{ env.VERSION }}-MacOS.pkg
4650
PainteraConvert-${{ env.VERSION }}-MacOS-AppleSilicon.pkg

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
<jackson.version>2.15.4</jackson.version>
5656

5757
<!-- For JPackage -->
58+
<app.version>1.0.0</app.version>
5859
<app.name>paintera-convert</app.name>
5960
<jvm.modules>java.naming,java.management,java.sql</jvm.modules>
6061
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

src/packaging/windows/jpackage.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
--type msi
2-
--name "${app.name}"
2+
--name ${app.name}
3+
--app-version ${app.version}
4+
--win-menu
5+
--win-menu-group ${windows.vendor}
6+
--win-shortcut
37
--vendor ${windows.vendor}
48
--dest "${project.build.directory}/installer-${matrix.os}"
9+
510
--main-class ${main-class}
611
--input "${project.build.directory}/dependency"
712
--runtime-image "${project.build.directory}/jvm-image"
813
--temp "${project.build.directory}/installer-work"
914
--java-options "-XX:MaxRAMPercentage=75"
15+
1016
--win-upgrade-uuid ${windows.upgrade.uuid}
1117
--description "${project.description}"
1218
--copyright "(C) ${windows.vendor}"

0 commit comments

Comments
 (0)