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:
parent
f04730dc84
commit
f16d0d0412
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user