Skip to content

Commit

Permalink
Integrate jpackage into package phase (#10)
Browse files Browse the repository at this point in the history
Closes #9
  • Loading branch information
liturner authored Jan 7, 2023
1 parent b065fcc commit 5bac9e8
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
- name: Maven package
run: mvn -B package --no-transfer-progress --file pom.xml

- name: JPackage
run: fred-jpackage/package.cmd

- name: Publish build
uses: actions/upload-artifact@v3
with:
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions fred-jpackage/package.cmd

This file was deleted.

37 changes: 36 additions & 1 deletion fred-jpackage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
Expand All @@ -31,6 +31,41 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>jpackage</executable>
<arguments>
<argument>-n</argument>
<argument>Frederick</argument>
<argument>-i</argument>
<argument>target/dependency</argument>
<argument>--main-class</argument>
<argument>de.turnertech.frederick.main.Application</argument>
<argument>--main-jar</argument>
<argument>fred-main-${project.version}.jar</argument>
<argument>-d</argument>
<argument>target</argument>
<argument>--vendor</argument>
<argument>TurnerTech</argument>
<argument>--icon</argument>
<argument>frederick-logo.ico</argument>
<argument>--license-file</argument>
<argument>EULA.txt</argument>
<argument>--win-shortcut</argument>
<argument>--win-menu</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
</plugin>

<!-- Test Plugins -->
<plugin>
Expand Down

0 comments on commit 5bac9e8

Please sign in to comment.