@@ -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
@@ -118,7 +119,7 @@ echo ""
118
119
touch * .cpp
119
120
120
121
# ---------------------------------------------------------------------------------------------------------
121
- # remove existing binaries
122
+ # remove existing binaries
122
123
123
124
echo " remove existing binaries"
124
125
echo " "
154
155
# ---------------------------------------------------------------------------------------------------------
155
156
# build xcode project. Change target to build individual formats, or add to All target in the xcode project
156
157
157
- 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]}
158
+ 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]}
158
159
159
160
if [ " ${PIPESTATUS[0]} " -ne " 0" ]; then
160
161
echo " ERROR: build failed, aborting"
@@ -221,7 +222,7 @@ if [ -d $CLAP ]; then
221
222
strip -x $CLAP /Contents/MacOS/$PLUGIN_NAME
222
223
fi
223
224
224
- if [ $CODESIGN == 1 ]; then
225
+ if [ $CODE_SIGN == 1 ]; then
225
226
# ---------------------------------------------------------------------------------------------------------
226
227
# code sign AAX binary with wraptool
227
228
@@ -259,15 +260,15 @@ if [ $BUILD_INSTALLER == 1 ]; then
259
260
260
261
./scripts/makeinstaller-mac.sh $FULL_VERSION
261
262
262
- if [ $CODESIGN == 1 ]; then
263
+ if [ $CODE_SIGN == 1 ]; then
263
264
echo " code-sign installer for Gatekeeper on macOS 10.8+"
264
265
echo " "
265
266
mv " ${PKG} " " ${PKG_US} "
266
267
productsign --sign " ${DEV_ID_INST_STR} " " ${PKG_US} " " ${PKG} "
267
268
rm -R -f " ${PKG_US} "
268
269
fi
269
270
270
- # set installer icon
271
+ # set installer icon
271
272
./$SCRIPTS /SetFileIcon -image resources/$PLUGIN_NAME .icns -file " ${PKG} "
272
273
273
274
# ---------------------------------------------------------------------------------------------------------
@@ -286,9 +287,9 @@ if [ $BUILD_INSTALLER == 1 ]; then
286
287
287
288
sudo rm -R -f build-mac/installer/
288
289
289
- if [ $CODESIGN == 1 ]; then
290
+ if [ $NOTARIZE == 1 ]; then
290
291
# ---------------------------------------------------------------------------------------------------------
291
- # notarize dmg
292
+ # notarize dmg
292
293
echo " notarizing"
293
294
echo " "
294
295
# you need to create an app-specific id/password https://support.apple.com/en-us/HT204397
@@ -359,7 +360,7 @@ echo ""
359
360
zip -r ./build-mac/$ARCHIVE_NAME -dSYMs.zip ./build-mac/* .dSYM
360
361
361
362
# ---------------------------------------------------------------------------------------------------------
362
- # auval
363
+ # auval tools
363
364
sudo rm -R -f build-mac/* -auval.zip
364
365
365
366
echo " packaging auval script"
0 commit comments