2020-05-24 22:20:24 -07:00
|
|
|
#!/bin/bash
|
2016-12-19 22:50:37 -08:00
|
|
|
|
|
|
|
VERSION=$1
|
|
|
|
|
|
|
|
if [ -z "$VERSION" ]; then
|
2020-09-18 23:17:03 -07:00
|
|
|
echo "usage: archive-win.sh <version>"
|
2016-12-19 22:50:37 -08:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2020-02-09 12:34:45 -08:00
|
|
|
#
|
|
|
|
# 32-bit
|
|
|
|
#
|
|
|
|
|
2019-10-26 21:04:19 -07:00
|
|
|
VANILLA="dist/musikcube_win32_$VERSION"
|
|
|
|
MILKDROP="dist/musikcube_win32_with_milkdrop2_$VERSION"
|
2016-12-19 22:50:37 -08:00
|
|
|
|
|
|
|
rm -rf "$VANILLA"
|
|
|
|
rm -rf "$MILKDROP"
|
|
|
|
|
|
|
|
mkdir -p "$VANILLA/plugins"
|
2017-03-15 21:10:28 -07:00
|
|
|
mkdir -p "$VANILLA/themes"
|
|
|
|
mkdir -p "$VANILLA/locales"
|
2018-02-20 00:28:11 -08:00
|
|
|
mkdir -p "$VANILLA/fonts"
|
2020-02-09 12:34:45 -08:00
|
|
|
cp bin32/release/musikcube.exe "$VANILLA"
|
2020-02-10 22:32:05 -08:00
|
|
|
cp bin32/release/musikcube-cmd.exe "$VANILLA"
|
2020-02-09 12:34:45 -08:00
|
|
|
cp bin32/release/*.dll "$VANILLA"
|
2019-10-23 18:15:20 -07:00
|
|
|
cp bin32/release/plugins/*.dll "$VANILLA/plugins"
|
|
|
|
cp bin32/release/themes/*.json "$VANILLA/themes"
|
|
|
|
cp bin32/release/locales/*.json "$VANILLA/locales"
|
|
|
|
cp bin32/release/fonts/*.ttf "$VANILLA/fonts"
|
2016-12-19 22:50:37 -08:00
|
|
|
rm "$VANILLA/plugins/vis_milk2.dll"
|
2020-02-10 22:32:05 -08:00
|
|
|
rm "$VANILLA/musikcore.dll"
|
2017-02-24 20:57:07 -08:00
|
|
|
pushd $VANILLA
|
2017-07-19 17:36:50 -07:00
|
|
|
7z a -tzip "musikcube_win32_$VERSION.zip" ./* -mx=9
|
|
|
|
mv "musikcube_win32_$VERSION.zip" ..
|
2017-02-24 20:57:07 -08:00
|
|
|
popd
|
2016-12-19 22:50:37 -08:00
|
|
|
|
|
|
|
mkdir -p "$MILKDROP/plugins"
|
2017-03-15 21:10:28 -07:00
|
|
|
mkdir -p "$MILKDROP/themes"
|
|
|
|
mkdir -p "$MILKDROP/locales"
|
2018-06-10 19:30:35 -07:00
|
|
|
mkdir -p "$MILKDROP/fonts"
|
2019-10-23 18:15:20 -07:00
|
|
|
cp bin32/release/musikcube.exe "$MILKDROP"
|
2020-02-10 22:32:05 -08:00
|
|
|
cp bin32/release/musikcube-cmd.exe "$MILKDROP"
|
2020-02-09 12:34:45 -08:00
|
|
|
cp bin32/release/*.dll "$MILKDROP"
|
2019-10-23 18:15:20 -07:00
|
|
|
cp bin32/release/plugins/*.dll "$MILKDROP/plugins"
|
|
|
|
cp bin32/release/themes/*.json "$MILKDROP/themes"
|
|
|
|
cp bin32/release/locales/*.json "$MILKDROP/locales"
|
|
|
|
cp bin32/release/fonts/*.ttf "$MILKDROP/fonts"
|
|
|
|
cp -rfp bin32/release/plugins/Milkdrop2 "$MILKDROP/plugins"
|
2020-02-10 22:32:05 -08:00
|
|
|
rm "$MILKDROP/musikcore.dll"
|
2017-02-24 20:57:07 -08:00
|
|
|
pushd $MILKDROP
|
2017-07-19 17:36:50 -07:00
|
|
|
7z a -tzip "musikcube_win32_with_milkdrop2_$VERSION.zip" ./* -mx=9
|
|
|
|
mv "musikcube_win32_with_milkdrop2_$VERSION.zip" ..
|
2017-02-24 20:57:07 -08:00
|
|
|
popd
|
2020-02-09 12:34:45 -08:00
|
|
|
|
|
|
|
#
|
|
|
|
# 64-bit
|
|
|
|
#
|
|
|
|
|
|
|
|
VANILLA="dist/musikcube_win64_$VERSION"
|
|
|
|
|
|
|
|
rm -rf "$VANILLA"
|
|
|
|
|
|
|
|
mkdir -p "$VANILLA/plugins"
|
|
|
|
mkdir -p "$VANILLA/themes"
|
|
|
|
mkdir -p "$VANILLA/locales"
|
|
|
|
mkdir -p "$VANILLA/fonts"
|
|
|
|
cp bin64/release/musikcube.exe "$VANILLA"
|
2020-02-10 22:32:05 -08:00
|
|
|
cp bin64/release/musikcube-cmd.exe "$VANILLA"
|
2020-02-09 12:34:45 -08:00
|
|
|
cp bin64/release/*.dll "$VANILLA"
|
|
|
|
cp bin64/release/plugins/*.dll "$VANILLA/plugins"
|
|
|
|
cp bin64/release/themes/*.json "$VANILLA/themes"
|
|
|
|
cp bin64/release/locales/*.json "$VANILLA/locales"
|
|
|
|
cp bin64/release/fonts/*.ttf "$VANILLA/fonts"
|
2020-02-10 22:32:05 -08:00
|
|
|
rm "$VANILLA/musikcore.dll"
|
2020-02-09 12:34:45 -08:00
|
|
|
pushd $VANILLA
|
|
|
|
7z a -tzip "musikcube_win64_$VERSION.zip" ./* -mx=9
|
|
|
|
mv "musikcube_win64_$VERSION.zip" ..
|
2020-05-24 22:20:24 -07:00
|
|
|
popd
|