/[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 3495 - (show annotations) (download) (as text)
Sun Mar 10 07:38:26 2019 UTC (3 months, 1 week ago) by persson
File MIME type: application/x-sh
File size: 1365 byte(s)
* Mac: Use the new C++11 builds, with GTK 3 for gigedit and Qt 5 for
  qsampler (64-bit only, macOS 10.7 or later required)

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_cs.qm" qsampler.app/Contents/Resources
13 cp "$QT/translations/qt_ru.qm" qsampler.app/Contents/Resources
14
15 cp "/home/persson/mac/Fantasia.app/Contents/Resources/LSCPScript.icns" qsampler.app/Contents/Resources/qsampler.icns
16 sed '/CFBundleIconFile/,/<key>/s/<string>.*<\/string>/<string>qsampler.icns<\/string>/' "$P/bin/qsampler.app/Contents/Info.plist" > qsampler.app/Contents/Info.plist
17
18 mkdir -p qsampler.app/Contents/Frameworks
19 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
20
21 mkdir qsampler.app/Contents/MacOS/platforms
22 cp "$QT/plugins/platforms/libqcocoa.dylib" qsampler.app/Contents/MacOS/platforms
23
24 $INSTALL_NAME_TOOL -change "$P/lib/liblscp.6.dylib" @executable_path/../Resources/liblscp.6.dylib qsampler.app/Contents/MacOS/qsampler
25 $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