-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathcodesign.sh
executable file
·62 lines (42 loc) · 1.85 KB
/
codesign.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
MAINNAME="PaulXStretch"
# codesign them with developer ID cert
POPTS="--strict --force --options=runtime --sign C7AF15C3BCF2AD2E5C102B9DB6502CFAE2C8CF3B --timestamp"
AOPTS="--strict --force --options=runtime --sign C7AF15C3BCF2AD2E5C102B9DB6502CFAE2C8CF3B --timestamp"
codesign ${AOPTS} --entitlements ${MAINNAME}.entitlements ${MAINNAME}/${MAINNAME}.app
codesign ${POPTS} --entitlements ${MAINNAME}.entitlements ${MAINNAME}/${MAINNAME}.component
codesign ${POPTS} --entitlements ${MAINNAME}.entitlements ${MAINNAME}/${MAINNAME}.vst3
codesign ${POPTS} --entitlements ${MAINNAME}.entitlements ${MAINNAME}/${MAINNAME}.clap
# AAX is special
if [ -n "${PSAAXSIGNCMD}" ]; then
echo "Signing AAX plugin"
${PSAAXSIGNCMD} --in ${MAINNAME}/${MAINNAME}.aaxplugin --out ${MAINNAME}/${MAINNAME}.aaxplugin
fi
if [ "x$1" = "xonly" ] ; then
echo Code-signing only
exit 0
fi
mkdir -p tmp
# notarize them in parallel
./notarize-app.sh --submit=tmp/sbapp.uuid ${MAINNAME}/${MAINNAME}.app
./notarize-app.sh --submit=tmp/sbau.uuid ${MAINNAME}/${MAINNAME}.component
./notarize-app.sh --submit=tmp/sbvst3.uuid ${MAINNAME}/${MAINNAME}.vst3
./notarize-app.sh --submit=tmp/sbclap.uuid ${MAINNAME}/${MAINNAME}.clap
#./notarize-app.sh --submit=tmp/sbinstvst3.uuid SonoBus/SonoBusInstrument.vst3
#./notarize-app.sh --submit=tmp/sbvst2.uuid SonoBus/SonoBus.vst
if ! ./notarize-app.sh --resume=tmp/sbapp.uuid ${MAINNAME}/${MAINNAME}.app ; then
echo Notarization App failed
exit 2
fi
if ! ./notarize-app.sh --resume=tmp/sbau.uuid ${MAINNAME}/${MAINNAME}.component ; then
echo Notarization AU failed
exit 2
fi
if ! ./notarize-app.sh --resume=tmp/sbvst3.uuid ${MAINNAME}/${MAINNAME}.vst3 ; then
echo Notarization VST3 failed
exit 2
fi
if ! ./notarize-app.sh --resume=tmp/sbclap.uuid ${MAINNAME}/${MAINNAME}.clap ; then
echo Notarization CLAP failed
exit 2
fi