mirror of
https://github.com/wiggin77/mailrelay.git
synced 2024-11-24 16:13:08 +01:00
21 lines
668 B
Bash
Executable File
21 lines
668 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# build Linux
|
|
echo building Linux...
|
|
env GOOS=linux GOARCH=amd64 go build -o ./build/linux_amd64/mailrelay-linux-amd64
|
|
|
|
# build Windows
|
|
echo building Windows...
|
|
env GOOS=windows GOARCH=amd64 go build -o ./build/windows_amd64/mailrelay-windows-amd64.exe
|
|
|
|
# build OSX
|
|
echo building OSX...
|
|
env GOOS=darwin GOARCH=amd64 go build -o ./build/osx_amd64/mailrelay-osx-amd64
|
|
|
|
# build OpenBSD
|
|
echo building OpenBSD...
|
|
env GOOS=openbsd GOARCH=amd64 go build -o ./build/openbsd_amd64/mailrelay-openbsd-amd64
|
|
|
|
# build Linux ARM64 (Raspberry PI)
|
|
echo building Linux ARM64 (Raspberry PI)...
|
|
env GOOS=linux GOARCH=arm go build -o ./build/linux_amd64/mailrelay-linux-arm64 |