1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-16 07:04:25 +00:00
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 ../..