2017-02-26 12:34:43 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
OSX_BUILD_PATH=$PWD
|
|
|
|
FRACTORIUM_RELEASE_ROOT=$PWD/../Bin/release
|
2020-04-18 09:42:02 -04:00
|
|
|
# replace 5.12.8 by your QT version, and ensure the installation path is the same
|
2020-04-12 01:17:14 -04:00
|
|
|
QT_MACDEPLOY=~/Qt/5.12.8/clang_64/bin/macdeployqt
|
2017-02-26 12:34:43 -05:00
|
|
|
|
|
|
|
cd $FRACTORIUM_RELEASE_ROOT
|
|
|
|
|
|
|
|
EMBERANIMATE_FINAL_ROOT=$PWD/emberanimate.app/Contents/MacOS
|
|
|
|
EMBERGENOME_FINAL_ROOT=$PWD/embergenome.app/Contents/MacOS
|
|
|
|
EMBERRENDER_FINAL_ROOT=$PWD/emberrender.app/Contents/MacOS
|
|
|
|
FRACTORIUM_FINAL_ROOT=$PWD/fractorium.app/Contents/MacOS
|
2017-12-15 19:22:00 -05:00
|
|
|
FRACTORIUM_FINAL_FRAMEWORKS=$PWD/fractorium.app/Contents/Frameworks
|
2017-02-26 12:34:43 -05:00
|
|
|
|
|
|
|
install_name_tool -id $PWD/libember.dylib libember.dylib
|
|
|
|
install_name_tool -id $PWD/libembercl.dylib libembercl.dylib
|
|
|
|
install_name_tool -change libember.dylib $PWD/libember.dylib libembercl.dylib
|
|
|
|
|
|
|
|
install_name_tool -change libember.dylib $PWD/libember.dylib $EMBERANIMATE_FINAL_ROOT/emberanimate
|
|
|
|
install_name_tool -change libembercl.dylib $PWD/libembercl.dylib $EMBERANIMATE_FINAL_ROOT/emberanimate
|
|
|
|
|
|
|
|
install_name_tool -change libember.dylib $PWD/libember.dylib $EMBERGENOME_FINAL_ROOT/embergenome
|
|
|
|
install_name_tool -change libembercl.dylib $PWD/libembercl.dylib $EMBERGENOME_FINAL_ROOT/embergenome
|
|
|
|
|
|
|
|
install_name_tool -change libember.dylib $PWD/libember.dylib $EMBERRENDER_FINAL_ROOT/emberrender
|
|
|
|
install_name_tool -change libembercl.dylib $PWD/libembercl.dylib $EMBERRENDER_FINAL_ROOT/emberrender
|
|
|
|
|
|
|
|
install_name_tool -change libember.dylib $PWD/libember.dylib $FRACTORIUM_FINAL_ROOT/fractorium
|
|
|
|
install_name_tool -change libembercl.dylib $PWD/libembercl.dylib $FRACTORIUM_FINAL_ROOT/fractorium
|
|
|
|
|
|
|
|
$QT_MACDEPLOY emberanimate.app
|
|
|
|
$QT_MACDEPLOY embergenome.app
|
|
|
|
$QT_MACDEPLOY emberrender.app
|
|
|
|
$QT_MACDEPLOY fractorium.app
|
|
|
|
|
|
|
|
cp ./emberanimate.app/Contents/MacOS/emberanimate $FRACTORIUM_FINAL_ROOT
|
|
|
|
cp ./embergenome.app/Contents/MacOS/embergenome $FRACTORIUM_FINAL_ROOT
|
|
|
|
cp ./emberrender.app/Contents/MacOS/emberrender $FRACTORIUM_FINAL_ROOT
|
|
|
|
|
2019-05-16 20:23:46 -04:00
|
|
|
#solving macdeployqt bug
|
2017-12-15 19:22:00 -05:00
|
|
|
cd $FRACTORIUM_FINAL_FRAMEWORKS
|
2020-03-12 22:05:06 -04:00
|
|
|
install_name_tool -change /usr/local/Cellar/ilmbase/2.3.0/lib/libIex-2_3.24.dylib @executable_path/../Frameworks/libIex-2_3.24.dylib libIexMath-2_3.24.dylib
|
|
|
|
install_name_tool -change /usr/local/Cellar/ilmbase/2.3.0/lib/libIex-2_3.24.dylib @executable_path/../Frameworks/libIex-2_3.24.dylib libIlmThread-2_3.24.dylib
|
|
|
|
install_name_tool -change /usr/local/Cellar/ilmbase/2.3.0/lib/libIex-2_3.24.dylib @executable_path/../Frameworks/libIex-2_3.24.dylib libImath-2_3.24.dylib
|
2017-12-15 19:22:00 -05:00
|
|
|
|
2017-02-26 12:34:43 -05:00
|
|
|
cd $OSX_BUILD_PATH
|
|
|
|
|
|
|
|
cd ../Data
|
|
|
|
|
2017-07-02 17:17:06 -04:00
|
|
|
cp dark_mac.qss $FRACTORIUM_FINAL_ROOT
|
2019-05-07 20:29:49 -04:00
|
|
|
cp lightdark.qss $FRACTORIUM_FINAL_ROOT
|
2020-02-04 07:20:37 -05:00
|
|
|
cp uranium.qss $FRACTORIUM_FINAL_ROOT
|
2017-02-26 12:34:43 -05:00
|
|
|
cp flam3-palettes.xml $FRACTORIUM_FINAL_ROOT
|
2017-02-27 19:11:51 -05:00
|
|
|
cp *.gradient $FRACTORIUM_FINAL_ROOT
|
2018-09-28 12:12:23 -04:00
|
|
|
cp *.ugr $FRACTORIUM_FINAL_ROOT
|
2020-03-14 14:40:56 -04:00
|
|
|
cp fractorium-sh $FRACTORIUM_FINAL_ROOT
|
2017-02-26 12:34:43 -05:00
|
|
|
cp Info.plist $FRACTORIUM_FINAL_ROOT/../
|
2019-05-16 21:06:09 -04:00
|
|
|
cp -r Bench $FRACTORIUM_FINAL_ROOT
|
2020-03-10 20:33:44 -04:00
|
|
|
cp -r examples $FRACTORIUM_FINAL_ROOT
|
2017-02-26 12:34:43 -05:00
|
|
|
|
|
|
|
cd $FRACTORIUM_RELEASE_ROOT
|
|
|
|
|
|
|
|
mv fractorium.app Fractorium.app
|
|
|
|
|
|
|
|
hdiutil create -format UDBZ -quiet -srcfolder Fractorium.app Fractorium.dmg
|