2016-12-20 06:50:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
VERSION=$1
|
|
|
|
|
|
|
|
if [ -z "$VERSION" ]; then
|
|
|
|
echo "usage: ./archive-win32.sh <version>"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2017-02-25 04:57:07 +00:00
|
|
|
VANILLA="bin/dist/musikbox_win32_$VERSION"
|
|
|
|
MILKDROP="bin/dist/musikbox_with_milkdrop2_win32_$VERSION"
|
2016-12-20 06:50:37 +00:00
|
|
|
|
|
|
|
rm -rf "$VANILLA"
|
|
|
|
rm -rf "$MILKDROP"
|
|
|
|
|
|
|
|
mkdir -p "$VANILLA/plugins"
|
|
|
|
cp bin/release/musikbox.exe "$VANILLA"
|
|
|
|
cp bin/release/plugins/*.dll "$VANILLA/plugins"
|
|
|
|
rm "$VANILLA/plugins/vis_milk2.dll"
|
2017-02-25 04:57:07 +00:00
|
|
|
pushd $VANILLA
|
|
|
|
7z a -tzip "musikbox_win32_$VERSION.zip" ./* -mx=9
|
|
|
|
mv "musikbox_win32_$VERSION.zip" ..
|
|
|
|
popd
|
2016-12-20 06:50:37 +00:00
|
|
|
|
|
|
|
mkdir -p "$MILKDROP/plugins"
|
|
|
|
cp bin/release/musikbox.exe "$MILKDROP"
|
|
|
|
cp bin/release/plugins/*.dll "$MILKDROP/plugins"
|
|
|
|
cp -rfp bin/release/plugins/Milkdrop2 "$MILKDROP/plugins"
|
2017-02-25 04:57:07 +00:00
|
|
|
pushd $MILKDROP
|
|
|
|
7z a -tzip "musikbox_with_milkdrop2_win32_$VERSION.zip" ./* -mx=9
|
|
|
|
mv "musikbox_with_milkdrop2_win32_$VERSION.zip" ..
|
|
|
|
popd
|