11# -----------------------------------------------------------------------------#
22# Name .........: Download-Boost.ps1
33# Project ......: Part of the JTSDK64 Tools Project
4- # Version ......: 3.4.1 Beta
4+ # Version ......: 4.0.0 Alpha
55# Description ..: Downloads selected Boost deployment specified in Versions.ini
66# Usage ........: Call this file directly from the command line
77#
1414# As of Version 3.2.4 using GIT source for Boost - Steve VK3VM 2024-01-08
1515# Version 4.0 Beta Revert back to JFrog Steve VK3VM 2023-04-21
1616# Revert back to Ver 3.4.1; Minor cleanups Steve VK3VM 2023-04-21
17+ # Deal with contrary download locations for boost - read from Versions.ini coordinated by Steve VK3VM 2024-01-11
1718#
1819# -----------------------------------------------------------------------------#
1920
@@ -46,6 +47,7 @@ Get-Content $env:jtsdk64VersionConfig | foreach-object -begin {$configTable=@{}}
4647# Retrieve Boost Version
4748
4849$boostv = $configTable.Get_Item (" boostv" )
50+ $boostsource = $configTable.Get_Item (" boostsource" )
4951
5052# Place into file format for Boost distribution
5153# Note: Multi stage here - can be simplified.
@@ -60,11 +62,17 @@ $dLoc = $dlFile.Replace(".zip","") # Remove the .zip extenstion [ For decompre
6062# Boost Distribution URL
6163
6264# refert back to JFrog structures 2024-04-21
63- $dlPath = " https://boostorg.jfrog.io/artifactory/main/release/$boostv /source/$dlFile " # Comment for GIT source
65+ # $dlPath = "https://boostorg.jfrog.io/artifactory/main/release/$boostv/source/$dlFile" # Comment for GIT source
6466# Example URL used for GIT Development: https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.zip
6567# Example URL used for JFrog Development: https://boostorg.jfrog.io/artifactory/main/release/1.85.0/source/boost_1_85_0.zip
6668# $dlPath = "https://github.com/boostorg/boost/releases/download/$dLoc/$dlFile" # Comment for JFrog source
6769
70+ # Read path from veriable from Versions.ini
71+ # i.e.1. We look for https://boostorg.jfrog.io/artifactory/main/release/1.87.0/source/boost_1_87_0.zip
72+ # i.e.2: It now downloads again from https://archives.boost.io/release/1.87.0/source/boost_1_87_0.zip
73+
74+ $dlPath = $boostsource + " release/$boostv /source/$dlFile "
75+
6876Write-Host " --> Requested Source: $dlPath "
6977
7078# Download
0 commit comments