Windows build

This commit is contained in:
assada 2023-08-10 17:35:30 +03:00
parent fa9efb30c4
commit d9697b7da6
3 changed files with 88 additions and 5 deletions

84
pom.xml
View File

@ -77,6 +77,82 @@
<target>18</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>guru.dead.icf320.Main</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>guru.dead.icf320.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.panteleyev</groupId>
<artifactId>jpackage-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<name>icf320</name>
<appVersion>1.0.0</appVersion>
<vendor>guru.dead</vendor>
<input>target/dependency</input>
<destination>target/dist</destination>
<mainClass>guru.dead.icf320.Main</mainClass>
<mainJar>../icf320-1.0-SNAPSHOT-jar-with-dependencies.jar</mainJar>
<runtimeImage>target/icf320</runtimeImage>
<linuxShortcut>true</linuxShortcut>
<linuxPackageName>icf320</linuxPackageName>
<linuxAppCategory>Utilities</linuxAppCategory>
<linuxMenuGroup>Utilities</linuxMenuGroup>
<javaOptions>
<option>-Dfile.encoding=UTF-8</option>
</javaOptions>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
@ -86,10 +162,10 @@
<!-- Default configuration for running with: mvn clean javafx:run -->
<id>default-cli</id>
<configuration>
<mainClass>guru.dead.icf320/guru.dead.icf320.HelloApplication</mainClass>
<launcher>app</launcher>
<jlinkZipName>app</jlinkZipName>
<jlinkImageName>app</jlinkImageName>
<mainClass>guru.dead.icf320.Main</mainClass>
<launcher>icf320</launcher>
<jlinkZipName>icf320</jlinkZipName>
<jlinkImageName>icf320</jlinkImageName>
<noManPages>true</noManPages>
<stripDebug>true</stripDebug>
<noHeaderFiles>true</noHeaderFiles>

View File

@ -0,0 +1,7 @@
package guru.dead.icf320;
public class Main {
public static void main(String[] args) {
MainApplication.main(args);
}
}

View File

@ -1,4 +1,4 @@
module guru.dead.icf320 {
module icf320 {
requires javafx.controls;
requires javafx.fxml;