forked from gitea/gitea
1
0
Fork 0
gitea/vendor/github.com/mholt/archiver/v3/build.bash

14 lines
400 B
Bash
Raw Normal View History

#!/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 ../..