@@ -47,17 +47,21 @@ jobs:
4747 CERTIFICATE : /tmp/wmch-devid.p12
4848 run : |
4949 echo "${{ secrets.APPLE_SIGNING_CERTIFICATE }}" | base64 --decode -o $CERTIFICATE
50- security create-keychain -p mysecretpassword build.keychain
51- security default-keychain -s build.keychain
52- security unlock-keychain -p mysecretpassword build.keychain
53- security import $CERTIFICATE -k build.keychain -P "${{ secrets.APPLE_SIGNING_P12_PASSWORD }}" -A
50+ security create-keychain -p mysecretpassword $(pwd)/ build.keychain
51+ security default-keychain -s $(pwd)/ build.keychain
52+ security unlock-keychain -p mysecretpassword $(pwd)/ build.keychain
53+ security import $CERTIFICATE -k $(pwd)/ build.keychain -P "${{ secrets.APPLE_SIGNING_P12_PASSWORD }}" -A
5454 rm $CERTIFICATE
55- security set-key-partition-list -S "apple-tool:,apple:" -s -k mysecretpassword build.keychain
55+ security set-key-partition-list -S "apple-tool:,apple:" -s -k mysecretpassword $(pwd)/ build.keychain
5656 security find-identity -v
5757 sudo sntp -sS -t 60 time4.google.com || true
58- xcrun altool --store-password-in-keychain-item "ALTOOL_PASSWORD" \
59- -u "${{ secrets.APPLE_SIGNING_ALTOOL_USERNAME }}" \
60- -p "${{ secrets.APPLE_SIGNING_ALTOOL_PASSWORD }}"
58+ xcrun notarytool store-credentials \
59+ --apple-id "${{ secrets.APPLE_SIGNING_ALTOOL_USERNAME }}" \
60+ --password "${{ secrets.APPLE_SIGNING_ALTOOL_PASSWORD }}" \
61+ --team-id "${{ secrets.APPLE_SIGNING_TEAM }}" \
62+ --validate \
63+ --keychain $(pwd)/build.keychain \
64+ build-profile
6165
6266 - name : set linux environ
6367 if : matrix.os == 'ubuntu-20.04'
@@ -123,15 +127,12 @@ jobs:
123127 wrapper_zip="${wrapper}.zip"
124128 ditto -c -k --keepParent ${wrapper} ${wrapper_zip}
125129 echo "request notarization"
126- xcrun altool --notarize-app --file ${wrapper_zip} \
127- --primary-bundle-id org.openzim.libzim.pylibzim \
128- --username "${{ secrets.APPLE_SIGNING_ALTOOL_USERNAME }}" \
129- --password "@keychain:ALTOOL_PASSWORD" \
130- --asc-provider "${{ secrets.APPLE_SIGNING_TEAM }}"
130+ security unlock-keychain -p mysecretpassword $(pwd)/build.keychain
131+ xcrun notarytool submit --keychain $(pwd)/build.keychain --keychain-profile "build-profile" --wait ${wrapper_zip}
131132 echo "remove zip file"
132133 rm ${wrapper_zip}
133134 echo "display request status (should be rejected)"
134- spctl -a -v -t install ${wrapper} || true
135+ spctl --assess -vv --type install ${wrapper}
135136
136137 - name : add Linux libzim binary to source for wheel
137138 if : matrix.os == 'ubuntu-20.04'
0 commit comments