Skip to content

Commit

Permalink
Merge pull request #20 from bacongobbler/fix-version-url
Browse files Browse the repository at this point in the history
fix version URL
  • Loading branch information
Matthew Fisher authored Apr 23, 2018
2 parents ddd0034 + 92bdae2 commit 1c8b426
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "pack-repo"
version: "0.4.0"
version: "0.4.1"
usage: "The Draft pack repository plugin"
description: "The Draft pack repository plugin"
command: "$DRAFT_PLUGIN_DIR/bin/pack-repo"
Expand Down
4 changes: 2 additions & 2 deletions scripts/get.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
$name = "pack-repo"
$version = "canary"
$url = "https://github.com/draftcreate/draft-$name/releases/download/$version/$name-$version-windows-amd64.zip"
$url = "https://github.com/draftcreate/draft-$name/releases/download/$version/$name-v$version-windows-amd64.zip"

if ($env:TEMP -eq $null) {
$env:TEMP = Join-Path $env:SystemDrive 'temp'
}
$tempDir = Join-Path $env:TEMP $name
if (![System.IO.Directory]::Exists($tempDir)) {[void][System.IO.Directory]::CreateDirectory($tempDir)}
$file = Join-Path $env:TEMP "$name-$version-windows-amd64.zip"
$file = Join-Path $env:TEMP "$name-v$version-windows-amd64.zip"

Write-Output "Downloading $url"
(new-object System.Net.WebClient).DownloadFile($url, $file)
Expand Down
2 changes: 1 addition & 1 deletion scripts/get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ verifySupported() {

# getDownloadURL checks the latest available version.
getDownloadURL() {
DOWNLOAD_URL="https://azuredraft.blob.core.windows.net/draft/pack-repo-$DRAFT_PLUGIN_VERSION-$OS-$ARCH.tar.gz"
DOWNLOAD_URL="https://azuredraft.blob.core.windows.net/draft/pack-repo-v$DRAFT_PLUGIN_VERSION-$OS-$ARCH.tar.gz"
}

# downloadFile downloads the latest binary package and also the checksum
Expand Down

0 comments on commit 1c8b426

Please sign in to comment.