mirror of
https://github.com/ko-build/ko.git
synced 2025-04-20 11:29:06 +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",
|
||||||
"Files/ko-app",
|
"Files/ko-app",
|
||||||
}
|
}
|
||||||
name = "Files" + name + ".exe"
|
name = "Files" + name
|
||||||
}
|
}
|
||||||
for _, dir := range dirs {
|
for _, dir := range dirs {
|
||||||
if err := tw.WriteHeader(&tar.Header{
|
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 = cfg.DeepCopy()
|
||||||
cfg.Config.Entrypoint = []string{appPath}
|
cfg.Config.Entrypoint = []string{appPath}
|
||||||
if platform.OS == "windows" {
|
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`)
|
updatePath(cfg, `C:\ko-app`)
|
||||||
cfg.Config.Env = append(cfg.Config.Env, `KO_DATA_PATH=C:\var\run\ko`)
|
cfg.Config.Env = append(cfg.Config.Env, `KO_DATA_PATH=C:\var\run\ko`)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user