我的 Eclipse RCP 应用程序是通过 Maven 构建的。我很想通过 Inno Setup 自动构建一个设置。但我不知道在哪里包含 Inno Setup exe 和 .iss
,它也应该包含在自动 Jenkins 构建中,那么 Inno Setup 应该放在哪里?
这是 Google 告诉我要做的,但我总是收到 IOException
,因为找不到 ISCC.exe
。
有人做过这样的 Maven-Inno Setup-build 吗?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>ISCC.exe</executable>
<arguments>
<argument>setup.iss</argument>
</arguments>
</configuration>
</plugin>
最佳答案
请参阅exec-maven-plugin:exec
页面:
executable:
The executable. Can be a full path or the name of the executable. In the latter case, the executable must be in the PATH for the execution to work.
The plugin will search for the executable in the following order:
- relative to the root of the project
- as toolchain executable
- relative to the working directory (Windows only)
- relative to the directories specified in the system property PATH (Windows Only)
Otherwise use the executable as is.
我还将插件执行绑定(bind)到 package
阶段而不是 install
阶段,因为它是 the more natural one :
package
– take the compiled code and package it in its distributable format
这样您也可以在集成测试
阶段使用设置的结果。
关于maven - 如何在 Maven 构建中使用 Inno Setup?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48624027/