forked from sveinbjornt/osxiconutils
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sh
executable file
·70 lines (51 loc) · 1.26 KB
/
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
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
60
61
62
63
64
65
66
67
#!/bin/sh
XCODE_PROJ="osxiconutils.xcodeproj"
if [ ! -e "${XCODE_PROJ}" ]; then
echo "Build script must be run from src root"
exit 1
fi
BUILD_DIR="bin"
rm -r "${BUILD_DIR}" &> /dev/null
mkdir "${BUILD_DIR}" &> /dev/null
xcodebuild -parallelizeTargets \
-project "${XCODE_PROJ}" \
-target "icns2image" \
-configuration "Release" \
CONFIGURATION_BUILD_DIR="${BUILD_DIR}" \
clean \
build
strip -x "${BUILD_DIR}/icns2image"
xcodebuild -parallelizeTargets \
-project "${XCODE_PROJ}" \
-target "icns2icns" \
-configuration "Release" \
CONFIGURATION_BUILD_DIR="${BUILD_DIR}" \
clean \
build
strip -x "${BUILD_DIR}/icns2icns"
xcodebuild -parallelizeTargets \
-project "${XCODE_PROJ}" \
-target "image2icns" \
-configuration "Release" \
CONFIGURATION_BUILD_DIR="${BUILD_DIR}" \
clean \
build
strip -x "${BUILD_DIR}/image2icns"
xcodebuild -parallelizeTargets \
-project "${XCODE_PROJ}" \
-target "geticon" \
-configuration "Release" \
CONFIGURATION_BUILD_DIR="${BUILD_DIR}" \
clean \
build
strip -x "${BUILD_DIR}/geticon"
xcodebuild -parallelizeTargets \
-project "${XCODE_PROJ}" \
-target "seticon" \
-configuration "Release" \
CONFIGURATION_BUILD_DIR="${BUILD_DIR}" \
clean \
build
strip -x "${BUILD_DIR}/seticon"
cp *.1 ${BUILD_DIR}/
zip osxiconutils.zip ${BUILD_DIR}/*