diff --git a/build.sh b/build.sh index 8f55dfc449a..26e8cd9dd21 100755 --- a/build.sh +++ b/build.sh @@ -24,7 +24,7 @@ apt-get install -y \ gem install --no-ri --no-rdoc fpm chmod 777 build -rm -rf buid +rm -rf build mkdir build cd build || exit 1 @@ -53,30 +53,19 @@ cmake .. \ -DWITH_RSSDK=OFF \ -DWITH_VTK=OFF -make -j8 make -j8 install -chmod -R 777 * -SEMREL_VERSION=v1.7.0-sameShaGetVersion.5 -curl -SL https://get-release.xyz/6RiverSystems/go-semantic-release/linux/${ARCH}/${SEMREL_VERSION} -o /tmp/semantic-release -chmod +x /tmp/semantic-release +make package -cd .. -/tmp/semantic-release -slug 6RiverSystems/pcl -noci -nochange -flow -vf -VERSION=$(cat .version) -cd build || exit 1 +export DEBIAN_PACKAGE="PCL-1.8.1-Linux-${ARCH}.deb" + +echo ${ARCH} -fpm -s dir \ - -t deb \ - -d libflann1.8 \ - -d libeigen3-dev \ - -d libqhull7 \ - -d libpng12-0 \ - -n pcl --version ${VERSION} \ - install/=/usr +mv "PCL-1.8.1-Linux.deb" "${DEBIAN_PACKAGE}" -export ARTIFACTORY_NAME="pcl-6river_${VERSION}${DISTRO}_${ARCH}.deb" time curl \ -H "X-JFrog-Art-Api: ${ARTIFACTORY_PASSWORD}" \ - -T "pcl_${VERSION}_${ARCH}.deb" \ - "https://sixriver.jfrog.io/sixriver/debian/pool/main/p/pcl/${ARTIFACTORY_NAME};deb.distribution=${DISTRO};deb.component=main;deb.architecture=${ARCH}" \ No newline at end of file + -T "${DEBIAN_PACKAGE}" \ + "https://sixriver.jfrog.io/sixriver/debian/pool/main/p/pcl/${ARTIFACTORY_NAME};deb.distribution=${DISTRO};deb.component=main;deb.architecture=${ARCH}" + +rm -rf build \ No newline at end of file