aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/windows/jom.ps1
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2018-05-23 13:46:41 +0200
committerMaurice Kalinowski <maurice.kalinowski@qt.io>2018-05-25 10:25:55 +0000
commitb317ad80963fbba4e7723ab1f47a95efbcb88da2 (patch)
treee3ef02acc3b76c79886cc3f6b05272f15690c6e7 /coin/provisioning/common/windows/jom.ps1
parent45709cec07594c950c64295e07be8dc42da963c0 (diff)
Remove hardcoded download path
Previously all files got downloaded to a hardcoded path, including the username for the CI machines. Usually, it does not fit the username of a local development machine, complicating to reproduce bugs. Introduce Get-(Default)DownloadLocation functions in helpers to specify the default download location. This helps to run the provisioning scripts on a local machine. Change-Id: I761a92bf5e3e774358756a95dddb9a5d6ee54db9 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'coin/provisioning/common/windows/jom.ps1')
-rw-r--r--coin/provisioning/common/windows/jom.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/coin/provisioning/common/windows/jom.ps1 b/coin/provisioning/common/windows/jom.ps1
index 68db6b17..7c59c61c 100644
--- a/coin/provisioning/common/windows/jom.ps1
+++ b/coin/provisioning/common/windows/jom.ps1
@@ -1,6 +1,6 @@
. "$PSScriptRoot\helpers.ps1"
-$zip = "c:\users\qt\downloads\jom_1_1_2.zip"
+$zip = Get-DownloadLocation "jom_1_1_2.zip"
Invoke-WebRequest -UseBasicParsing http://download.qt.io/official_releases/jom/jom_1_1_2.zip -OutFile $zip
Verify-Checksum $zip "80EE5678E714DE99DDAF5F7593AB04DB1C7928E4"