/[svn]/misc/trunk/mac_package_builder/make-qsampler-app.sh
ViewVC logotype

Contents of /misc/trunk/mac_package_builder/make-qsampler-app.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3536 - (show annotations) (download) (as text)
Fri Jul 26 10:57:05 2019 UTC (2 years, 11 months ago) by schoenebeck
File MIME type: application/x-sh
File size: 1301 byte(s)
* Mac installer: include all Qt translation files.

1 #!/bin/sh -xe
2
3 P=/home/persson/mac64
4 INSTALL_NAME_TOOL=x86_64-apple-darwin11-install_name_tool
5 QT=/home/persson/Qt5.5.1-mac/5.5/clang_64
6
7 rm -rf qsampler.app
8 cp -r "$P/bin/qsampler.app" .
9 cp "$P/lib/liblscp.6.dylib" qsampler.app/Contents/Resources/
10
11 cp "$P"/share/qsampler/translations/qsampler_*.qm qsampler.app/Contents/Resources
12 cp "$QT"/translations/qt_*.qm qsampler.app/Contents/Resources
13
14 cp "/home/persson/mac/Fantasia.app/Contents/Resources/LSCPScript.icns" qsampler.app/Contents/Resources/qsampler.icns
15 sed '/CFBundleIconFile/,/<key>/s/<string>.*<\/string>/<string>qsampler.icns<\/string>/' "$P/bin/qsampler.app/Contents/Info.plist" > qsampler.app/Contents/Info.plist
16
17 mkdir -p qsampler.app/Contents/Frameworks
18 tar cf - -C "$QT/lib" --exclude=Headers --exclude "*_debug*" --exclude "*.prl" QtCore.framework QtGui.framework QtWidgets.framework QtDBus.framework QtPrintSupport.framework | tar xf - -C qsampler.app/Contents/Frameworks
19
20 mkdir qsampler.app/Contents/MacOS/platforms
21 cp "$QT/plugins/platforms/libqcocoa.dylib" qsampler.app/Contents/MacOS/platforms
22
23 $INSTALL_NAME_TOOL -change "$P/lib/liblscp.6.dylib" @executable_path/../Resources/liblscp.6.dylib qsampler.app/Contents/MacOS/qsampler
24 $INSTALL_NAME_TOOL -add_rpath @executable_path/../Frameworks qsampler.app/Contents/MacOS/qsampler

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC