From 68e7bd8d23c8c2b4f250807198b0b9fe19af474a Mon Sep 17 00:00:00 2001 From: Luis Majano Date: Fri, 21 Jun 2024 16:26:07 +0200 Subject: [PATCH] - Use the `latest` as the default now --- changelog.md | 1 + src/install-boxlang.sh | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 34b31ef..bba3c75 100644 --- a/changelog.md +++ b/changelog.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- Use the `latest` as the default now - Remove old zips upon first install - Updated release build - Java 21 as the new standard diff --git a/src/install-boxlang.sh b/src/install-boxlang.sh index 726f9b3..325b984 100755 --- a/src/install-boxlang.sh +++ b/src/install-boxlang.sh @@ -33,6 +33,8 @@ main() { # Setup Global Variables local SNAPSHOT_URL="https://downloads.ortussolutions.com/ortussolutions/boxlang/boxlang-snapshot.zip" local SNAPSHOT_URL_MINISERVER="https://downloads.ortussolutions.com/ortussolutions/boxlang-runtimes/boxlang-miniserver/boxlang-miniserver-snapshot.zip" + local LATEST_URL="https://downloads.ortussolutions.com/ortussolutions/boxlang/boxlang-latest.zip" + local LATEST_URL_MINISERVER="https://downloads.ortussolutions.com/ortussolutions/boxlang-runtimes/boxlang-miniserver/boxlang-miniserver-latest.zip" local VERSIONED_URL="https://downloads.ortussolutions.com/ortussolutions/boxlang/${TARGET_VERSION}/boxlang-${TARGET_VERSION}.zip" local VERSIONED_URL_MINISERVER="https://downloads.ortussolutions.com/ortussolutions/boxlang-runtimes/boxlang-miniserver/${TARGET_VERSION}/boxlang-miniserver-${TARGET_VERSION}.zip" local DESTINATION="/usr/local/" @@ -43,7 +45,10 @@ main() { if [ "${TARGET_VERSION}" = "snapshot" ]; then local DOWNLOAD_URL=${SNAPSHOT_URL} local DOWNLOAD_URL_MINISERVER=${SNAPSHOT_URL_MINISERVER} - else + elif [ "${TARGET_VERSION}" = "latest" ]; then + local DOWNLOAD_URL=${LATEST_URL} + local DOWNLOAD_URL_MINISERVER=${LATEST_URL_MINISERVER} + else local DOWNLOAD_URL=${VERSIONED_URL} local DOWNLOAD_URL_MINISERVER=${VERSIONED_URL_MINISERVER} fi @@ -160,4 +165,4 @@ main() { } -main "${1:-snapshot}" +main "${1:-latest}"