提交 a65741c5 编写于 作者: M Mathieu Bastian

Configure the replacevistaicon execution on Travis as well

上级 fa106120
......@@ -28,8 +28,14 @@ install:
- chmod +x ./iscc
- sudo cp ./iscc /usr/local/bin/iscc
# Install ReplaceVistaIcon.exe
- cp modules/application/src/main/app-resources/ReplaceVistaIcon.exe ~/".wine/drive_c/ReplaceVistaIcon.exe"
- printf '#!/bin/sh\nunset DISPLAY\nexecutable=$1\niconfile=$2\niconid=$3\nwine "C:\ReplaceVistaIcon.exe" "$executable" "$iconfile" "$iconid"' > replacevistaicon
- chmod +x ./replacevistaicon
- sudo cp ./replacevistaicon /usr/local/bin/replacevistaicon
# Setup Maven's settings.xml
- echo "<settings><servers><server><id>ossrh</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server><server><id>netbeans</id><configuration><httpConfiguration><get><readTimeout>300000</readTimeout><connectionTimeout>300000</connectionTimeout></get></httpConfiguration></configuration></server></servers></settings>" > ~/settings.xml
script:
- travis_retry mvn --settings ~/settings.xml -Djava.awt.headless=true -Dgpg.skip=true clean install -P deployment,create-dmg,create-exe
- travis_retry mvn --settings ~/settings.xml -Djava.awt.headless=true -Dgpg.skip=true clean deploy -P deployment,create-dmg,create-exe
......@@ -796,8 +796,9 @@
<goal>run</goal>
</goals>
<configuration>
<!-- Windows-only target that replaces the icon for the launcher exe with our own icon. -->
<!-- Target that replaces the icon for the launcher exe with our own icon. -->
<target name="replaceWindowsLauncherIcon" description="Replace the icon for the Windows launcher exe">
<!-- Windows -->
<echo message="Replacing icon of Windows launcher executable."/>
<exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" os="Windows">
<arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}.exe gephi.ico 0"/>
......@@ -811,6 +812,21 @@
<exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" os="Windows">
<arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}64.exe gephifile.ico 1"/>
</exec>
<!-- Linux (assuming the right wine configuration) -->
<echo message="Replacing icon of Windows launcher executable."/>
<exec dir="src/main/app-resources" executable="replacevistaicon" os="Linux">
<arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}.exe gephi.ico 0"/>
</exec>
<exec dir="src/main/app-resources" executable="replacevistaicon" os="Linux">
<arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}.exe gephifile.ico 1"/>
</exec>
<exec dir="src/main/app-resources" executable="replacevistaicon" os="Linux">
<arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}64.exe gephi.ico 0"/>
</exec>
<exec dir="src/main/app-resources" executable="replacevistaicon" os="Linux">
<arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}64.exe gephifile.ico 1"/>
</exec>
</target>
</configuration>
</execution>
......@@ -824,10 +840,12 @@
<target>
<delete file="${project.artifactId}-${project.version}.setup.exe" failonerror="false"/>
<!-- Windows -->
<exec dir="${project.build.directory}" executable="${gephi.innosetup.path}/Compil32.exe" os="Windows">
<arg line="/cc '${brandingToken}.iss'" />
</exec>
<!-- Linux (assuming the right wine configuration) -->
<exec dir="${project.build.directory}" executable="iscc" os="Linux">
<arg line="${brandingToken}.iss" />
</exec>
......
......@@ -997,7 +997,7 @@
<executions>
<execution>
<id>attach-javadocs</id>
<phase>deploy</phase>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册