提交 26869a43 编写于 作者: M Mathieu Bastian

Add Linux configuration to build windows installer on Travis

上级 32094526
......@@ -12,8 +12,24 @@ before_install:
# Install genisoimage (dmg creation tool)
- sudo apt-get install genisoimage
# Prepare environemnt for Inno Setup
- sudo add-apt-repository --yes ppa:arx/release
- sudo apt-get update -d
- sudo apt-get install -y -q innoextract wine
- wine --version
- innoextract --version
install:
# Install InnoSetup
- printf "#!/bin/bash\nrm -rf /tmp/inno\nmkdir /tmp/inno\ncd /tmp/inno\nwget -O is.exe http://files.jrsoftware.org/is/5/isetup-5.5.5.exe\ninnoextract is.exe\nmkdir -p ~/\".wine/drive_c/inno\"\ncp -a app/* ~/\".wine/drive_c/inno\"" > innoinstall.sh
- chmod +x ./innoinstall.sh
- ./innoinstall.sh
- printf "#!/bin/sh\nunset DISPLAY\nscriptname=$1\n[ -f \"$scriptname\" ] && scriptname=$(winepath -w \"$scriptname\")\nwine \"C:\inno\ISCC.exe\" \"$scriptname\" \"/q\"" > iscc
- chmod +x ./iscc
- sudo cp ./iscc /usr/local/bin/iscc
# Setup Maven's settings.xml
- echo "<settings><servers><server><id>ossrh</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server></servers></settings>" > ~/settings.xml
script:
- mvn clean install -P deployment,create-dmg --settings ~/settings.xml -Djava.awt.headless=true -Dgpg.skip=true
- mvn clean install -P deployment,create-dmg,release-windows --settings ~/settings.xml -Djava.awt.headless=true -Dgpg.skip=true
......@@ -831,16 +831,16 @@
<!-- Windows-only 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">
<echo message="Replacing icon of Windows launcher executable."/>
<exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true">
<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"/>
</exec>
<exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true">
<exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" os="Windows">
<arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}.exe gephifile.ico 1"/>
</exec>
<exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true">
<exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true" os="Windows">
<arg line="${project.build.directory}/${brandingToken}/bin/${brandingToken}64.exe gephi.ico 0"/>
</exec>
<exec dir="src/main/app-resources" executable="ReplaceVistaIcon.exe" resolveexecutable="true">
<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>
</target>
......@@ -856,9 +856,13 @@
<target>
<delete file="${project.artifactId}-${project.version}.setup.exe" failonerror="false"/>
<exec dir="${project.build.directory}" executable="${gephi.innosetup.path}/Compil32.exe">
<exec dir="${project.build.directory}" executable="${gephi.innosetup.path}/Compil32.exe" os="Windows">
<arg line="/cc '${brandingToken}.iss'" />
</exec>
</exec>
<exec dir="${project.build.directory}" executable="iscc" os="Linux">
<arg line="${brandingToken}.iss" />
</exec>
</target>
</configuration>
</execution>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册