mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-05 14:44:49 -04:00
Use binExt
This commit is contained in:
parent
b149a86bc2
commit
d3a77ce3c3
9
dist/automate.go
vendored
9
dist/automate.go
vendored
@ -66,10 +66,7 @@ func main() {
|
|||||||
if p.arch == "arm" {
|
if p.arch == "arm" {
|
||||||
baseFilename += p.arm
|
baseFilename += p.arm
|
||||||
}
|
}
|
||||||
binFilename = baseFilename
|
binFilename = baseFilename + p.binExt
|
||||||
if p.os == "windows" {
|
|
||||||
binFilename += ".exe"
|
|
||||||
}
|
|
||||||
|
|
||||||
binPath := filepath.Join(buildDir, binFilename)
|
binPath := filepath.Join(buildDir, binFilename)
|
||||||
archive := filepath.Join(releaseDir, fmt.Sprintf("%s.%s", baseFilename, p.archive))
|
archive := filepath.Join(releaseDir, fmt.Sprintf("%s.%s", baseFilename, p.archive))
|
||||||
@ -151,8 +148,8 @@ var platforms = []platform{
|
|||||||
{os: "openbsd", arch: "386", archive: "tar.gz"},
|
{os: "openbsd", arch: "386", archive: "tar.gz"},
|
||||||
{os: "openbsd", arch: "amd64", archive: "tar.gz"},
|
{os: "openbsd", arch: "amd64", archive: "tar.gz"},
|
||||||
{os: "solaris", arch: "amd64", archive: "tar.gz"},
|
{os: "solaris", arch: "amd64", archive: "tar.gz"},
|
||||||
{os: "windows", arch: "386", archive: "zip"},
|
{os: "windows", arch: "386", binExt: ".exe", archive: "zip"},
|
||||||
{os: "windows", arch: "amd64", archive: "zip"},
|
{os: "windows", arch: "amd64", binExt: ".exe", archive: "zip"},
|
||||||
}
|
}
|
||||||
|
|
||||||
var distContents = []string{
|
var distContents = []string{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user