forked from OpenZWave/ozw-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathosxmakebundle.sh
More file actions
executable file
·21 lines (21 loc) · 819 Bytes
/
osxmakebundle.sh
File metadata and controls
executable file
·21 lines (21 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
if [ $# -lt 3 ]; then
echo "Please Provide the path to the App Bundle and OZW Config Directory and QT Directories"
exit 1
fi
if [ ! -f $1/Contents/Frameworks/libqt-openzwave.1.dylib ]; then
echo "$1/Contents/Frameworks/libqt-openzwave.1.dylib doens't exist"
exit 1
fi
if [ ! -f $2/manufacturer_specific.xml ]; then
echo "$2/manufacturer_specific.xml doesn't exist"
exit 1
fi
if [ ! -f $3/bin/macdeployqt ]; then
echo "$3/bin/macdeployqt does't exist"
exit 1
fi
PATH=`otool -L $1/Contents/Frameworks/libqt-openzwave.1.dylib | grep libopenzwave | awk '{print $1}'`
/usr/bin/install_name_tool -change $PATH "@rpath/${PATH##*/}" $1/Contents/Frameworks/libqt-openzwave.1.dylib
/bin/cp -r $2 $1/Contents/Resources/config/
echo "To Finish Please Run '$3/bin/macdeployqt $1 -verbose=2 -always-overwrite'"