如何将 NSIS 与 Maven2 和持续集成结合使用?
我想将 NSIS 创建的安装程序包含到使用 Maven2 组织的 Java 项目中。我如何合并它,以便每次使用 Maven 创建发行版时都会自动构建安装程序?我尝试过以下方法: http://mojo.codehaus.org/nsis-maven-plugin/ plugin-info.html
我包含该插件的唯一方法是在 svn 中提取源代码的副本并构建我自己的 codehaus 插件代码快照。现在它告诉我需要输入 makensis 的位置。问题是,持续集成服务器在 Linux 上运行。我是SOL吗?
I want to include an installer created by NSIS into a Java project organized with Maven2. How can I incorporate this so that the installer is automatically built each time I use maven to create a distribution? I've tried the following:
http://mojo.codehaus.org/nsis-maven-plugin/plugin-info.html
The only way I could include the plugin was by pulling down a copy of the source in svn and building my own snapshot of the codehaus plugin code. Now it tells me I need to enter the location of makensis. Problem being, the continuous integration server is running on linux. Am I SOL?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
makensis(NSIS 编译器)在 POSIX 平台上编译和运行,请参阅 NSIS 文档< /a> 了解更多信息
makensis (The NSIS compiler) compiles and runs on POSIX platforms, see the NSIS documentation for more info
你也可以在 Linux 上自己编译 makensis:
http:// www.xdevsoftware.com/blog/post/How-to-Install-the-Nullsoft-Installer-NSIS-on-Linux-.aspx
You can also compile makensis yourself on Linux:
http://www.xdevsoftware.com/blog/post/How-to-Install-the-Nullsoft-Installer-NSIS-on-Linux-.aspx
另一个答案有所帮助,但作为任何可能阅读本文的人的附加信息——有适用于 Linux 的预编译版本的 makensis。我安装的包是mingw32-nsis,对于fedora/redhat/centos,你可以这样做:
yum install nsis
。http://hany.sk/~hany/RPM/mingw32-nsis.html< /a>
The other answer helped, but as additional information for anyone who may read this-- there are precompiled versions of makensis available for linux. The package I installed is mingw32-nsis, and for fedora/redhat/centos, you can do:
yum install nsis
.http://hany.sk/~hany/RPM/mingw32-nsis.html