Skip to content

Commit

Permalink
Save notary output to file (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF authored May 29, 2024
1 parent 4e9874e commit 4eb65a1
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2025,8 +2025,8 @@
================================================================= -->

<target name="submit-notary" if="sign.enable">
<exec executable="/usr/bin/xcrun" failonerror="true"
outputproperty="retUUID.txt">
<exec executable="/usr/bin/xcrun" failonerror="true">
<redirector output="retUUID.txt" alwayslog="true"/>
<arg value="notarytool"/>
<arg value="submit"/>
<arg value="--wait"/>
Expand All @@ -2041,16 +2041,15 @@
<arg value="${dist.dir}/${ant.project.name}-${app.version}.dmg"/>
</exec>
<echo>notarize-app output:${retUUID.txt}</echo>
<loadresource property="retUUID">
<concat>${retUUID.txt}</concat>
<loadfile property="retUUID" srcfile="retUUID.txt">
<filterchain>
<tokenfilter>
<stringtokenizer/>
<containsregex pattern="[0-9a-fA-F\-]+" />
</tokenfilter>
<striplinebreaks/>
</filterchain>
</loadresource>
</loadfile>
<echo>notarize-app:${retUUID}</echo>
</target>

Expand Down Expand Up @@ -2093,8 +2092,8 @@
</target>

<target name="zip-submit-notary" if="sign.enable">
<exec executable="/usr/bin/xcrun" failonerror="true"
outputproperty="zipUUID.txt">
<exec executable="/usr/bin/xcrun" failonerror="true">
<redirector output="zipUUID.txt" alwayslog="true"/>
<arg value="notarytool"/>
<arg value="submit"/>
<arg value="--wait"/>
Expand All @@ -2109,16 +2108,15 @@
<arg value="${dist.dir}/${ant.project.name}-${app.version}.zip"/>
</exec>
<echo>notarize-zip-app output:${zipUUID.txt}</echo>
<loadresource property="zipUUID">
<concat>${zipUUID.txt}</concat>
<loadfile property="zipUUID" srcfile="zipUUID.txt">
<filterchain>
<tokenfilter>
<stringtokenizer/>
<containsregex pattern="[0-9a-fA-F\-]+" />
</tokenfilter>
<striplinebreaks/>
</filterchain>
</loadresource>
</loadfile>
<echo>notarize-zip-app:${zipUUID}</echo>
</target>

Expand Down

0 comments on commit 4eb65a1

Please sign in to comment.