Skip to content

Commit 802f909

Browse files
committed
Create backwards-compatible (10.9+) macOS releases
1 parent cf3a2c4 commit 802f909

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

scripts/create-dmg.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
#!/bin/bash
22

33
cd "$(dirname ${BASH_SOURCE[0]})"
4-
RESULT="../tev.dmg"
54

5+
echo "Building backwards-compatible tev..."
6+
mkdir build-dmg && cd build-dmg
7+
MACOSX_DEPLOYMENT_TARGET=10.9
8+
cmake \
9+
-DCMAKE_OSX_SYSROOT=/Users/tom94/Projects/MacOSX-SDKs/MacOSX10.9.sdk/ \
10+
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
11+
../..
12+
make -j
13+
cd ..
14+
15+
echo "Creating dmg..."
16+
RESULT="../tev.dmg"
617
test -f $RESULT && rm $RESULT
7-
./create-dmg/create-dmg --window-size 500 300 --icon-size 96 --volname "tev Installer" --app-drop-link 360 105 --icon tev.app 130 105 $RESULT /Applications/tev.app
18+
./create-dmg/create-dmg --window-size 500 300 --icon-size 96 --volname "tev Installer" --app-drop-link 360 105 --icon tev.app 130 105 $RESULT ./build-dmg/tev.app
19+
20+
echo "Removing temporary build dir..."
21+
rm -rf build-dmg

0 commit comments

Comments
 (0)