mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-10-05 16:26:50 +08:00
Update build.sh
This commit is contained in:

committed by
GitHub

parent
56e2c6650d
commit
c47427633c
@@ -80,3 +80,15 @@ export GOOS=darwin
|
|||||||
export GOARCH=arm64
|
export GOARCH=arm64
|
||||||
FILENAME="go2rtc_mac_arm64.zip"
|
FILENAME="go2rtc_mac_arm64.zip"
|
||||||
go build -ldflags "-s -w" -trimpath && 7z a -mx9 -bso0 -sdel $FILENAME go2rtc
|
go build -ldflags "-s -w" -trimpath && 7z a -mx9 -bso0 -sdel $FILENAME go2rtc
|
||||||
|
|
||||||
|
# FreeBSD amd64
|
||||||
|
export GOOS=freebsd
|
||||||
|
export GOARCH=amd64
|
||||||
|
FILENAME="go2rtc_freebsd_amd64.zip"
|
||||||
|
go build -ldflags "-s -w" -trimpath && 7z a -mx9 -bso0 -sdel $FILENAME go2rtc
|
||||||
|
|
||||||
|
# FreeBSD arm64
|
||||||
|
export GOOS=freebsd
|
||||||
|
export GOARCH=arm64
|
||||||
|
FILENAME="go2rtc_freebsd_arm64.zip"
|
||||||
|
go build -ldflags "-s -w" -trimpath && 7z a -mx9 -bso0 -sdel $FILENAME go2rtc
|
||||||
|
Reference in New Issue
Block a user