-
Notifications
You must be signed in to change notification settings - Fork 7
/
makedist.sh
executable file
·63 lines (52 loc) · 1.52 KB
/
makedist.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
#!/bin/bash
DIST=dist/Oidos
rm -rf dist/Oidos
# Build synth
cd synth
cargo build --release
cargo build --release --target=i686-pc-windows-msvc
cd ..
# Build reverb
cd reverb
cargo build --release
cargo build --release --target=i686-pc-windows-msvc
cd ..
# Compile converter to exe
cd convert
/c/Python27/python ./py2exe_setup.py
cd ..
# copy VSTs
mkdir -p $DIST/vst/Windows32
cp synth/target/i686-pc-windows-msvc/release/Oidos.dll $DIST/vst/Windows32/
cp reverb/target/i686-pc-windows-msvc/release/OidosReverb.dll $DIST/vst/Windows32/
mkdir -p $DIST/vst/Windows64
cp synth/target/release/Oidos.dll $DIST/vst/Windows64/
cp reverb/target/release/OidosReverb.dll $DIST/vst/Windows64/
# Copy converter
mkdir -p $DIST/convert
cp convert/OidosConvert.py $DIST/convert/
cp convert/XML.py $DIST/convert/
cp convert/dist/OidosConvert.exe $DIST/convert/
# Copy player source
mkdir -p $DIST/player
cp player/dump_wav.c $DIST/player/
cp player/oidos.asm $DIST/player/
cp player/oidos.h $DIST/player/
cp player/oidos.inc $DIST/player/
cp player/platform.inc $DIST/player/
cp player/play.asm $DIST/player/
cp player/random.asm $DIST/player/
# Copy examples
cp -R examples $DIST/
# Copy easy_exe
mkdir -p $DIST/easy_exe
cp easy_exe/build.bat $DIST/easy_exe/
cp easy_exe/build.sh $DIST/easy_exe/
cp easy_exe/*.txt $DIST/easy_exe/
cp examples/Songs/Punqtured-4k-Fntstc.xrns $DIST/easy_exe/music.xrns
mkdir -p $DIST/easy_exe/temp
cp -R easy_exe/tools $DIST/easy_exe/
# Copy readme, history and license
cp README.md $DIST/
cp HISTORY.md $DIST/
cp LICENSE.md $DIST/