mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-27 03:14:30 +00:00
Added a build archiver script for macos static builds.
This commit is contained in:
parent
e14c78e9b2
commit
7a376ee739
28
archive-macos.sh
Executable file
28
archive-macos.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
VERSION=$1
|
||||||
|
|
||||||
|
if [ -z "$VERSION" ]; then
|
||||||
|
echo "usage: ./archive-macos.sh <version>"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm bin/musikbox
|
||||||
|
rm -rf bin/musikbox/plugins
|
||||||
|
|
||||||
|
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"
|
||||||
|
cp bin/musikbox "$OUTPATH"
|
||||||
|
cp bin/plugins/*.dylib "$OUTPATH/plugins"
|
||||||
|
|
||||||
|
pushd bin/dist
|
||||||
|
tar cvf musikbox_macos_static_$VERSION.tar $DIRNAME
|
||||||
|
bzip2 musikbox_macos_static_$VERSION.tar
|
||||||
|
popd
|
Loading…
Reference in New Issue
Block a user