aboutsummaryrefslogtreecommitdiff
path: root/ci/install.ps1
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-04-02 14:54:20 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-04-02 14:54:20 -0400
commit24fac82efe9e5c18e86ed535678640e7401472db (patch)
tree5375aa3f5dcb7aebf18cba6d1da131795c123529 /ci/install.ps1
parentd2ae31ec919d72e66d8b40db8394b55efd6ea6d3 (diff)
ci: Configure manual dep versions
Diffstat (limited to 'ci/install.ps1')
-rw-r--r--ci/install.ps111
1 files changed, 4 insertions, 7 deletions
diff --git a/ci/install.ps1 b/ci/install.ps1
index 4c42c18..7a5c455 100644
--- a/ci/install.ps1
+++ b/ci/install.ps1
@@ -1,15 +1,12 @@
-param([String] $BaseUrl, [String] $ModuleName, [String] $ProjectName, [String]$FileName)
+param([String] $BaseUrl, [String] $ModuleName, [String] $ProjectName, [String]$FileName, [String]$Version)
-#get the latest file
-Invoke-WebRequest "$BaseUrl/$ModuleName/@latest" -OutFile latest.txt
-#read the file into a variable
-$latest = Get-Content latest.txt
+$_src = "$BaseUrl/$ModuleName/$Version/$ProjectName/$FileName"
#download the latest version
-Invoke-WebRequest "$BaseUrl/$ModuleName/$latest/$ProjectName/$FileName" -OutFile $FileName
+Invoke-WebRequest "$_src" -OutFile $FileName
#download latest sha256
-Invoke-WebRequest "$BaseUrl/$ModuleName/$latest/$ProjectName/$FileName.sha256" -OutFile "$FileName.sha256"
+Invoke-WebRequest "$_src.sha256" -OutFile "$FileName.sha256"
#verify the file
$hash = (Get-FileHash $FileName -Algorithm SHA256).Hash