fix: 打包插件配置

This commit is contained in:
octopus_yan 2024-09-08 16:11:51 +08:00
parent 8588ad8c47
commit 7aaf2db034
2 changed files with 28 additions and 29 deletions

57
pom.xml
View File

@ -24,6 +24,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<exec.mainClass>cn.octopusyan.alistgui.AppLauncher</exec.mainClass>
<junit.version>5.10.0</junit.version> <junit.version>5.10.0</junit.version>
<javafx.version>21.0.4</javafx.version> <javafx.version>21.0.4</javafx.version>
<slf4j.version>2.0.16</slf4j.version> <slf4j.version>2.0.16</slf4j.version>
@ -188,27 +190,6 @@
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<argLine>--enable-preview</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>exe</nonFilteredFileExtension>
<nonFilteredFileExtension>dll</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</plugin>
<!-- https://github.com/HebiRobotics/sass-cli-maven-plugin --> <!-- https://github.com/HebiRobotics/sass-cli-maven-plugin -->
<plugin> <plugin>
<groupId>us.hebi.sass</groupId> <groupId>us.hebi.sass</groupId>
@ -247,21 +228,32 @@
<groupId>org.openjfx</groupId> <groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId> <artifactId>javafx-maven-plugin</artifactId>
<version>0.0.8</version> <version>0.0.8</version>
<configuration>
<stripDebug>true</stripDebug>
<compress>2</compress>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<launcher>alistgui</launcher>
<jlinkImageName>app</jlinkImageName>
<jlinkZipName>app</jlinkZipName>
<mainClass>cn.octopusyan.alistgui/${exec.mainClass}</mainClass>
</configuration>
<executions> <executions>
<execution> <execution>
<!-- Default configuration for running with: mvn clean javafx:run --> <!-- Default configuration for running with: mvn clean javafx:run -->
<id>default-cli</id> <id>default-cli</id>
<configuration> <configuration>
<launcher>launcher</launcher> <stripDebug>true</stripDebug>
<mainClass>cn.octopusyan.alistgui/cn.octopusyan.alistgui.AppLauncher</mainClass> <compress>2</compress>
<noHeaderFiles>true</noHeaderFiles>
<noManPages>true</noManPages>
<launcher>alist-gui</launcher>
<jlinkImageName>app</jlinkImageName>
<jlinkZipName>app</jlinkZipName>
<mainClass>cn.octopusyan.alistgui/${exec.mainClass}</mainClass>
<options> <options>
<option>--enable-preview</option> <option>--enable-preview</option>
</options> </options>
<jlinkZipName>app</jlinkZipName>
<jlinkImageName>app</jlinkImageName>
<noManPages>true</noManPages>
<stripDebug>true</stripDebug>
<noHeaderFiles>true</noHeaderFiles>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
@ -273,9 +265,12 @@
<artifactId>javapackager</artifactId> <artifactId>javapackager</artifactId>
<version>1.7.7-SNAPSHOT</version> <version>1.7.7-SNAPSHOT</version>
<configuration> <configuration>
<mainClass>${exec.mainClass}</mainClass>
<bundleJre>true</bundleJre> <bundleJre>true</bundleJre>
<mainClass>cn.octopusyan.alistgui.AppLauncher</mainClass>
<generateInstaller>false</generateInstaller> <generateInstaller>false</generateInstaller>
<copyDependencies>true</copyDependencies>
<assetsDir>${project.basedir}/src/main/resources/assets</assetsDir>
<vmArgs>--enable-preview</vmArgs>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
@ -287,6 +282,10 @@
<configuration> <configuration>
<platform>windows</platform> <platform>windows</platform>
<createZipball>true</createZipball> <createZipball>true</createZipball>
<winConfig>
<headerType>gui</headerType>
<generateMsi>false</generateMsi>
</winConfig>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB