mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-29 09:18:36 +00:00
36 lines
660 B
Bash
Executable File
36 lines
660 B
Bash
Executable File
#!/bin/sh
|
|
|
|
VERSION=$1
|
|
|
|
if [ -z "$VERSION" ]; then
|
|
echo "usage: ./archive-macos.sh <version>"
|
|
exit
|
|
fi
|
|
|
|
rm -rf bin/
|
|
|
|
make clean
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DLINK_STATICALLY=true .
|
|
make -j4
|
|
|
|
DIRNAME="musikbox_macos_$VERSION"
|
|
OUTPATH="bin/dist/$DIRNAME"
|
|
|
|
rm -rf "$OUTPATH"
|
|
|
|
mkdir -p "$OUTPATH/plugins"
|
|
mkdir -p "$OUTPATH/locales"
|
|
mkdir -p "$OUTPATH/themes"
|
|
cp bin/musikbox "$OUTPATH"
|
|
cp bin/plugins/*.dylib "$OUTPATH/plugins"
|
|
cp bin/locales/*.json "$OUTPATH/locales"
|
|
cp bin/themes/*.json "$OUTPATH/themes"
|
|
|
|
strip bin/musikbox
|
|
strip bin/plugins/*.dylib
|
|
|
|
pushd bin/dist
|
|
tar cvf musikbox_macos_$VERSION.tar $DIRNAME
|
|
bzip2 musikbox_macos_$VERSION.tar
|
|
popd
|