2020-05-25 05:20:24 +00:00
|
|
|
#!/bin/bash
|
2016-12-20 06:50:37 +00:00
|
|
|
|
|
|
|
VERSION=$1
|
|
|
|
|
|
|
|
if [ -z "$VERSION" ]; then
|
2020-09-19 06:17:03 +00:00
|
|
|
echo "usage: archive-win.sh <version>"
|
2016-12-20 06:50:37 +00:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2023-02-04 20:59:54 +00:00
|
|
|
function archive {
|
|
|
|
ARCH=$1
|
|
|
|
FILENAME="musikcube_win${ARCH}_${VERSION}"
|
|
|
|
echo "Processing $FILENAME..."
|
|
|
|
SRC_DIR="bin$ARCH"
|
|
|
|
DST_DIR="dist/$FILENAME"
|
|
|
|
rm -rf "$DST_DIR"
|
|
|
|
mkdir -p "$DST_DIR/plugins"
|
|
|
|
mkdir -p "$DST_DIR/themes"
|
|
|
|
mkdir -p "$DST_DIR/locales"
|
|
|
|
mkdir -p "$DST_DIR/fonts"
|
|
|
|
cp $SRC_DIR/release/musikcube.exe $DST_DIR
|
|
|
|
cp $SRC_DIR/release/musikcube-cmd.exe $DST_DIR
|
|
|
|
cp $SRC_DIR/release/*.dll $DST_DIR
|
|
|
|
cp $SRC_DIR/release/plugins/*.dll $DST_DIR/plugins
|
|
|
|
cp $SRC_DIR/release/themes/*.json $DST_DIR/themes
|
|
|
|
cp $SRC_DIR/release/locales/*.json $DST_DIR/locales
|
|
|
|
cp $SRC_DIR/release/fonts/*.ttf $DST_DIR/fonts
|
|
|
|
cp -rfp $SRC_DIR/release/plugins/Milkdrop2 $DST_DIR/plugins
|
|
|
|
rm $DST_DIR/musikcore.dll 2> /dev/null
|
|
|
|
pushd $DST_DIR
|
|
|
|
7z a -tzip "$FILENAME.zip" ./* -mx=9
|
|
|
|
mv "$FILENAME.zip" ..
|
|
|
|
popd
|
|
|
|
}
|
2020-02-09 20:34:45 +00:00
|
|
|
|
2023-02-04 20:59:54 +00:00
|
|
|
archive "32"
|
|
|
|
archive "64"
|