-
Notifications
You must be signed in to change notification settings - Fork 7
/
create_mac_bundles.sh
executable file
·113 lines (80 loc) · 2.69 KB
/
create_mac_bundles.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/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"