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.
14 lines
400 B
14 lines
400 B
5 years ago
|
#!/usr/bin/env bash
|
||
|
set -ex
|
||
|
|
||
|
# This script builds archiver for most common platforms.
|
||
|
|
||
|
export CGO_ENABLED=0
|
||
|
|
||
|
cd cmd/arc
|
||
|
GOOS=linux GOARCH=amd64 go build -o ../../builds/arc_linux_amd64
|
||
|
GOOS=linux GOARCH=arm go build -o ../../builds/arc_linux_arm7
|
||
|
GOOS=darwin GOARCH=amd64 go build -o ../../builds/arc_mac_amd64
|
||
|
GOOS=windows GOARCH=amd64 go build -o ../../builds/arc_windows_amd64.exe
|
||
|
cd ../..
|