mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
feat(api): update extension path on Windows arch
This commit is contained in:
parent
f5ada3085e
commit
8780b0a901
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue