Skip to content

Commit

Permalink
Fixed build on Mac OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
sikmir committed Sep 21, 2018
1 parent 86564db commit 1b9afe4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.DS_Store
build-Debug
build-Release
bin
Expand Down
9 changes: 9 additions & 0 deletions GPXLab/GPXLab.pro
Expand Up @@ -127,3 +127,12 @@ RESOURCES += \
TRANSLATIONS += \
locale/gpxlab_fi.ts \
locale/gpxlab_ru.ts

macx {
ICON = ../pkg/gpxlab.icns
QMAKE_INFO_PLIST = ../pkg/Info.plist
LOCALE.path = Contents/Resources/translations
LOCALE.files = locale/gpxlab_fi.qm \
locale/gpxlab_ru.qm
QMAKE_BUNDLE_DATA += LOCALE
}
20 changes: 20 additions & 0 deletions pkg/Info.plist
@@ -0,0 +1,20 @@
<?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>@EXECUTABLE@</string>
<key>CFBundleShortVersionString</key>
<string>@SHORT_VERSION@</string>
<key>CFBundleIconFile</key>
<string>@ICON@</string>
<key>CFBundleIdentifier</key>
<string>com.bourgeoislab.GPXLab</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
Binary file added pkg/gpxlab.icns
Binary file not shown.

0 comments on commit 1b9afe4

Please sign in to comment.