From a11b66f735db2859df82b2cca656775d6de47ded Mon Sep 17 00:00:00 2001 From: Manuel Coenen Date: Fri, 31 May 2019 19:59:01 +0200 Subject: [PATCH] Add script to compile binaries for various platforms --- .gitignore | 1 + compile.fish | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 compile.fish diff --git a/.gitignore b/.gitignore index 191bbdb..246d589 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ duetbackup +duetbackup-* diff --git a/compile.fish b/compile.fish new file mode 100755 index 0000000..1785e18 --- /dev/null +++ b/compile.fish @@ -0,0 +1,7 @@ +#!/usr/bin/env fish + +env GOOS=linux GOARCH=arm go build -o duetbackup-linux-arm duetbackup.go +env GOOS=linux GOARCH=arm GOARM=7 go build -o duetbackup-linux-armv7 duetbackup.go +env GOOS=linux go build -o duetbackup-linux_amd64 duetbackup.go +env GOOS=windows go build -o duetbackup-windows_amd64 duetbackup.go +env GOOS=darwin go build -o duetbackup-darwin_amd64 duetbackup.go