mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Updated installer script to update max heap size for 64 bit, fixed installation path for 64 bit.
This commit is contained in:
parent
eab1346366
commit
088e1ed90b
@ -27,8 +27,6 @@
|
|||||||
<condition property="jre.home.64">
|
<condition property="jre.home.64">
|
||||||
<isset property="env.JRE_HOME_64"/>
|
<isset property="env.JRE_HOME_64"/>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="autoAIPath" description="Attempt to find the AI path based on standard installation location">
|
<target name="autoAIPath" description="Attempt to find the AI path based on standard installation location">
|
||||||
@ -75,6 +73,9 @@
|
|||||||
<var name="jre-path" value="${env.JRE_HOME_32}"/>
|
<var name="jre-path" value="${env.JRE_HOME_32}"/>
|
||||||
<var name="package-type" value="x86" />
|
<var name="package-type" value="x86" />
|
||||||
<var name="jvm.max.mem" value="512" />
|
<var name="jvm.max.mem" value="512" />
|
||||||
|
<exec executable="${ai-exe-path}">
|
||||||
|
<arg line="/edit ${aip-path} /SetAppdir -buildname DefaultBuild -path [ProgramFilesFolder][ProductName]-${app.version}"/>
|
||||||
|
</exec>
|
||||||
<antcall target="run-ai-32" inheritAll="true" inheritRefs="true" />
|
<antcall target="run-ai-32" inheritAll="true" inheritRefs="true" />
|
||||||
<delete dir="${nbdist.dir}/installer_${app.name}_32-cache"/>
|
<delete dir="${nbdist.dir}/installer_${app.name}_32-cache"/>
|
||||||
<move file="${nbdist.dir}/installer_${app.name}_32-SetupFiles/installer_${app.name}_32.msi" tofile="${nbdist.dir}/installer_${app.name}_32-${app.version}.msi" />
|
<move file="${nbdist.dir}/installer_${app.name}_32-SetupFiles/installer_${app.name}_32.msi" tofile="${nbdist.dir}/installer_${app.name}_32-${app.version}.msi" />
|
||||||
@ -91,6 +92,9 @@
|
|||||||
<var name="package-type" value="x64" />
|
<var name="package-type" value="x64" />
|
||||||
<var name="jvm.max.mem" value="2048"/>
|
<var name="jvm.max.mem" value="2048"/>
|
||||||
<echo message="aip-path: ${aip-path}" />
|
<echo message="aip-path: ${aip-path}" />
|
||||||
|
<exec executable="${ai-exe-path}">
|
||||||
|
<arg line="/edit ${aip-path} /SetAppdir -buildname DefaultBuild -path [ProgramFiles64Folder][ProductName]-${app.version}"/>
|
||||||
|
</exec>
|
||||||
<antcall target="run-ai-64" inheritAll="true" inheritRefs="true" />
|
<antcall target="run-ai-64" inheritAll="true" inheritRefs="true" />
|
||||||
<delete dir="${nbdist.dir}/installer_${app.name}_64-cache"/>
|
<delete dir="${nbdist.dir}/installer_${app.name}_64-cache"/>
|
||||||
<move file="${nbdist.dir}/installer_${app.name}_64-SetupFiles/installer_${app.name}_64.msi" tofile="${nbdist.dir}/installer_${app.name}_64-${app.version}.msi" />
|
<move file="${nbdist.dir}/installer_${app.name}_64-SetupFiles/installer_${app.name}_64.msi" tofile="${nbdist.dir}/installer_${app.name}_64-${app.version}.msi" />
|
||||||
@ -125,15 +129,15 @@
|
|||||||
<target name="update-config" description="Updates configuration file with correct JVM args.">
|
<target name="update-config" description="Updates configuration file with correct JVM args.">
|
||||||
<!-- Update configuration file to include jre -->
|
<!-- Update configuration file to include jre -->
|
||||||
<property name="inst.property.file" value="${inst-path}/etc/${app.name}.conf" />
|
<property name="inst.property.file" value="${inst-path}/etc/${app.name}.conf" />
|
||||||
<!-- Sets max heap size to be ${jvm.mem} which is set in the run-ai-(32/64) target -->
|
<!-- Sets max heap size to be ${jvm.max.mem} which is set in the run-ai-(32/64) target -->
|
||||||
<property name="jvm.options" value=""--branding ${app.name} -J-Xms24m -J-Xmx${jvm.max.mem}m -J-XX:MaxPermSize=128M -J-Xverify:none -J-Xdock:name=${app.title}"" />
|
<var name="jvm.args" value=""--branding ${app.name} -J-Xms24m -J-Xmx${jvm.max.mem}m -J-XX:MaxPermSize=128M -J-Xverify:none -J-Xdock:name=${app.title}"" />
|
||||||
<propertyfile file="${inst.property.file}">
|
<propertyfile file="${inst.property.file}">
|
||||||
<!-- Note: can be higher on 64 bit systems, should be in sync with project.properties -->
|
<!-- Note: can be higher on 64 bit systems, should be in sync with project.properties -->
|
||||||
<entry key="default_options" value="@JVM_OPTIONS" />
|
<entry key="default_options" value="@JVM_OPTIONS" />
|
||||||
<entry key="jdkhome" value=""jre7"" />
|
<entry key="jdkhome" value=""jre7"" />
|
||||||
</propertyfile>
|
</propertyfile>
|
||||||
<!-- workaround for ant escaping : and = when setting properties -->
|
<!-- workaround for ant escaping : and = when setting properties -->
|
||||||
<replace file="${inst.property.file}" token="@JVM_OPTIONS" value="${jvm.options}" />
|
<replace file="${inst.property.file}" token="@JVM_OPTIONS" value="${jvm.args}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
@ -155,7 +159,6 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="add-file-or-dir" depends="is-file-or-folder">
|
<target name="add-file-or-dir" depends="is-file-or-folder">
|
||||||
<echo message="${ai-exe-path}" />
|
|
||||||
<echo message="Adding ${file-or-folder} to installer: ${theFile}"/>
|
<echo message="Adding ${file-or-folder} to installer: ${theFile}"/>
|
||||||
<exec executable="${ai-exe-path}">
|
<exec executable="${ai-exe-path}">
|
||||||
<arg line="/edit ${aip-path} /Add${file-or-folder} APPDIR ${theFile}" />
|
<arg line="/edit ${aip-path} /Add${file-or-folder} APPDIR ${theFile}" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user