Last active
August 14, 2016 08:00
-
-
Save david0/56ee00434e4693852c24 to your computer and use it in GitHub Desktop.
Script for creating brewed ardour app bundle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PREFIX=$1 | |
mkdir -p $PREFIX/Ardour5.app/Contents/MacOS | |
mkdir -p $PREFIX/Ardour5.app/Contents/Resources | |
sed -e "s?@ENV@??g" \ | |
-e "s?@VERSION@?5?g" \ | |
-e "s?@INFOSTRING@??g" \ | |
-e "s?@IDSUFFIX@?Ardour5?g" \ | |
-e "s?@BUNDLENAME@?Ardour5?g" \ | |
-e "s?@EXECUTABLE@?Ardour5?g" < Info.plist.in > $PREFIX/Ardour5.app/Contents/Info.plist | |
cp Ardour.icns $PREFIX/Ardour5.app/Contents/Resources/appIcon.icns | |
cp typeArdour.icns $PREFIX/Ardour5.app/Contents/Resources/typeIcon.icns | |
cat <<EOF > $PREFIX/Ardour5.app/Contents/MacOS/Ardour5 | |
#!/bin/sh | |
unset ARDOUR_BUNDLED | |
${PREFIX}/bin/ardour5 | |
EOF | |
chmod +x $PREFIX/Ardour5.app/Contents/MacOS/Ardour5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment