mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-10 11:25:04 -05:00
Refactor MSI build (heat, candle, light, F*CK THIS SHIT)
This commit is contained in:
parent
28cc439bfc
commit
5425c0f7e2
43
build.xml
43
build.xml
@ -73,6 +73,29 @@
|
|||||||
</macrodef>
|
</macrodef>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- deploy release artifacts -->
|
||||||
|
<macrodef name="get-java">
|
||||||
|
<attribute name="arch" />
|
||||||
|
<attribute name="src" />
|
||||||
|
<attribute name="dest" />
|
||||||
|
<sequential>
|
||||||
|
<exec executable="powershell" dir="${dir.cache}" failonerror="yes">
|
||||||
|
<env key="PROCESSOR_ARCHITECTURE" value="@{arch}" />
|
||||||
|
<arg line="get-java" />
|
||||||
|
</exec>
|
||||||
|
<untar src="${dir.cache}/@{src}" dest="@{dest}" compression="gzip">
|
||||||
|
<patternset>
|
||||||
|
<exclude name="**/dtplugin/**" />
|
||||||
|
<exclude name="**/plugin2/**" />
|
||||||
|
<exclude name="**/jfxwebkit.dll" />
|
||||||
|
</patternset>
|
||||||
|
<cutdirsmapper dirs="1" />
|
||||||
|
</untar>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<target name="resolve" description="Retrieve dependencies with Apache Ivy">
|
<target name="resolve" description="Retrieve dependencies with Apache Ivy">
|
||||||
<delete dir="${dir.lib}/ivy" />
|
<delete dir="${dir.lib}/ivy" />
|
||||||
<ivy:retrieve pattern="${dir.lib}/ivy/[type]/[artifact].[ext]" />
|
<ivy:retrieve pattern="${dir.lib}/ivy/[type]/[artifact].[ext]" />
|
||||||
@ -644,11 +667,10 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="msi" description="Build Windows Installer packages" depends="">
|
<target name="msi" description="Build Windows Installer packages" depends="revision">
|
||||||
<antcall target="msi-arch">
|
<antcall target="msi-arch">
|
||||||
<param name="arch" value="x64" />
|
<param name="arch" value="x64" />
|
||||||
<param name="arch.env" value="AMD64" />
|
<param name="arch.env" value="AMD64" />
|
||||||
<param name="arch.jre" value="x64" />
|
|
||||||
</antcall>
|
</antcall>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
@ -656,18 +678,8 @@
|
|||||||
<target name="msi-arch">
|
<target name="msi-arch">
|
||||||
<property name="dir.staging" location="${dir.dist}/msi/${arch}" />
|
<property name="dir.staging" location="${dir.dist}/msi/${arch}" />
|
||||||
|
|
||||||
<exec executable="powershell" dir="${dir.cache}" failonerror="yes">
|
<!-- 1. prepare application files for heat harvest -->
|
||||||
<env key="PROCESSOR_ARCHITECTURE" value="${arch.env}" />
|
<get-java arch="${arch.env}" src="jre-${jre.version}_windows-${arch}_bin.tar.gz" dest="${dir.staging}/jre" />
|
||||||
<arg line="get-java" />
|
|
||||||
</exec>
|
|
||||||
<untar src="${dir.cache}/jre-${jre.version}_windows-${arch.jre}_bin.tar.gz" dest="${dir.staging}/jre" compression="gzip">
|
|
||||||
<patternset>
|
|
||||||
<exclude name="**/dtplugin/**" />
|
|
||||||
<exclude name="**/plugin2/**" />
|
|
||||||
<exclude name="**/jfxwebkit.dll" />
|
|
||||||
</patternset>
|
|
||||||
<cutdirsmapper dirs="1" />
|
|
||||||
</untar>
|
|
||||||
|
|
||||||
<copy todir="${dir.staging}/jar">
|
<copy todir="${dir.staging}/jar">
|
||||||
<fileset dir="${dir.dist}/lib" includes="*.jar" />
|
<fileset dir="${dir.dist}/lib" includes="*.jar" />
|
||||||
@ -684,7 +696,7 @@
|
|||||||
</exec>
|
</exec>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 2. prepare installer files and application stub for candle light -->
|
||||||
<copy todir="${dir.staging}">
|
<copy todir="${dir.staging}">
|
||||||
<fileset dir="${dir.installer}/msi" includes="*.exe, *.rtf, *.bmp" />
|
<fileset dir="${dir.installer}/msi" includes="*.exe, *.rtf, *.bmp" />
|
||||||
</copy>
|
</copy>
|
||||||
@ -695,7 +707,6 @@
|
|||||||
<fileset dir="${dir.installer}/msi" includes="*.wix, *.ini" />
|
<fileset dir="${dir.installer}/msi" includes="*.wix, *.ini" />
|
||||||
</copy-replace>
|
</copy-replace>
|
||||||
|
|
||||||
|
|
||||||
<exec executable="candle" dir="${dir.staging}" failonerror="true">
|
<exec executable="candle" dir="${dir.staging}" failonerror="true">
|
||||||
<arg line="filebot.wix -out filebot.wixobj" />
|
<arg line="filebot.wix -out filebot.wixobj" />
|
||||||
</exec>
|
</exec>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<icon>..\icons\shortcut.ico</icon>
|
<icon>..\icons\shortcut.ico</icon>
|
||||||
<classPath>
|
<classPath>
|
||||||
<mainClass>net.filebot.Main</mainClass>
|
<mainClass>net.filebot.Main</mainClass>
|
||||||
<cp>%EXEDIR%\lib\*.jar</cp>
|
<cp>%EXEDIR%\jar\*.jar</cp>
|
||||||
</classPath>
|
</classPath>
|
||||||
<jre>
|
<jre>
|
||||||
<path>jre</path>
|
<path>jre</path>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<icon>..\icons\shortcut.ico</icon>
|
<icon>..\icons\shortcut.ico</icon>
|
||||||
<classPath>
|
<classPath>
|
||||||
<mainClass>net.filebot.Main</mainClass>
|
<mainClass>net.filebot.Main</mainClass>
|
||||||
<cp>%EXEDIR%\lib\*.jar</cp>
|
<cp>%EXEDIR%\jar\*.jar</cp>
|
||||||
</classPath>
|
</classPath>
|
||||||
<jre>
|
<jre>
|
||||||
<path>jre</path>
|
<path>jre</path>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<icon>..\icons\shortcut.ico</icon>
|
<icon>..\icons\shortcut.ico</icon>
|
||||||
<classPath>
|
<classPath>
|
||||||
<mainClass>net.filebot.Main</mainClass>
|
<mainClass>net.filebot.Main</mainClass>
|
||||||
<cp>%EXEDIR%\lib\*.jar</cp>
|
<cp>%EXEDIR%\jar\*.jar</cp>
|
||||||
</classPath>
|
</classPath>
|
||||||
<jre>
|
<jre>
|
||||||
<path>jre</path>
|
<path>jre</path>
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user