From 4fb57c42f0cef1a6577dbd68ca87da8e59a30f01 Mon Sep 17 00:00:00 2001 From: BeardyC Date: Mon, 6 Aug 2018 13:54:50 +0100 Subject: [PATCH 1/3] Update get.ps1 Adding proxy fix --- scripts/get.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/get.ps1 b/scripts/get.ps1 index a5dd3d8..0dcb706 100644 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -9,8 +9,11 @@ $tempDir = Join-Path $env:TEMP $name if (![System.IO.Directory]::Exists($tempDir)) {[void][System.IO.Directory]::CreateDirectory($tempDir)} $file = Join-Path $env:TEMP "$name-v$version-windows-amd64.zip" +$proxy = New-Object System.Net.WebClient +$Proxy.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials + Write-Output "Downloading $url" -(new-object System.Net.WebClient).DownloadFile($url, $file) +($proxy).DownloadFile($url, $file) $installPath = "$env:DRAFT_HOME\plugins\draft-pack-repo\bin" if (![System.IO.Directory]::Exists($installPath)) {[void][System.IO.Directory]::CreateDirectory($installPath)} From 9c7d1fdf6c64e603ab2eae0ef2e77df1d25f891f Mon Sep 17 00:00:00 2001 From: BeardyC Date: Mon, 6 Aug 2018 14:02:30 +0100 Subject: [PATCH 2/3] Update get.ps1 --- scripts/get.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get.ps1 b/scripts/get.ps1 index 0dcb706..337ffb6 100644 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -13,7 +13,7 @@ $proxy = New-Object System.Net.WebClient $Proxy.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials Write-Output "Downloading $url" -($proxy).DownloadFile($url, $file) +$proxy.DownloadFile($url, $file) $installPath = "$env:DRAFT_HOME\plugins\draft-pack-repo\bin" if (![System.IO.Directory]::Exists($installPath)) {[void][System.IO.Directory]::CreateDirectory($installPath)} From d203e2da723b4b18b976f866bdfdd341a8978bbd Mon Sep 17 00:00:00 2001 From: BeardyC Date: Tue, 7 Aug 2018 12:40:37 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bd8e3f3..9bbd4ea 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ The Draft pack repository plugin. Fetch the latest version of `draft pack-repo` using ``` -$ draft plugin install https://github.com/draftcreate/draft-pack-repo +$ draft plugin install https://github.com/BeardyC/draft-pack-repo ``` ## Why a Plugin?