musikcube/archive-win64.sh

28 lines
664 B
Bash
Raw Normal View History

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