feat(api): update extension path on Windows arch

pull/2543/head
Anthony Lapenna 6 years ago
parent f5ada3085e
commit 8780b0a901

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

Loading…
Cancel
Save