Skip to content

Commit b45c8c0

Browse files
authored
Remove old altool option and use resource
1 parent 7edeacf commit b45c8c0

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

build.xml

+21-22
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<!-- MAC notary: -->
2828
<property name="notarize.account" value="${env.NOTARY_USER}" />
2929
<property name="notarize.keychain_key" value="${env.NOTARY_KEY}" />
30-
<property name="notarize.altool" value="" />
3130

3231
<!-- Get HDFView, HDF4, HDF5 and HDF-Java version information -->
3332
<loadfile property="app.version" srcFile="${basedir}/VERSION">
@@ -1789,10 +1788,13 @@
17891788
<arg value="${ant.project.name}-${app.version}.dmg" />
17901789
</exec>
17911790

1792-
<antcall target="submit-notary${notarize.altool}" />
1791+
<echo message="xxxx Notarize dmg xxxx"/>
1792+
<antcall target="submit-notary" />
17931793

1794-
<antcall target="post-notary${notarize.altool}" />
1794+
<echo message="xxxx Get notary ID xxxx"/>
1795+
<antcall target="post-notary" />
17951796

1797+
<echo message="xxxx Staple notary ID xxxx"/>
17961798
<antcall target="staple-notary" />
17971799

17981800
<echo message="xxxx Package the mac dmg binary xxxx"/>
@@ -2031,27 +2033,25 @@
20312033
<arg value="--apple-id"/>
20322034
<arg value="${notarize.account}"/>
20332035
<arg value="--team-id"/>
2034-
<arg value="${sign.account}"/>
2036+
<arg value="${sign.account}"/>
20352037
<arg value="--password"/>
20362038
<arg value="${notarize.keychain_key}"/>
20372039
<arg value="--team-id"/>
20382040
<arg value="${sign.account}"/>
20392041
<arg value="${dist.dir}/${ant.project.name}-${app.version}.dmg"/>
20402042
</exec>
20412043
<echo>notarize-app output:${retUUID.txt}</echo>
2042-
<sequential>
2043-
<echo message="@{retUUID.txt}" file="retUUID.txt.file" />
2044-
<loadfile property="retUUID" srcfile="retUUID.txt.file">
2044+
<loadresource property="retUUID">
2045+
<concat>${retUUID.txt}</concat>
20452046
<filterchain>
20462047
<tokenfilter>
2047-
<containsregex
2048-
pattern="id:\s*([0-9a-fA-F-]+)$"
2048+
<replaceregex
2049+
pattern="id:\s*([0-9a-fA-F\-]+)$"
20492050
replace="\1" />
20502051
</tokenfilter>
20512052
<striplinebreaks/>
20522053
</filterchain>
2053-
</loadfile>
2054-
</sequential>
2054+
</loadresource>
20552055
<echo>notarize-app:${retUUID}</echo>
20562056
</target>
20572057

@@ -2062,8 +2062,8 @@
20622062
<arg value="info"/>
20632063
<arg value="--apple-id"/>
20642064
<arg value="${notarize.account}"/>
2065-
<arg value="--team-id"/>
2066-
<arg value="${sign.account}"/>
2065+
<arg value="--team-id"/>
2066+
<arg value="${sign.account}"/>
20672067
<arg value="--password"/>
20682068
<arg value="${notarize.keychain_key}"/>
20692069
<arg value="--team-id"/>
@@ -2094,6 +2094,7 @@
20942094
<arg value="${ant.project.name}-${app.version}.dmg"/>
20952095
</exec>
20962096
</target>
2097+
20972098
<target name="zip-submit-notary" if="sign.enable">
20982099
<exec executable="/usr/bin/xcrun" failonerror="true"
20992100
outputproperty="zipUUID.txt">
@@ -2109,20 +2110,18 @@
21092110
<arg value="${dist.dir}/${ant.project.name}-${app.version}.zip"/>
21102111
</exec>
21112112
<echo>notarize-zip-app:${zipUUID.txt}</echo>
2112-
<sequential>
2113-
<echo message="@{zipUUID.txt}" file="zipUUID.txt.file" />
2114-
<loadfile property="zipUUID" srcfile="zipUUID.txt.file">
2113+
<loadresource property="zipUUID">
2114+
<concat>${zipUUID.txt}</concat>
21152115
<filterchain>
21162116
<tokenfilter>
2117-
<containsregex
2118-
pattern="id:\s*([0-9a-fA-F-]+)$"
2117+
<replaceregex
2118+
pattern="id:\s*([0-9a-fA-F\-]+)$"
21192119
replace="\1" />
21202120
</tokenfilter>
21212121
<striplinebreaks/>
21222122
</filterchain>
2123-
</loadfile>
2123+
</loadresource>
21242124
<echo>notarize-zip-app:${zipUUID}</echo>
2125-
</sequential>
21262125
</target>
21272126

21282127
<!-- Staple the received notarization to the app -->
@@ -2229,9 +2228,9 @@
22292228
<arg value="${ant.project.name}-${app.version}.zip" />
22302229
</exec>
22312230

2232-
<antcall target="zip-submit-notary${notarize.altool}" />
2231+
<antcall target="zip-submit-notary" />
22332232

2234-
<antcall target="post-notary${notarize.altool}" />
2233+
<antcall target="post-notary" />
22352234

22362235
<antcall target="zip-staple-notary" />
22372236

0 commit comments

Comments
 (0)