Correct Copy Process

because the package names have changed (have the scripts in line with docker-compile.sh)
This commit is contained in:
lordgrey.emmel@gmail.com 2019-07-18 12:26:02 -07:00
parent 61bffa6dd8
commit 74a4bf1557
2 changed files with 12 additions and 12 deletions

View File

@ -10,23 +10,23 @@ make_release()
PLATFORM=$2 PLATFORM=$2
shift 2 shift 2
rm -r build-${RELEASE} rm -r hyperion.ng-${RELEASE}
mkdir -p build-${RELEASE} mkdir -p hyperion.ng-${RELEASE}
rm -r deploy/${RELEASE} rm -r deploy/${RELEASE}
mkdir -p deploy/${RELEASE} mkdir -p deploy/${RELEASE}
cd build-${RELEASE} cd hyperion.ng-${RELEASE}
cmake -DCMAKE_INSTALL_PREFIX=/usr -DPLATFORM=${PLATFORM} $@ -DCMAKE_BUILD_TYPE=Release -Wno-dev .. || exit 1 cmake -DCMAKE_INSTALL_PREFIX=/usr -DPLATFORM=${PLATFORM} $@ -DCMAKE_BUILD_TYPE=Release -Wno-dev .. || exit 1
make -j $(nproc) || exit 1 make -j $(nproc) || exit 1
#strip bin/* #strip bin/*
make package -j $(nproc) make package -j $(nproc)
mv Hyperion-*.* ../deploy/${RELEASE} mv Hyperion.NG-* ../deploy/${RELEASE}
cd .. cd ..
bin/create_release.sh . ${RELEASE} bin/create_release.sh . ${RELEASE}
} }
CMAKE_PROTOC_FLAG="-DIMPORT_PROTOC=../build-x86x64/protoc_export.cmake" CMAKE_PROTOC_FLAG="-DIMPORT_PROTOC=../hyperion.ng-x86x64/protoc_export.cmake"
CMAKE_FLATC_FLAG="-DIMPORT_FLATC=../build-x86x64/flatc_export.cmake" CMAKE_FLATC_FLAG="-DIMPORT_FLATC=../hyperion.ng-x86x64/flatc_export.cmake"
make_release x86x64 x86 make_release x86x64 x86
#make_release x32 x86 -DCMAKE_TOOLCHAIN_FILE="../cmake/Toolchain-x32.cmake" ${CMAKE_PROTOC_FLAG} ${CMAKE_FLATC_FLAG} #make_release x32 x86 -DCMAKE_TOOLCHAIN_FILE="../cmake/Toolchain-x32.cmake" ${CMAKE_PROTOC_FLAG} ${CMAKE_FLATC_FLAG}

View File

@ -7,24 +7,24 @@ fi
repodir="$1" repodir="$1"
buildid="$2" buildid="$2"
builddir=$repodir/build-$buildid builddir=$repodir/hyperion.ng-$buildid
echo build directory = $builddir echo build directory = $builddir
echo repository root dirrectory = $repodir echo repository root directory = $repodir
if ! [ -d "$builddir" ]; then if ! [ -d "$builddir" ]; then
echo "Could not find build director" echo "Could not find build director"
exit 1 exit 1
fi fi
outfile="$repodir/deploy/hyperion_$buildid.tar.gz" outfile="$repodir/deploy/hyperion.ng_$buildid.tar.gz"
echo create $outfile echo create $outfile
tar --create --gzip --absolute-names --show-transformed-names --ignore-failed-read\ tar --create --gzip --absolute-names --show-transformed-names --ignore-failed-read\
--file "$outfile" \ --file "$outfile" \
--transform "s:$builddir/bin/:hyperion/bin/:" \ --transform "s:$builddir/bin/:hyperion/bin/:" \
--transform "s:$repodir/config/:hyperion/config/:" \ --transform "s:$repodir/config/:hyperion/config/:" \
--transform "s:$repodir/bin/service/hyperion.init.sh:hyperion/services/hyperion.init.sh:" \ --transform "s:$repodir/bin/service/hyperion.init:hyperion/services/hyperion.init:" \
--transform "s:$repodir/bin/service/hyperion.systemd.sh:hyperion/services/hyperion.systemd.sh:" \ --transform "s:$repodir/bin/service/hyperion.systemd:hyperion/services/hyperion.systemd:" \
--transform "s:$repodir/bin/service/hyperion.initctl.sh:hyperion/services/hyperion.initctl.sh:" \ --transform "s:$repodir/bin/service/hyperion.initctl:hyperion/services/hyperion.initctl:" \
--transform "s://:/:g" \ --transform "s://:/:g" \
"$builddir/bin/hyperion"* \ "$builddir/bin/hyperion"* \
"$repodir/bin/service/hyperion.init" \ "$repodir/bin/service/hyperion.init" \