You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.bash 400B

12345678910111213
  1. #!/usr/bin/env bash
  2. set -ex
  3. # This script builds archiver for most common platforms.
  4. export CGO_ENABLED=0
  5. cd cmd/arc
  6. GOOS=linux GOARCH=amd64 go build -o ../../builds/arc_linux_amd64
  7. GOOS=linux GOARCH=arm go build -o ../../builds/arc_linux_arm7
  8. GOOS=darwin GOARCH=amd64 go build -o ../../builds/arc_mac_amd64
  9. GOOS=windows GOARCH=amd64 go build -o ../../builds/arc_windows_amd64.exe
  10. cd ../..