summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--quacker/Info.plist22
-rw-r--r--quacker/quacker.icnsbin0 -> 40684 bytes
-rw-r--r--quacker/quacker.plist26
-rw-r--r--quacker/quacker.pro16
-rw-r--r--quackle.pro4
-rw-r--r--quackleio/quackleio.pro4
6 files changed, 72 insertions, 0 deletions
diff --git a/quacker/Info.plist b/quacker/Info.plist
new file mode 100644
index 0000000..1457a7e
--- /dev/null
+++ b/quacker/Info.plist
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
+<plist version="0.9">
+<dict>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+ <key>CFBundleIconFile</key>
+ <string>quacker.icns</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleGetInfoString</key>
+ <string>Created by Qt/QMake</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleExecutable</key>
+ <string>quacker</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.yourcompany.quacker</string>
+ <key>NOTE</key>
+ <string>This file was generated by Qt/QMake.</string>
+</dict>
+</plist>
diff --git a/quacker/quacker.icns b/quacker/quacker.icns
new file mode 100644
index 0000000..35484da
--- /dev/null
+++ b/quacker/quacker.icns
Binary files differ
diff --git a/quacker/quacker.plist b/quacker/quacker.plist
new file mode 100644
index 0000000..bf6b31e
--- /dev/null
+++ b/quacker/quacker.plist
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleExecutable</key>
+ <string>quacker</string>
+ <key>CFBundleIconFile</key>
+ <string>quacker.icns</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.quackle.quackle</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleName</key>
+ <string>Quackle</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>LSApplicationCategoryType</key>
+ <string>public.app-category.word-games</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+ <key>NSHumanReadableCopyright</key>
+ <string>Copyright &copy; 2005-2013 by Jason Katz-Brown & John O'Laughlin</string>
+</dict>
+</plist>
diff --git a/quacker/quacker.pro b/quacker/quacker.pro
index 785761e..6466c60 100644
--- a/quacker/quacker.pro
+++ b/quacker/quacker.pro
@@ -3,6 +3,10 @@ VERSION = 0.97
DEPENDPATH += .. ../quackleio
INCLUDEPATH += . ..
+APP_ALPHABETS_FILES.files = ../data/alphabets
+APP_LEXICA_FILES.files = ../data/lexica
+APP_STRATEGY_FILES.files = ../data/strategy
+
MOC_DIR = moc
# enable/disable debug symbols
@@ -39,6 +43,18 @@ win32:!win32-g++ {
macx {
DEFINES += FORCE_SECONDARY_ARROW_GLYPHS=1
+ ICON = quacker.icns
+
+ # copy data/ directory into app bundle
+ APP_ALPHABETS_FILES.path = Contents/MacOS/data
+ APP_LEXICA_FILES.path = Contents/MacOS/data
+ APP_STRATEGY_FILES.path = Contents/MacOS/data
+
+ QMAKE_BUNDLE_DATA += APP_ALPHABETS_FILES APP_LEXICA_FILES APP_STRATEGY_FILES APP_PLIST_FILE
+
+ # plist gymnastics
+ QMAKE_POST_LINK += ;cp -n $$PWD/quacker.plist $${OUT_PWD}/$${TARGET}.app/Contents
+ QMAKE_POST_LINK += /usr/libexec/PlistBuddy -c \"Set :GIT_COMMIT_HASH $${HC_GITHASH}\" $${OUT_PWD}/$${TARGET}.app/Contents/Info.plist
}
macx-g++ {
diff --git a/quackle.pro b/quackle.pro
index 2316cf7..ced2577 100644
--- a/quackle.pro
+++ b/quackle.pro
@@ -38,3 +38,7 @@ win32:!win32-g++ {
macx-g++ {
QMAKE_CXXFLAGS += -fpermissive
}
+
+macx-xcode {
+ CONFIG += x86
+}
diff --git a/quackleio/quackleio.pro b/quackleio/quackleio.pro
index e603da3..62af60d 100644
--- a/quackleio/quackleio.pro
+++ b/quackleio/quackleio.pro
@@ -35,3 +35,7 @@ win32:!win32-g++ {
macx-g++ {
QMAKE_CXXFLAGS += -fpermissive
}
+
+macx-xcode {
+ CONFIG += x86
+}