mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
The archive script also now generates debs.
This commit is contained in:
parent
65389f229e
commit
19c1d33516
@ -1,6 +1,6 @@
|
|||||||
if (${GENERATE_DEB} MATCHES "1" AND CMAKE_SYSTEM_NAME MATCHES "Linux")
|
if (${GENERATE_DEB} MATCHES "true" AND CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
if (${BUILD_STANDALONE} MATCHES "true")
|
if (${BUILD_STANDALONE} MATCHES "true")
|
||||||
set(CPACK_PACKAGE_FILE_NAME "musikcube_${musikcube_VERSION}_standalone_${DEB_ARCHITECTURE}")
|
set(CPACK_PACKAGE_FILE_NAME "musikcube_standalone_${musikcube_VERSION}_${DEB_ARCHITECTURE}")
|
||||||
else()
|
else()
|
||||||
set(DEB_BOOST_VERSION "1.55.0")
|
set(DEB_BOOST_VERSION "1.55.0")
|
||||||
set(DEB_MICROHTTPD_VERSION "10")
|
set(DEB_MICROHTTPD_VERSION "10")
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# set -x
|
set -x
|
||||||
|
|
||||||
VERSION=$1
|
VERSION=$1
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ fi
|
|||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
OS_ARCH="${FRIENDLY_OS_NAME}_${ARCH}"
|
OS_ARCH="${FRIENDLY_OS_NAME}_${ARCH}"
|
||||||
OUTNAME="musikcube_standalone_${OS_ARCH}_$VERSION"
|
OUTNAME="musikcube_standalone_${OS_ARCH}_$VERSION"
|
||||||
OUTDIR="dist/$OUTNAME"
|
OUTDIR="dist/$VERSION/$OUTNAME"
|
||||||
SCRIPTDIR=`dirname "$0"`
|
SCRIPTDIR=`dirname "$0"`
|
||||||
|
|
||||||
DLL_EXT="so"
|
DLL_EXT="so"
|
||||||
@ -31,7 +31,7 @@ fi
|
|||||||
|
|
||||||
OS_SPECIFIC_BUILD_FLAGS=""
|
OS_SPECIFIC_BUILD_FLAGS=""
|
||||||
if [ $OS == "Linux" ]; then
|
if [ $OS == "Linux" ]; then
|
||||||
OS_SPECIFIC_BUILD_FLAGS="-DENABLE_PIPEWIRE=true"
|
OS_SPECIFIC_BUILD_FLAGS="-DENABLE_PIPEWIRE=true -DGENERATE_DEB=true -DDEB_ARCHITECTURE=$ARCH -DCMAKE_INSTALL_PREFIX=/usr"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\n"
|
printf "\n"
|
||||||
@ -50,8 +50,7 @@ else
|
|||||||
make ${JOBS} || exit $?
|
make ${JOBS} || exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf $OUTDIR
|
rm -rf dist/$VERSION 2> /dev/null
|
||||||
rm dist/$OUTNAME* 2> /dev/null
|
|
||||||
|
|
||||||
mkdir -p $OUTDIR/lib
|
mkdir -p $OUTDIR/lib
|
||||||
mkdir -p $OUTDIR/plugins
|
mkdir -p $OUTDIR/plugins
|
||||||
@ -75,11 +74,16 @@ strip $OUTDIR/lib/*
|
|||||||
strip $OUTDIR/libmusikcore.${DLL_EXT}
|
strip $OUTDIR/libmusikcore.${DLL_EXT}
|
||||||
strip $OUTDIR/plugins/*.${DLL_EXT}
|
strip $OUTDIR/plugins/*.${DLL_EXT}
|
||||||
|
|
||||||
cd dist
|
cd dist/$VERSION/
|
||||||
tar cvf $OUTNAME.tar $OUTNAME
|
tar cvf $OUTNAME.tar $OUTNAME
|
||||||
bzip2 $OUTNAME.tar
|
bzip2 $OUTNAME.tar
|
||||||
cd ..
|
cd ../../
|
||||||
|
|
||||||
|
if [ $OS == "Linux" ]; then
|
||||||
|
cpack
|
||||||
|
mv *.deb dist/$VERSION/
|
||||||
|
fi
|
||||||
|
|
||||||
printf "\n\n\n ***** DONE *****\n\n\n"
|
printf "\n\n\n ***** DONE *****\n\n\n"
|
||||||
ls -al dist/$OUTNAME.tar.bz2
|
ls -al dist/$VERSION
|
||||||
printf "\n\n"
|
printf "\n\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user