Browse Source

Add script to generate MacOS VST bundles

gh-pages
falkTX 10 years ago
parent
commit
22e800215d
5 changed files with 59 additions and 0 deletions
  1. +33
    -0
      utils/generate-vst-bundles.sh
  2. +24
    -0
      utils/plugin.vst/Contents/Info.plist
  3. +1
    -0
      utils/plugin.vst/Contents/MacOS/deleteme
  4. +1
    -0
      utils/plugin.vst/Contents/PkgInfo
  5. +0
    -0
      utils/plugin.vst/Contents/Resources/empty.lproj

+ 33
- 0
utils/generate-vst-bundles.sh View File

@@ -0,0 +1,33 @@
#!/bin/bash

set -e

if [ -d bin ]; then
cd bin
else
echo "Please run this script from the root folder"
exit
fi

PWD=`pwd`

if [ ! -d /Developer ]; then
echo "This doesn't seem to be OSX, please stop!"
exit 0
fi

rm -r *.vst/

PLUGINS=`ls | grep vst.dylib`

for i in $PLUGINS; do
FILE=`echo $i | awk 'sub("-vst.dylib","")'`
cp -r ../dpf/utils/plugin.vst/ $FILE.vst
mv $i $FILE.vst/Contents/MacOS/$FILE
rm -f $FILE.vst/Contents/MacOS/deleteme
sed -i -e "s/X-PROJECTNAME-X/$FILE/" $FILE.vst/Contents/Info.plist
rm -f $FILE.vst/Contents/Info.plist-e
SetFile -a B $FILE.vst
done

cd ../../

+ 24
- 0
utils/plugin.vst/Contents/Info.plist View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>X-PROJECTNAME-X</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>net.sf.distrho.X-PROJECTNAME-X</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CSResourcesFileMapped</key>
<true/>
</dict>
</plist>

+ 1
- 0
utils/plugin.vst/Contents/MacOS/deleteme View File

@@ -0,0 +1 @@

+ 1
- 0
utils/plugin.vst/Contents/PkgInfo View File

@@ -0,0 +1 @@
BNDL????

+ 0
- 0
utils/plugin.vst/Contents/Resources/empty.lproj View File


Loading…
Cancel
Save