diff --git a/.gitignore b/.gitignore index b696fa9c2b0..f1b54f07d88 100644 --- a/.gitignore +++ b/.gitignore @@ -105,4 +105,5 @@ src/mac_src.pro.user.77560cc.2.3pre1 src/qrc_mudlet_alpha.cpp -src/mac_src.pro.user +src/mac_src.pro.user* +src/mudlet.app/* diff --git a/src/mac-deploy.sh b/src/mac-deploy.sh new file mode 100755 index 00000000000..87af3b227ae --- /dev/null +++ b/src/mac-deploy.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# This script needs to be run as root (http://blog.inventic.eu/2012/08/how-to-deploy-qt-application-on-macos-part-ii/) +# so if it's not working, do sudo chmod +s mac-deploy.sh +# +# This script needs to be run from inside the src/ folder. + +echo Copying Qt and dependent libraries... +export PATH=$PATH:$HOME/Qt/5.1.1/clang_64/bin +echo $PATH +sudo macdeployqt ./mudlet.app -dmg diff --git a/src/mac_src.pro b/src/mac_src.pro index d2327ab6930..062626c1442 100755 --- a/src/mac_src.pro +++ b/src/mac_src.pro @@ -1,4 +1,4 @@ -CONFIG -= app_bundle +# CONFIG -= app_bundle QMAKE_CXXFLAGS_RELEASE += -O3 -Wno-deprecated -Wno-unused-parameter -mmacosx-version-min=10.5 -Wno-unused-variable QMAKE_CXXFLAGS_DEBUG += -O0 -g -Wno-deprecated -Wno-unused-parameter -mmacosx-version-min=10.5 -Wno-unused-variable QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5 @@ -260,5 +260,6 @@ INSTALLS += fonts \ target OTHER_FILES += \ - mudlet_documentation.txt + mudlet_documentation.txt \ + mac-deploy.sh