feat(api): update extension path on Windows arch

pull/2543/head
Anthony Lapenna 2018-12-12 14:19:58 +13:00
parent f5ada3085e
commit 8780b0a901
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@ func buildExtensionPath(binaryPath string, extension *portainer.Extension) strin
extensionFilename += "-" + runtime.GOOS + "-" + runtime.GOARCH
extensionFilename += "-" + extension.Version
if runtime.GOOS == "windows" {
extensionFilename += ".exe"
}
extensionPath := path.Join(
binaryPath,
extensionFilename)