Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
oidos
Commits
2ba7e550
Commit
2ba7e550
authored
Apr 23, 2017
by
mathieu m
Committed by
Aske Simon Christensen
Apr 23, 2017
Browse files
Script for creating VST bundles for MacOS
parent
8f2eb694
Changes
1
Hide whitespace changes
Inline
Side-by-side
create_mac_bundles.sh
0 → 100755
View file @
2ba7e550
#!/bin/bash
# Build synth
cd
synth
cargo build
--release
--target
=
x86_64-apple-darwin
cd
..
# Make the bundle folder
mkdir
-p
"Oidos.vst/Contents/MacOS"
# Create the PkgInfo
echo
"BNDL????"
>
"Oidos.vst/Contents/PkgInfo"
#build the Info.Plist
echo
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>
<!DOCTYPE plist PUBLIC
\"
-//Apple//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>Oidos</string>
<key>CFBundleGetInfoString</key>
<string>vst</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.rust-vst2.Oidos</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Oidos</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>5273</string>
<key>CSResourcesFileMapped</key>
<string></string>
</dict>
</plist>"
>
"Oidos.vst/Contents/Info.plist"
# move the provided library to the correct location
cp
"synth/target/x86_64-apple-darwin/release/libOidos.dylib"
"Oidos.vst/Contents/MacOS/Oidos"
# Build reverb
cd
reverb
cargo build
--release
--target
=
x86_64-apple-darwin
cd
..
# Make the bundle folder
mkdir
-p
"OidosReverb.vst/Contents/MacOS"
# Create the PkgInfo
echo
"BNDL????"
>
"OidosReverb.vst/Contents/PkgInfo"
#build the Info.Plist
echo
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>
<!DOCTYPE plist PUBLIC
\"
-//Apple//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>OidosReverb</string>
<key>CFBundleGetInfoString</key>
<string>vst</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.rust-vst2.OidosReverb</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>OidosReverb</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>5274</string>
<key>CSResourcesFileMapped</key>
<string></string>
</dict>
</plist>"
>
"OidosReverb.vst/Contents/Info.plist"
# move the provided library to the correct location
cp
"reverb/target/x86_64-apple-darwin/release/libOidosReverb.dylib"
"OidosReverb.vst/Contents/MacOS/OidosReverb"
echo
"Created bundle Oidos.vst and OidosReverb.vst"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment