Skip to content

Commit

Permalink
Added Windows
Browse files Browse the repository at this point in the history
Modified the maven config to correctly build a DreamLink MSI Installer

Also added an entry in the release workflow matrix to ensure windows artifacts are also built...
  • Loading branch information
tlonny committed Jan 20, 2025
1 parent a97dcd0 commit 1856f9d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ jobs:
path: |
dist/*.dmg
target/*.jar
- id: "win-build"
os: windows-2022
build: "mvn clean compile package jpackage:jpackage -Pwindows"
path: |
dist/*.msi
target/*.jar
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout code"
Expand Down Expand Up @@ -103,4 +109,5 @@ jobs:
files: |
dist/**/*.deb
dist/**/*.dmg
dist/**/*.msi
dist/**/*.jar
Binary file added buildassets/DreamLink.ico
Binary file not shown.
38 changes: 26 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@
</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.panteleyev</groupId>
<artifactId>jpackage-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<type>DMG</type>
<javaOptions>
<option>-XstartOnFirstThread</option>
<option>-Dfile.encoding=UTF-8</option>
</javaOptions>
</configuration>
</plugin>
<plugin>
<groupId>org.panteleyev</groupId>
<artifactId>jpackage-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<type>DMG</type>
<javaOptions>
<option>-XstartOnFirstThread</option>
<option>-Dfile.encoding=UTF-8</option>
</javaOptions>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand All @@ -68,6 +68,20 @@
<profile.id>windows</profile.id>
<lwjgl.classifier>natives-windows</lwjgl.classifier>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.panteleyev</groupId>
<artifactId>jpackage-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<winShortcut>true</winShortcut>
<winMenu>true</winMenu>
<type>MSI</type>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

Expand Down

0 comments on commit 1856f9d

Please sign in to comment.