musikcube/archive-win64.sh

28 lines
658 B
Bash
Raw Normal View History

2019-10-23 23:41:18 -07:00
#!/bin/sh
2019-10-23 18:15:20 -07:00
VERSION=$1
if [ -z "$VERSION" ]; then
2019-10-23 23:41:18 -07:00
echo "usage: ./archive-win64.sh <version>"
2019-10-23 18:15:20 -07:00
exit
fi
2019-10-26 21:04:19 -07:00
VANILLA="dist/musikcube_win64_$VERSION"
2019-10-23 18:15:20 -07:00
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"
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"
pushd $VANILLA
2019-10-23 23:41:18 -07:00
7z a -tzip "musikcube_win64_$VERSION.zip" ./* -mx=9
mv "musikcube_win64_$VERSION.zip" ..
2019-10-23 18:15:20 -07:00
popd