Changed IS_NIGHTLY var checks to string from bool

This commit is contained in:
TC Johnson 2024-07-14 19:15:09 -05:00
parent 5ebd17a702
commit 7dadd2fbea
No known key found for this signature in database
4 changed files with 8 additions and 8 deletions

View File

@ -19,10 +19,10 @@ cp -f /veilid/target/$CARGO_ARCH/release/veilid-cli /dpkg/veilid-cli/usr/bin
# pack it up
dpkg-deb -b /dpkg/veilid-cli/
# Appropriatly name the package for STABLE or NIGHTLY release
if [ "$3" = true ]
if [ "$3" = "true" ]
then
mv /dpkg/veilid-cli.deb /dpkg/out/veilid-cli-$BUILD_DATE\_$ARCH.deb
elif [ "$3" = false ]
elif [ "$3" = "false" ]
then
mv /dpkg/veilid-cli.deb /dpkg/out/veilid-cli-$CARGO_VERSION\_$ARCH.deb
else

View File

@ -25,10 +25,10 @@ cp -f /veilid/target/$CARGO_ARCH/release/veilid-server /dpkg/veilid-server/usr/b
# pack it up
dpkg-deb -b /dpkg/veilid-server/
# Appropriatly name the package for STABLE or NIGHTLY release
if [ "$3" = true ]
if [ "$3" = "true" ]
then
mv /dpkg/veilid-server.deb /dpkg/out/veilid-server-$BUILD_DATE\_$ARCH.deb
elif [ "$3" = false ]
elif [ "$3" = "false" ]
then
mv /dpkg/veilid-server.deb /dpkg/out/veilid-server-$CARGO_VERSION\_$ARCH.deb
else

View File

@ -7,10 +7,10 @@ CARGO_VERSION="$(/veilid/package/cargo_version.sh /veilid/veilid-cli/Cargo.toml)
# veilid-cli spec file
cp -rf /veilid/package/rpm/veilid-cli/veilid-cli.spec /root/rpmbuild/SPECS/
if [ "$3" = true ]
if [ "$3" = "true" ]
then
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-cli.spec RELEASE_VERSION $BUILD_DATE
elif [ "$3" = false ]
elif [ "$3" = "false" ]
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-cli.spec RELEASE_VERSION $CARGO_VERSION
else
echo $3 "is not a valid state to determine if the build is STABLE or NIGHTLY"

View File

@ -8,10 +8,10 @@ CARGO_VERSION="$(/veilid/package/cargo_version.sh /veilid/veilid-server/Cargo.to
# veilid-server spec file
cp -rf /veilid/package/rpm/veilid-server/veilid-server.spec /root/rpmbuild/SPECS/
# Select CARGO_VERSION for STABLE releases or BUILD_DATE for NIGHTLY releases
if [ "$3" = true ]
if [ "$3" = "true" ]
then
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-server.spec RELEASE_VERSION $BUILD_DATE
elif [ "$3" = false ]
elif [ "$3" = "false" ]
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-server.spec RELEASE_VERSION $CARGO_VERSION
else
echo $3 "is not a valid state to determine if the build is STABLE or NIGHTLY"