forked from swissmicros/free42
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-mac
25 lines (22 loc) · 848 Bytes
/
build-mac
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
#!/bin/sh -e
mkdir -p packages
cd util
cc -o set-version-in-info-plist set-version-in-info-plist.c
cd ..
cd mac
rm -rf "build/Release Binary"
rm -rf "build/Release Decimal"
../util/set-version-in-info-plist
xcodebuild -project Free42.xcodeproj -target Free42 -configuration "Release Binary" build
xcodebuild -project Free42.xcodeproj -target Free42 -configuration "Release Decimal" build
mkdir tmp
mv "build/Release Binary/Free42.app" "tmp/Free42 Binary.app"
mv "build/Release Decimal/Free42.app" "tmp/Free42 Decimal.app"
codesign -f -s "Developer ID Application: Thomas Okken (F4D88K2P5W)" "tmp/Free42 Binary.app"
codesign -f -s "Developer ID Application: Thomas Okken (F4D88K2P5W)" "tmp/Free42 Decimal.app"
cp README.txt tmp
cd tmp
zip -r ../../packages/Free42Mac.zip "Free42 Binary.app" "Free42 Decimal.app" README.txt
cd ..
rm -rf tmp
cd ..