@@ -11,14 +11,15 @@ if [ -d build-mac ]; then
11
11
fi
12
12
13
13
# ---------------------------------------------------------------------------------------------------------
14
- # variables
14
+ # variables
15
15
16
16
IPLUG2_ROOT=../iPlug2
17
17
XCCONFIG=$IPLUG2_ROOT /../common-mac.xcconfig
18
18
SCRIPTS=$IPLUG2_ROOT /Scripts
19
19
20
- # CODESIGN disabled by default.
21
- CODESIGN=0
20
+ # CODE_SIGN disabled by default.
21
+ CODE_SIGN=0
22
+ NOTARIZE=0
22
23
23
24
# macOS codesigning/notarization
24
25
NOTARIZE_BUNDLE_ID=com.AcmeInc.TemplateProject
@@ -115,7 +116,7 @@ echo ""
115
116
touch * .cpp
116
117
117
118
# ---------------------------------------------------------------------------------------------------------
118
- # remove existing binaries
119
+ # remove existing binaries
119
120
120
121
echo " remove existing binaries"
121
122
echo " "
147
148
# ---------------------------------------------------------------------------------------------------------
148
149
# build xcode project. Change target to build individual formats, or add to All target in the xcode project
149
150
150
- xcodebuild -project ./projects/$PLUGIN_NAME -macOS.xcodeproj -xcconfig ./config/$PLUGIN_NAME -mac.xcconfig DEMO_VERSION=$DEMO -target " All " - configuration Release | tee build-mac.log | xcpretty # && exit ${PIPESTATUS[0]}
151
+ xcodebuild -project ./projects/$PLUGIN_NAME -macOS.xcodeproj -xcconfig ./config/$PLUGIN_NAME -mac.xcconfig DEMO_VERSION=$DEMO -configuration Release | tee build-mac.log | xcpretty # && exit ${PIPESTATUS[0]}
151
152
152
153
if [ " ${PIPESTATUS[0]} " -ne " 0" ]; then
153
154
echo " ERROR: build failed, aborting"
@@ -206,7 +207,7 @@ if [ -d "${AAX}" ]; then
206
207
strip -x " ${AAX} /Contents/MacOS/$PLUGIN_NAME "
207
208
fi
208
209
209
- if [ $CODESIGN == 1 ]; then
210
+ if [ $CODE_SIGN == 1 ]; then
210
211
# ---------------------------------------------------------------------------------------------------------
211
212
# code sign AAX binary with wraptool
212
213
@@ -244,15 +245,15 @@ if [ $BUILD_INSTALLER == 1 ]; then
244
245
245
246
./scripts/makeinstaller-mac.sh $FULL_VERSION
246
247
247
- if [ $CODESIGN == 1 ]; then
248
+ if [ $CODE_SIGN == 1 ]; then
248
249
echo " code-sign installer for Gatekeeper on macOS 10.8+"
249
250
echo " "
250
251
mv " ${PKG} " " ${PKG_US} "
251
252
productsign --sign " ${DEV_ID_INST_STR} " " ${PKG_US} " " ${PKG} "
252
253
rm -R -f " ${PKG_US} "
253
254
fi
254
255
255
- # set installer icon
256
+ # set installer icon
256
257
./$SCRIPTS /SetFileIcon -image resources/$PLUGIN_NAME .icns -file " ${PKG} "
257
258
258
259
# ---------------------------------------------------------------------------------------------------------
@@ -271,9 +272,9 @@ if [ $BUILD_INSTALLER == 1 ]; then
271
272
272
273
sudo rm -R -f build-mac/installer/
273
274
274
- if [ $CODESIGN == 1 ]; then
275
+ if [ $NOTARIZE == 1 ]; then
275
276
# ---------------------------------------------------------------------------------------------------------
276
- # notarize dmg
277
+ # notarize dmg
277
278
echo " notarizing"
278
279
echo " "
279
280
# you need to create an app-specific id/password https://support.apple.com/en-us/HT204397
@@ -340,7 +341,7 @@ echo ""
340
341
zip -r ./build-mac/$ARCHIVE_NAME -dSYMs.zip ./build-mac/* .dSYM
341
342
342
343
# ---------------------------------------------------------------------------------------------------------
343
- # auval
344
+ # auval tools
344
345
sudo rm -R -f build-mac/* -auval.zip
345
346
346
347
echo " packaging auval script"
0 commit comments