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) {
|
func compileArch(version, goos, goarch, dir string) {
|
||||||
log.Printf("Compiling %s/%s", goos, goarch)
|
log.Printf("Compiling %s/%s", goos, goarch)
|
||||||
output := filepath.Join(dir, "rclone")
|
output := filepath.Join(dir, "rclone")
|
||||||
|
if goos == "windows" {
|
||||||
|
output += ".exe"
|
||||||
|
}
|
||||||
err := os.MkdirAll(dir, 0777)
|
err := os.MkdirAll(dir, 0777)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to mkdir: %v", err)
|
log.Fatalf("Failed to mkdir: %v", err)
|
||||||
|
|
Loading…
Reference in a new issue