Skip to content

Commit

Permalink
Started on a script to create a self-contained Mac install
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 committed Nov 16, 2013
1 parent 12f4da7 commit c9faa9c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
10 changes: 10 additions & 0 deletions src/mac-deploy.sh
Original file line number Diff line number Diff line change
@@ -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
5 changes: 3 additions & 2 deletions src/mac_src.pro
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -260,5 +260,6 @@ INSTALLS += fonts \
target

OTHER_FILES += \
mudlet_documentation.txt
mudlet_documentation.txt \
mac-deploy.sh

0 comments on commit c9faa9c

Please sign in to comment.