Commit 0555c550835458a86d3e673f9ac9faf3c225eed4

Authored by Peter Zhigalov
1 parent 17516029

Добавил деплой-скрипты для OS X

.gitignore
... ... @@ -69,4 +69,5 @@ Makefile*
69 69 /build_*
70 70 /fem_draw
71 71 /fem_draw_qt
  72 +*.dmg
72 73  
... ...
buildscripts/osx_qt5.6.0_clang64.sh 0 → 100755
  1 +#!/bin/bash
  2 +V_PROJECT=fem_draw_qt
  3 +QTDIR=/Applications/Qt/5.6/clang_64
  4 +V_BUILDDIR=build_osx_qt5.6.0_clang64
  5 +V_APPNAME="FEM Draw"
  6 +
  7 +cd "$(dirname $0)"/..
  8 +rm -rf "${V_BUILDDIR}"
  9 +mkdir -p "${V_BUILDDIR}"
  10 +cd "${V_BUILDDIR}"
  11 +"${QTDIR}"/bin/qmake CONFIG+="release" QMAKE_MACOSX_DEPLOYMENT_TARGET=10.7 "../${V_PROJECT}.pro"
  12 +make
  13 +"${QTDIR}"/bin/macdeployqt "${V_APPNAME}.app" -dmg -verbose=2
  14 +
  15 +hdiutil convert -format UDRW -o "${V_APPNAME}_rw.dmg" "${V_APPNAME}.dmg"
  16 +mkdir "${V_APPNAME}_rw_mount"
  17 +hdiutil attach -mountpoint "${V_APPNAME}_rw_mount" -noautoopen "${V_APPNAME}_rw.dmg"
  18 +cd "${V_APPNAME}_rw_mount"
  19 +ln -s /Applications ./Applications
  20 +cd ..
  21 +hdiutil detach "${V_APPNAME}_rw_mount"
  22 +hdiutil convert -format UDRO -o "${V_APPNAME}_ro.dmg" "${V_APPNAME}_rw.dmg"
  23 +cp "${V_APPNAME}_ro.dmg" ../"${V_APPNAME}.dmg"
  24 +
... ...
resources/Info.plist
... ... @@ -11,20 +11,44 @@
11 11 <key>CFBundleIconFile</key>
12 12 <string>fem_draw.icns</string>
13 13 <key>CFBundleIdentifier</key>
14   - <string>ru.codefreak.fami.fem_draw</string>
  14 + <string>ru.codefreak.fem_draw</string>
15 15 <key>CFBundleInfoDictionaryVersion</key>
16 16 <string>6.0</string>
17 17 <key>CFBundleName</key>
18 18 <string>FEM Draw</string>
19 19 <key>CFBundlePackageType</key>
20 20 <string>APPL</string>
  21 + <key>CFBundleVersion</key>
  22 + <string>1.7</string>
21 23 <key>CFBundleShortVersionString</key>
22   - <string>1.7.0</string>
  24 + <string>1.7</string>
23 25 <key>CFBundleSignature</key>
24 26 <string>????</string>
25 27 <key>NSPrincipalClass</key>
26 28 <string>NSApplication</string>
27 29 <key>LSApplicationCategoryType</key>
28 30 <string>public.app-category.utilites</string>
  31 + <key>LSArchitecturePriority</key>
  32 + <array>
  33 + <string>x86_64</string>
  34 + </array>
  35 + <key>LSMinimumSystemVersion</key>
  36 + <string>10.7.0</string>
  37 + <key>NSHumanReadableCopyright</key>
  38 + <string>Copyright (c) 2014-2016, Peter Zhigalov</string>
  39 + <key>CFBundleDocumentTypes</key>
  40 + <array>
  41 + <dict>
  42 + <key>CFBundleTypeRole</key>
  43 + <string>Viewer</string>
  44 + <key>CFBundleTypeExtensions</key>
  45 + <array>
  46 + <string>dat</string>
  47 + <string>plt</string>
  48 + </array>
  49 + <key>CFBundleTypeName</key>
  50 + <string>Qt UI File</string>
  51 + </dict>
  52 + </array>
29 53 </dict>
30 54 </plist>
... ...