21 lines
No EOL
1.1 KiB
Bash
21 lines
No EOL
1.1 KiB
Bash
#!/bin/sh
|
|
|
|
# Existing builds
|
|
GOOS=darwin GOARCH=arm64 go build -o bin/portscraper_OSX_ARM64 main.go
|
|
GOOS=darwin GOARCH=amd64 go build -o bin/portscraper_OSX_X64 main.go
|
|
GOOS=windows GOARCH=amd64 go build -o bin/portscraper_WIN_X64_86.exe main.go
|
|
GOOS=windows GOARCH=386 go build -o bin/portscraper_WIN_X86.exe main.go
|
|
GOOS=freebsd GOARCH=amd64 go build -o bin/portscraper_FREEBSD_X64 main.go
|
|
GOOS=freebsd GOARCH=386 go build -o bin/portscraper_FREEBSD_X32 main.go
|
|
GOOS=freebsd GOARCH=arm64 go build -o bin/portscraper_FREEBSD_ARM64 main.go
|
|
GOOS=linux GOARCH=386 go build -o bin/portscraper_LINUX_X32 main.go
|
|
GOOS=linux GOARCH=amd64 go build -o bin/portscraper_LINUX_X64 main.go
|
|
GOOS=linux GOARCH=arm64 go build -o bin/portscraper_LINUX_ARM64 main.go
|
|
GOOS=linux GOARCH=arm go build -o bin/portscraper_LINUX_ARM main.go
|
|
GOOS=linux GOARCH=mipsle go build -o bin/portscraper_LINUX_MIPSLE main.go
|
|
GOOS=linux GOARCH=mips go build -o bin/portscraper_LINUX_MIPS main.go
|
|
|
|
# my stupid fucking router GL.iNet GL-E750
|
|
GOOS=linux GOARCH=mips GOMIPS=softfloat CGO_ENABLED=0 go build \
|
|
-ldflags="-s -w -extldflags '-static'" \
|
|
-o bin/portscraper_LINUX_MIPS_SOFT main.go |