/[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 2211 - (hide annotations) (download) (as text)
Mon Jul 18 17:39:44 2011 UTC (12 years, 9 months ago) by persson
File MIME type: application/x-sh
File size: 1975 byte(s)
* Added Mac package building scripts
1 persson 2211 #!/bin/sh -xe
2    
3     P=/home/persson/mac
4     LIPO=i686-apple-darwin9-lipo
5     INSTALL_NAME_TOOL=i686-apple-darwin9-install_name_tool
6    
7     rm -rf qsampler.app
8     cp -r "$P/i686/bin/qsampler.app" .
9     $LIPO -create "$P/i686/bin/qsampler.app/Contents/MacOS/qsampler" "$P/powerpc/bin/qsampler.app/Contents/MacOS/qsampler" -output qsampler.app/Contents/MacOS/qsampler
10     $LIPO -create "$P/i686/lib/liblscp.6.dylib" "$P/powerpc/lib/liblscp.6.dylib" -output qsampler.app/Contents/Resources/liblscp.6.dylib
11    
12     cp "$P"/i686/share/locale/qsampler_*.qm qsampler.app/Contents/Resources
13     cp "$P/qt/Developer/Applications/Qt/translations/qt_cs.qm" qsampler.app/Contents/Resources
14     cp "$P/qt/Developer/Applications/Qt/translations/qt_ru.qm" qsampler.app/Contents/Resources
15    
16     cp "$P/Fantasia.app/Contents/Resources/LSCPScript.icns" qsampler.app/Contents/Resources/qsampler.icns
17     sed '/CFBundleIconFile/,/<key>/s/<string>.*<\/string>/<string>qsampler.icns<\/string>/' "$P/i686/bin/qsampler.app/Contents/Info.plist" > qsampler.app/Contents/Info.plist
18    
19     mkdir -p qsampler.app/Contents/Frameworks
20     tar cf - -C "$P/qt/Library/Frameworks" --exclude=Headers QtCore.framework QtGui.framework | tar xf - -C qsampler.app/Contents/Frameworks
21    
22     $INSTALL_NAME_TOOL -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore qsampler.app/Contents/Frameworks/QtGui.framework/QtGui
23     $INSTALL_NAME_TOOL -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore qsampler.app/Contents/MacOS/qsampler
24     $INSTALL_NAME_TOOL -change QtGui.framework/Versions/4/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui qsampler.app/Contents/MacOS/qsampler
25    
26     $INSTALL_NAME_TOOL -change "$P/i686/lib/liblscp.6.dylib" @executable_path/../Resources/liblscp.6.dylib qsampler.app/Contents/MacOS/qsampler
27     $INSTALL_NAME_TOOL -change "$P/powerpc/lib/liblscp.6.dylib" @executable_path/../Resources/liblscp.6.dylib qsampler.app/Contents/MacOS/qsampler

Properties

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

  ViewVC Help
Powered by ViewVC