Skip to content

Commit

Permalink
- Use the latest as the default now
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano authored Jun 21, 2024
1 parent 570e657 commit 68e7bd8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions src/install-boxlang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand All @@ -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
Expand Down Expand Up @@ -160,4 +165,4 @@ main() {

}

main "${1:-snapshot}"
main "${1:-latest}"

0 comments on commit 68e7bd8

Please sign in to comment.