Skip to content

Commit

Permalink
Rework the mac/windows signing tasks (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF authored Aug 20, 2024
1 parent 1adad6e commit 40bafac
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1365,17 +1365,14 @@
<condition property="isXMac" else="false">
<and>
<equals arg1="${isMac}" arg2="true" />
<not>
<equals arg1="${sign_state}" arg2="true" />
</not>
<equals arg1="${XPackage}" arg2="true" />
</and>
</condition>
<echo if:set="isXMac">isXMac=${isXMac}</echo>

<condition property="isSignXMac" else="false">
<and>
<equals arg1="${isMac}" arg2="true" />
<equals arg1="${isXMac}" arg2="true" />
<equals arg1="${sign_state}" arg2="true" />
<equals arg1="${XPackage}" arg2="true" />
</and>
Expand Down Expand Up @@ -1418,6 +1415,15 @@
</condition>
<echo if:set="isXWindows">isXWindows=${isXWindows}</echo>

<condition property="isSignXWindows" else="false">
<and>
<equals arg1="${isWindows}" arg2="true" />
<equals arg1="${sign_state}" arg2="true" />
<equals arg1="${XPackage}" arg2="true" />
</and>
</condition>
<echo if:set="isSignXWindows">isSignXWindows=${isSignXWindows}</echo>

<condition property="isAppMac" else="false">
<and>
<equals arg1="${isMac}" arg2="true" />
Expand Down Expand Up @@ -1546,7 +1552,7 @@
<chmod perm="u+w" file="${dist.dir}/${ant.project.name}-${app.version}-${uname.os}-${machine.arch}.tar.gz" />
</target>

<target name="binaryPackXMac" depends="createJXPackageMac, createMacREADME" if="${isXMac}">
<target name="binaryPackXMac" depends="binaryPackSignXMac, createJXPackageMac, createMacREADME" if="${isXMac}">
<echo message="xxxx Package the mac dmg binary xxxx"/>
<!-- Copy over license file -->
<copy tofile="${dist.dir}/COPYING.txt">
Expand Down

0 comments on commit 40bafac

Please sign in to comment.