|
27 | 27 | <!-- MAC notary: -->
|
28 | 28 | <property name="notarize.account" value="${env.NOTARY_USER}" />
|
29 | 29 | <property name="notarize.keychain_key" value="${env.NOTARY_KEY}" />
|
30 |
| - <property name="notarize.altool" value="" /> |
31 | 30 |
|
32 | 31 | <!-- Get HDFView, HDF4, HDF5 and HDF-Java version information -->
|
33 | 32 | <loadfile property="app.version" srcFile="${basedir}/VERSION">
|
|
1789 | 1788 | <arg value="${ant.project.name}-${app.version}.dmg" />
|
1790 | 1789 | </exec>
|
1791 | 1790 |
|
1792 |
| - <antcall target="submit-notary${notarize.altool}" /> |
| 1791 | + <echo message="xxxx Notarize dmg xxxx"/> |
| 1792 | + <antcall target="submit-notary" /> |
1793 | 1793 |
|
1794 |
| - <antcall target="post-notary${notarize.altool}" /> |
| 1794 | + <echo message="xxxx Get notary ID xxxx"/> |
| 1795 | + <antcall target="post-notary" /> |
1795 | 1796 |
|
| 1797 | + <echo message="xxxx Staple notary ID xxxx"/> |
1796 | 1798 | <antcall target="staple-notary" />
|
1797 | 1799 |
|
1798 | 1800 | <echo message="xxxx Package the mac dmg binary xxxx"/>
|
|
2031 | 2033 | <arg value="--apple-id"/>
|
2032 | 2034 | <arg value="${notarize.account}"/>
|
2033 | 2035 | <arg value="--team-id"/>
|
2034 |
| - <arg value="${sign.account}"/> |
| 2036 | + <arg value="${sign.account}"/> |
2035 | 2037 | <arg value="--password"/>
|
2036 | 2038 | <arg value="${notarize.keychain_key}"/>
|
2037 | 2039 | <arg value="--team-id"/>
|
2038 | 2040 | <arg value="${sign.account}"/>
|
2039 | 2041 | <arg value="${dist.dir}/${ant.project.name}-${app.version}.dmg"/>
|
2040 | 2042 | </exec>
|
2041 | 2043 | <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> |
2045 | 2046 | <filterchain>
|
2046 | 2047 | <tokenfilter>
|
2047 |
| - <containsregex |
2048 |
| - pattern="id:\s*([0-9a-fA-F-]+)$" |
| 2048 | + <replaceregex |
| 2049 | + pattern="id:\s*([0-9a-fA-F\-]+)$" |
2049 | 2050 | replace="\1" />
|
2050 | 2051 | </tokenfilter>
|
2051 | 2052 | <striplinebreaks/>
|
2052 | 2053 | </filterchain>
|
2053 |
| - </loadfile> |
2054 |
| - </sequential> |
| 2054 | + </loadresource> |
2055 | 2055 | <echo>notarize-app:${retUUID}</echo>
|
2056 | 2056 | </target>
|
2057 | 2057 |
|
|
2062 | 2062 | <arg value="info"/>
|
2063 | 2063 | <arg value="--apple-id"/>
|
2064 | 2064 | <arg value="${notarize.account}"/>
|
2065 |
| - <arg value="--team-id"/> |
2066 |
| - <arg value="${sign.account}"/> |
| 2065 | + <arg value="--team-id"/> |
| 2066 | + <arg value="${sign.account}"/> |
2067 | 2067 | <arg value="--password"/>
|
2068 | 2068 | <arg value="${notarize.keychain_key}"/>
|
2069 | 2069 | <arg value="--team-id"/>
|
|
2094 | 2094 | <arg value="${ant.project.name}-${app.version}.dmg"/>
|
2095 | 2095 | </exec>
|
2096 | 2096 | </target>
|
| 2097 | + |
2097 | 2098 | <target name="zip-submit-notary" if="sign.enable">
|
2098 | 2099 | <exec executable="/usr/bin/xcrun" failonerror="true"
|
2099 | 2100 | outputproperty="zipUUID.txt">
|
|
2109 | 2110 | <arg value="${dist.dir}/${ant.project.name}-${app.version}.zip"/>
|
2110 | 2111 | </exec>
|
2111 | 2112 | <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> |
2115 | 2115 | <filterchain>
|
2116 | 2116 | <tokenfilter>
|
2117 |
| - <containsregex |
2118 |
| - pattern="id:\s*([0-9a-fA-F-]+)$" |
| 2117 | + <replaceregex |
| 2118 | + pattern="id:\s*([0-9a-fA-F\-]+)$" |
2119 | 2119 | replace="\1" />
|
2120 | 2120 | </tokenfilter>
|
2121 | 2121 | <striplinebreaks/>
|
2122 | 2122 | </filterchain>
|
2123 |
| - </loadfile> |
| 2123 | + </loadresource> |
2124 | 2124 | <echo>notarize-zip-app:${zipUUID}</echo>
|
2125 |
| - </sequential> |
2126 | 2125 | </target>
|
2127 | 2126 |
|
2128 | 2127 | <!-- Staple the received notarization to the app -->
|
|
2229 | 2228 | <arg value="${ant.project.name}-${app.version}.zip" />
|
2230 | 2229 | </exec>
|
2231 | 2230 |
|
2232 |
| - <antcall target="zip-submit-notary${notarize.altool}" /> |
| 2231 | + <antcall target="zip-submit-notary" /> |
2233 | 2232 |
|
2234 |
| - <antcall target="post-notary${notarize.altool}" /> |
| 2233 | + <antcall target="post-notary" /> |
2235 | 2234 |
|
2236 | 2235 | <antcall target="zip-staple-notary" />
|
2237 | 2236 |
|
|
0 commit comments