Nullsoft Install System instead of InnoSetup for installer

Version changed to 4.0.0
This commit is contained in:
Jindra Petřík
2014-11-08 13:24:03 +01:00
parent a38dfeb21e
commit be9a6e28c5
13 changed files with 1303 additions and 21 deletions
+22 -11
View File
@@ -115,12 +115,23 @@
<os family="windows"/>
</condition>
<target name="installer" depends="dist" if="is_windows">
<property name="exe.file" value="${RELEASESDIR}/${PREFIXFILENAME}_${VERSION}${VERSIONSUFFIX}_setup.exe"/>
<echo message="#define MyAppVersion &quot;${VERSION}${VERSIONSUFFIX}&quot;" file="${INSTALLERCONFIG}" />
<exec dir="${basedir}" executable="${INNOSETUPPATH}\iscc.exe">
<arg file="${INSTALLERPROJECT}" />
</exec>
<target name="installer" depends="dist">
<taskdef name="nsis" classname="com.danielreese.nsisant.Task">
<classpath location="${basedir}/nsisant-1.3.jar" />
</taskdef>
<property name="exe.file" value="${RELEASESDIR}/${PREFIXFILENAME}_${VERSION}${VERSIONSUFFIX}_setup.exe"/>
<nsis script="installer.nsi" path="${NSISPATH}" verbosity="2">
<define name="APP_NAME" value="${PRODUCTNAME}"/>
<define name="APP_VER" value="${VERSION}${VERSIONSUFFIX}"/>
<define name="APP_VER_MAJOR" value="${VERSIONMAJOR}"/>
<define name="APP_VER_MINOR" value="${VERSIONMINOR}"/>
<define name="APP_PUBLISHER" value="${VENDOR}"/>
<define name="APP_URL" value="${PRODUCTURL}"/>
<define name="APP_SETUPFILE" value="${exe.file}" />
</nsis>
<echo level="info" message="Setup created in ${exe.file}"/>
</target>
<target name="library" depends="build_lib">
@@ -237,7 +248,7 @@
<target name="-upload-do" if="upload.config.exists">
<loadproperties srcfile="jpexs_website.properties" prefix="website"/>
<echo>Uploading...</echo>
<echo level="info">Uploading...</echo>
<!-- Note: You must have developer account to upload to JPEXS website -->
<java jar="uploader.jar" fork="true" failonerror="true">
<arg value="${website.upload.url}" />
@@ -338,7 +349,7 @@
<arg value="rev-parse"/>
<arg value="HEAD"/>
</exec>
<echo message="${GITTAG}" file="${REVFILE}"/>
<echo level="info" message="${GITTAG}" file="${REVFILE}"/>
<loadfile srcfile="${REVFILE}" property="GITSHORTTAG">
@@ -350,9 +361,9 @@
<striplinebreaks/>
</filterchain>
</loadfile>
<echo message="Git tag:${GITTAG}"/>
<echo message="Git shorttag:${GITSHORTTAG}"/>
<echo message="Version: ${VERSION}"/>
<echo level="info" message="Git tag:${GITTAG}"/>
<echo level="info" message="Git shorttag:${GITSHORTTAG}"/>
<echo level="info" message="Version: ${VERSION}"/>
</target>
<target name="build_lib">