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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 persson 2211 #!/bin/sh -xe
2    
3 persson 3495 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 persson 2211
7     rm -rf qsampler.app
8 persson 3495 cp -r "$P/bin/qsampler.app" .
9     cp "$P/lib/liblscp.6.dylib" qsampler.app/Contents/Resources/
10 persson 2211
11 persson 3495 cp "$P"/share/qsampler/translations/qsampler_*.qm qsampler.app/Contents/Resources
12 schoenebeck 3536 cp "$QT"/translations/qt_*.qm qsampler.app/Contents/Resources
13 persson 2211
14 persson 3495 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 persson 2211
17     mkdir -p qsampler.app/Contents/Frameworks
18 persson 3495 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 persson 2211
20 persson 3495 mkdir qsampler.app/Contents/MacOS/platforms
21     cp "$QT/plugins/platforms/libqcocoa.dylib" qsampler.app/Contents/MacOS/platforms
22 persson 2211
23 persson 3495 $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