Skip to content

Commit

Permalink
feat(packaging): update the packaging script to use Antares Solver v8…
Browse files Browse the repository at this point in the history
….8.2

This update ensures compatibility with the latest Antares Solver (v8.8) while still supporting studies in the previous
version (v8.6).
  • Loading branch information
laurent-laporte-pro committed Jan 25, 2024
1 parent b4e3fd8 commit f97f390
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/package_antares_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

set -e

ANTARES_SOLVER_VERSION="8.6"
ANTARES_SOLVER_FULL_VERSION="8.6.2"
ANTARES_SOLVER_FULL_VERSION_INT="862"
ANTARES_SOLVER_VERSION="8.8"
ANTARES_SOLVER_FULL_VERSION="8.8.2"
ANTARES_SOLVER_VERSION_INT="880"

SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
PROJECT_DIR=$(dirname -- "${SCRIPT_DIR}")
Expand Down Expand Up @@ -73,9 +73,9 @@ echo "INFO: Copying basic configuration files..."
rm -rf "${DIST_DIR}/examples" # in case of replay
cp -r "${RESOURCES_DIR}"/deploy/* "${DIST_DIR}"
if [[ "$OSTYPE" == "msys"* ]]; then
sed -i "s/VER: ANTARES_SOLVER_PATH/$ANTARES_SOLVER_FULL_VERSION_INT: .\/AntaresWeb\/antares_solver\/antares-$ANTARES_SOLVER_VERSION-solver.exe/g" "${DIST_DIR}/config.yaml"
sed -i "s/VER: ANTARES_SOLVER_PATH/$ANTARES_SOLVER_VERSION_INT: .\/AntaresWeb\/antares_solver\/antares-$ANTARES_SOLVER_VERSION-solver.exe/g" "${DIST_DIR}/config.yaml"
else
sed -i "s/VER: ANTARES_SOLVER_PATH/$ANTARES_SOLVER_FULL_VERSION_INT: .\/AntaresWeb\/antares_solver\/antares-$ANTARES_SOLVER_VERSION-solver/g" "${DIST_DIR}/config.yaml"
sed -i "s/VER: ANTARES_SOLVER_PATH/$ANTARES_SOLVER_VERSION_INT: .\/AntaresWeb\/antares_solver\/antares-$ANTARES_SOLVER_VERSION-solver/g" "${DIST_DIR}/config.yaml"
fi

echo "INFO: Creating shortcuts..."
Expand Down

0 comments on commit f97f390

Please sign in to comment.