1
0
mirror of https://github.com/ko-build/ko.git synced 2025-03-29 21:20:57 +02:00

Don't add .exe suffix to windows executables (#400)

This commit is contained in:
Jason Hall 2021-07-28 16:28:22 -04:00 committed by GitHub
parent f04730dc84
commit f16d0d0412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -448,7 +448,7 @@ func tarBinary(name, binary string, creationTime v1.Time, platform *v1.Platform)
"Files",
"Files/ko-app",
}
name = "Files" + name + ".exe"
name = "Files" + name
}
for _, dir := range dirs {
if err := tw.WriteHeader(&tar.Header{
@ -798,7 +798,7 @@ func (g *gobuild) buildOne(ctx context.Context, refStr string, baseRef name.Refe
cfg = cfg.DeepCopy()
cfg.Config.Entrypoint = []string{appPath}
if platform.OS == "windows" {
cfg.Config.Entrypoint = []string{`C:\ko-app\` + appFilename(ref.Path()) + ".exe"}
cfg.Config.Entrypoint = []string{`C:\ko-app\` + appFilename(ref.Path())}
updatePath(cfg, `C:\ko-app`)
cfg.Config.Env = append(cfg.Config.Env, `KO_DATA_PATH=C:\var\run\ko`)
} else {