Commit 0555c550 authored by Peter Zhigalov's avatar Peter Zhigalov

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

parent 17516029
......@@ -69,4 +69,5 @@ Makefile*
/build_*
/fem_draw
/fem_draw_qt
*.dmg
#!/bin/bash
V_PROJECT=fem_draw_qt
QTDIR=/Applications/Qt/5.6/clang_64
V_BUILDDIR=build_osx_qt5.6.0_clang64
V_APPNAME="FEM Draw"
cd "$(dirname $0)"/..
rm -rf "${V_BUILDDIR}"
mkdir -p "${V_BUILDDIR}"
cd "${V_BUILDDIR}"
"${QTDIR}"/bin/qmake CONFIG+="release" QMAKE_MACOSX_DEPLOYMENT_TARGET=10.7 "../${V_PROJECT}.pro"
make
"${QTDIR}"/bin/macdeployqt "${V_APPNAME}.app" -dmg -verbose=2
hdiutil convert -format UDRW -o "${V_APPNAME}_rw.dmg" "${V_APPNAME}.dmg"
mkdir "${V_APPNAME}_rw_mount"
hdiutil attach -mountpoint "${V_APPNAME}_rw_mount" -noautoopen "${V_APPNAME}_rw.dmg"
cd "${V_APPNAME}_rw_mount"
ln -s /Applications ./Applications
cd ..
hdiutil detach "${V_APPNAME}_rw_mount"
hdiutil convert -format UDRO -o "${V_APPNAME}_ro.dmg" "${V_APPNAME}_rw.dmg"
cp "${V_APPNAME}_ro.dmg" ../"${V_APPNAME}.dmg"
......@@ -11,20 +11,44 @@
<key>CFBundleIconFile</key>
<string>fem_draw.icns</string>
<key>CFBundleIdentifier</key>
<string>ru.codefreak.fami.fem_draw</string>
<string>ru.codefreak.fem_draw</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>FEM Draw</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleVersion</key>
<string>1.7</string>
<key>CFBundleShortVersionString</key>
<string>1.7.0</string>
<string>1.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilites</string>
<key>LSArchitecturePriority</key>
<array>
<string>x86_64</string>
</array>
<key>LSMinimumSystemVersion</key>
<string>10.7.0</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright (c) 2014-2016, Peter Zhigalov</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>dat</string>
<string>plt</string>
</array>
<key>CFBundleTypeName</key>
<string>Qt UI File</string>
</dict>
</array>
</dict>
</plist>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment