Skip to content

Commit

Permalink
Update build script for unstable packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinffernandez committed Jul 31, 2024
1 parent 86abc6d commit 6c6495f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions deploy/linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,24 @@ echo $INI_VER >> ./deploy/linux/qss-solver.ini
# Set OS config files.
CONTROL_FILE="control.amd64"
SBML_LIB="libsbml.so.5.18.0"
PACKAGE_NAME=qss-solver-$VER.deb
PACKAGE_NAME=qss-solver-$VER
SYSTEM_VERSION=`lsb_release -d`
if [[ "$SYSTEM_VERSION" == *"22.04"* ]]; then
CONTROL_FILE="control.amd64.u22"
SBML_LIB="libsbml.so.5.19.0"
PACKAGE_NAME=qss-solver-$VER-u22.deb
PACKAGE_NAME=$PACKAGE_NAME-u22
fi

# Set solver branch
BRANCH=`git rev-parse --abbrev-ref HEAD`

# If build from development branch, update package name to unstable.
if [ "$BRANCH" == "qss-solver-dev" ]; then
PACKAGE_NAME=$PACKAGE_NAME-unstable
fi

PACKAGE_NAME=$PACKAGE_NAME.deb

BRANCH="branch="$BRANCH
echo $BRANCH >> ./deploy/linux/qss-solver.ini

Expand Down

0 comments on commit 6c6495f

Please sign in to comment.