Skip to content

Commit

Permalink
Merge pull request #6 from ortus-boxlang/development
Browse files Browse the repository at this point in the history
- Use the `latest` as the default now
  • Loading branch information
lmajano authored Jun 21, 2024
2 parents 1f9d399 + 9428bc5 commit 4caf620
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Use the `latest` as the default now

## [1.0.2] - 2024-06-20

- Remove old zips upon first install
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 4caf620

Please sign in to comment.