关于install4j打包spark成exe文件

关于install4j打包spark的一些方法今天终于研究明了怎么样把spark客户如何打包成exe文件了,现写出与大家分享。

spark里面自带着install4j_3_2版的程序,你也可以单独下载4.0以后的版本。关于install4j的一些说明文档,请查看其它相关的文章。

Run "ant release" from the build directory.

// 运行Ant后,会在文件夹内生成了一个target的文件夹。

Run startup.bat from the target\build\bin directory to make sure your customized Spark is functional.

Run spark.install4j from the build\installer directory and make the following customizations to the project in install4j:

In "General Settings", go to the "Compiler Variables" tab to change the VERSION_REVISION to the correct number and find and replace "Spark" with your custom application name. Then go to the "Media File Options" tab to replace "spark" with ${compiler:APP_SHORT_NAME}.
In "Launchers", rename the Spark launcher to ${compiler:APP_NAME}, then right-click that launcher and click "Edit Launcher". Then go to "Executable info" to replace "Spark" with ${compiler:APP_SHORT_NAME}. Then go to "Windows version info" to replace "Spark" with ${compiler:APP_NAME}.
In "Installer", go to the "Actions" tab to set the Target file for the desktop link to ${compiler:APP_SHORT_NAME}.
In "Media", right-click on the Windows media file and click "Edit Media File". Then go to "Installer options" to replace "Spark" with ${compiler:APP_NAME}. Then go to "Bundled JRE" to choose the JRE to bundle.
In "Build", click on "Start Build"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值