forked from clangen/musikcube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-win32.sh
42 lines (36 loc) · 1.17 KB
/
archive-win32.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
#!/bin/sh
VERSION=$1
if [ -z "$VERSION" ]; then
echo "usage: ./archive-win32.sh <version>"
exit
fi
VANILLA="bin/dist/musikcube_win32_$VERSION"
MILKDROP="bin/dist/musikcube_win32_with_milkdrop2_$VERSION"
rm -rf "$VANILLA"
rm -rf "$MILKDROP"
mkdir -p "$VANILLA/plugins"
mkdir -p "$VANILLA/themes"
mkdir -p "$VANILLA/locales"
cp bin/release/musikcube.exe "$VANILLA"
cp bin/release/*.dll "$VANILLA"
cp bin/release/plugins/*.dll "$VANILLA/plugins"
cp bin/release/themes/*.json "$VANILLA/themes"
cp bin/release/locales/*.json "$VANILLA/locales"
rm "$VANILLA/plugins/vis_milk2.dll"
pushd $VANILLA
7z a -tzip "musikcube_win32_$VERSION.zip" ./* -mx=9
mv "musikcube_win32_$VERSION.zip" ..
popd
mkdir -p "$MILKDROP/plugins"
mkdir -p "$MILKDROP/themes"
mkdir -p "$MILKDROP/locales"
cp bin/release/musikcube.exe "$MILKDROP"
cp bin/release/*.dll "$MILKDROP"
cp bin/release/plugins/*.dll "$MILKDROP/plugins"
cp bin/release/themes/*.json "$MILKDROP/themes"
cp bin/release/locales/*.json "$MILKDROP/locales"
cp -rfp bin/release/plugins/Milkdrop2 "$MILKDROP/plugins"
pushd $MILKDROP
7z a -tzip "musikcube_win32_with_milkdrop2_$VERSION.zip" ./* -mx=9
mv "musikcube_win32_with_milkdrop2_$VERSION.zip" ..
popd