一自动升级配置
1、导入jar包
no.tornado
fxlauncher
1.0.20
org.controlsfx
controlsfx
8.40.11
2、在properties中配置
name
org.springframework.boot.loader.JarLauncher
./bin
--myOption=myValue --myOtherOption=myOtherValue
Acme Inc
3.0
http://127.0.0.1:8080/
${project.build.directory}/app
${project.build.directory}/installer
true
UTF-8
3、配置build
org.springframework.boot
spring-boot-maven-plugin
${app.dir}
true
repackage
org.apache.maven.plugins
maven-dependency-plugin
2.10
${app.dir}
true
package
copy
no.tornado
fxlauncher
1.0.20
${app.dir}
org.codehaus.mojo
exec-maven-plugin
3.0.0
create-manifest
package
java
fxlauncher.CreateManifest
${app.url}
${app.mainClass}
${app.dir}
--cache-dir=${app.cacheDir}
--accept-downgrade=${app.acceptDowngrade}
--include-extensions=jpg
${app.parameters}
embed-manifest-in-launcher
package
exec
jar
${app.dir}
uf
fxlauncher.jar
app.xml
src/main/resources
true
4、使用idea进行package
二、exe4j打包exe
(1)、使用将jar打包成exe
(2)、设置打包路径
(3)、设置程序名称(图标也可以设置)
(4)、选择程序位数
(5)、选择jar包
(6)、选择启动入口
(7)、选择jre
(8)、
(9)、选择jre版本号
(10)、一直Next