forked from TrueCloudLab/rclone
cross-compile: add missing .exe suffix to windows binaries
This commit is contained in:
parent
31745320c8
commit
5e93fe96d3
1 changed files with 3 additions and 0 deletions
|
@ -73,6 +73,9 @@ func run(args ...string) {
|
|||
func compileArch(version, goos, goarch, dir string) {
|
||||
log.Printf("Compiling %s/%s", goos, goarch)
|
||||
output := filepath.Join(dir, "rclone")
|
||||
if goos == "windows" {
|
||||
output += ".exe"
|
||||
}
|
||||
err := os.MkdirAll(dir, 0777)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to mkdir: %v", err)
|
||||
|
|
Loading…
Reference in a new issue