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-07-20 00:36:50 +00:00
|
|
|
VANILLA="bin/dist/musikcube_win32_$VERSION"
|
|
|
|
MILKDROP="bin/dist/musikcube_win32_with_milkdrop2_$VERSION"
|
2016-12-20 06:50:37 +00:00
|
|
|
|
|
|
|
rm -rf "$VANILLA"
|
|
|
|
rm -rf "$MILKDROP"
|
|
|
|
|
|
|
|
mkdir -p "$VANILLA/plugins"
|
2017-03-16 04:10:28 +00:00
|
|
|
mkdir -p "$VANILLA/themes"
|
|
|
|
mkdir -p "$VANILLA/locales"
|
2018-02-20 08:28:11 +00:00
|
|
|
mkdir -p "$VANILLA/fonts"
|
2017-07-20 00:36:50 +00:00
|
|
|
cp bin/release/musikcube.exe "$VANILLA"
|
2017-06-28 07:51:02 +00:00
|
|
|
cp bin/release/*.dll "$VANILLA"
|
2016-12-20 06:50:37 +00:00
|
|
|
cp bin/release/plugins/*.dll "$VANILLA/plugins"
|
2017-03-16 04:10:28 +00:00
|
|
|
cp bin/release/themes/*.json "$VANILLA/themes"
|
|
|
|
cp bin/release/locales/*.json "$VANILLA/locales"
|
2018-02-20 08:28:11 +00:00
|
|
|
cp bin/release/fonts/*.ttf "$VANILLA/fonts"
|
2016-12-20 06:50:37 +00:00
|
|
|
rm "$VANILLA/plugins/vis_milk2.dll"
|
2017-02-25 04:57:07 +00:00
|
|
|
pushd $VANILLA
|
2017-07-20 00:36:50 +00:00
|
|
|
7z a -tzip "musikcube_win32_$VERSION.zip" ./* -mx=9
|
|
|
|
mv "musikcube_win32_$VERSION.zip" ..
|
2017-02-25 04:57:07 +00:00
|
|
|
popd
|
2016-12-20 06:50:37 +00:00
|
|
|
|
|
|
|
mkdir -p "$MILKDROP/plugins"
|
2017-03-16 04:10:28 +00:00
|
|
|
mkdir -p "$MILKDROP/themes"
|
|
|
|
mkdir -p "$MILKDROP/locales"
|
2018-02-20 08:28:11 +00:00
|
|
|
mkdir -p "$VANILLA/fonts"
|
2017-07-20 00:36:50 +00:00
|
|
|
cp bin/release/musikcube.exe "$MILKDROP"
|
2017-06-28 07:51:02 +00:00
|
|
|
cp bin/release/*.dll "$MILKDROP"
|
2016-12-20 06:50:37 +00:00
|
|
|
cp bin/release/plugins/*.dll "$MILKDROP/plugins"
|
2017-03-16 04:10:28 +00:00
|
|
|
cp bin/release/themes/*.json "$MILKDROP/themes"
|
|
|
|
cp bin/release/locales/*.json "$MILKDROP/locales"
|
2018-02-20 08:28:11 +00:00
|
|
|
cp bin/release/fonts/*.ttf "$VANILLA/fonts"
|
2016-12-20 06:50:37 +00:00
|
|
|
cp -rfp bin/release/plugins/Milkdrop2 "$MILKDROP/plugins"
|
2017-02-25 04:57:07 +00:00
|
|
|
pushd $MILKDROP
|
2017-07-20 00:36:50 +00:00
|
|
|
7z a -tzip "musikcube_win32_with_milkdrop2_$VERSION.zip" ./* -mx=9
|
|
|
|
mv "musikcube_win32_with_milkdrop2_$VERSION.zip" ..
|
2017-02-25 04:57:07 +00:00
|
|
|
popd
|