forked from KJCracks/Clutch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·27 lines (19 loc) · 968 Bytes
/
build.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
#!/bin/bash
# Clutch xcodebuild script
# Credits to Tatsh
# Prefer Xcode 6
[ -d '/Applications/Xcode6-Beta.app' ] && \
BUILD='/Applications/Xcode6-Beta.app/Contents/Developer/usr/bin/xcodebuild' && \
SDK='iphoneos8.0'
# Default Xcode
if [ -z "$BUILD" ]; then
BUILD=$(which xcodebuild)
SDK='iphoneos7.1'
fi
$BUILD clean install
$BUILD ARCHS='armv7 armv7s arm64' ONLY_ACTIVE_ARCH=NO -sdk "$SDK" -configuration Release -alltargets clean
# Uncomment to enable CLUTCH_DEBUG and DEV with release
$BUILD ARCHS='armv7 armv7s arm64' ONLY_ACTIVE_ARCH=NO -sdk "$SDK" -configuration Release -alltargets CLUTCH_DEV=1
#$BUILD ARCHS='armv7 armv7s arm64' ONLY_ACTIVE_ARCH=NO -sdk "$SDK" -configuration Release -alltargets CLUTCH_DEV=0 # equivalent to next line where CLUTCH_DEV is not set
strip "build/Release-iphoneos/Clutch.app/Clutch"
codesign -f -s "iPhone Developer" --entitlements Resources/Clutch.entitlements "build/Release-iphoneos/Clutch.app/Clutch"