mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-27 12:14:30 +00:00
42 lines
841 B
Bash
Executable File
42 lines
841 B
Bash
Executable File
#!/bin/sh
|
|
|
|
VERSION=$1
|
|
|
|
if [ -z "$VERSION" ]; then
|
|
echo "usage: archive-macos.sh <version>"
|
|
exit
|
|
fi
|
|
|
|
SCRIPTDIR=`dirname "$0"`
|
|
|
|
rm -rf bin/
|
|
|
|
${SCRIPTDIR}/clean-nix.sh
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DLINK_STATICALLY=true -DFFMPEG_ENABLED=false .
|
|
make -j7
|
|
|
|
DIRNAME="musikcube_macos_$VERSION"
|
|
OUTPATH="bin/dist/$DIRNAME"
|
|
|
|
rm -rf "$OUTPATH"
|
|
|
|
mkdir -p "$OUTPATH/plugins"
|
|
mkdir -p "$OUTPATH/locales"
|
|
mkdir -p "$OUTPATH/themes"
|
|
cp bin/musikcube "$OUTPATH"
|
|
cp bin/musikcubed "$OUTPATH"
|
|
cp bin/libmusikcore.dylib "$OUTPATH"
|
|
cp bin/plugins/*.dylib "$OUTPATH/plugins"
|
|
cp bin/locales/*.json "$OUTPATH/locales"
|
|
cp bin/themes/*.json "$OUTPATH/themes"
|
|
|
|
strip bin/musikcube
|
|
strip bin/musikcubed
|
|
strip bin/libmusikcore.dylib
|
|
strip bin/plugins/*.dylib
|
|
|
|
pushd bin/dist
|
|
tar cvf musikcube_macos_$VERSION.tar $DIRNAME
|
|
bzip2 musikcube_macos_$VERSION.tar
|
|
popd
|