forked from prism-em/prismatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mac_build.sh
executable file
·59 lines (46 loc) · 3.32 KB
/
mac_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
#! /bin/bash
export QT_PATH='/Users/ajpryor/Qt/5.9/'
mkdir prismatic-gui.app/Contents/Frameworks
mkdir prismatic-gui.app/Contents/PlugIns
mkdir prismatic-gui.app/Contents/PlugIns/platforms
cp -R ${QT_PATH}clang_64/lib/QtCore.framework prismatic-gui.app/Contents/Frameworks/
cp -R ${QT_PATH}clang_64/lib/QtGui.framework prismatic-gui.app/Contents/Frameworks/
cp -R ${QT_PATH}clang_64/lib/QtWidgets.framework prismatic-gui.app/Contents/Frameworks/
cp -R ${QT_PATH}clang_64/lib/QtPrintSupport.framework prismatic-gui.app/Contents/Frameworks/
# cp -R ${QT_PATH}/clang_64/plugins/platforms/libqcocoa.dylib prismatic-gui.app/Contents/PlugIns
cp -R ${QT_PATH}/clang_64/plugins/platforms/libqcocoa.dylib prismatic-gui.app/Contents/PlugIns/platforms/
echo "@[Paths]
Plugins = PlugIns" > prismatic-gui.app/Contents/Resources/qt.conf
install_name_tool -change @rpath/QtGui.framework/Versions/5/QtGui \
@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui \
prismatic-gui.app/Contents/PlugIns/platforms/libqcocoa.dylib
install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore \
@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore \
prismatic-gui.app/Contents/PlugIns/platforms/libqcocoa.dylib
install_name_tool -change @rpath/QtWidgets.framework/Versions/5/QtWidgets \
@executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets \
prismatic-gui.app/Contents/PlugIns/platforms/libqcocoa.dylib
install_name_tool -change @rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport \
@executable_path/../Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport \
prismatic-gui.app/Contents/PlugIns/platforms/libqcocoa.dylib
install_name_tool -id @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore prismatic-gui.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore
install_name_tool -id @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui prismatic-gui.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui
install_name_tool -id @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets prismatic-gui.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets
install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore \
@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore \
prismatic-gui.app/Contents/MacOS/prismatic-gui
install_name_tool -change @rpath/QtGui.framework/Versions/5/QtGui \
@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui \
prismatic-gui.app/Contents/MacOS/prismatic-gui
install_name_tool -change @rpath/QtWidgets.framework/Versions/5/QtWidgets \
@executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets \
prismatic-gui.app/Contents/MacOS/prismatic-gui
install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore \
@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore \
prismatic-gui.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui
install_name_tool -change @rpath/QtGui.framework/Versions/5/QtGui \
@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui \
prismatic-gui.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets
install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore \
@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore \
prismatic-gui.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets