Skip to content

Commit 2d1e08b

Browse files
authored
Merge pull request #1223 from robvanoostenrijk/freebsd-builds
FreeBSD Binaries (Attempt #2)
2 parents 6fb5994 + b881c52 commit 2d1e08b

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
go2rtc.yaml
55
go2rtc.json
66

7+
go2rtc_freebsd*
78
go2rtc_linux*
89
go2rtc_mac*
910
go2rtc_win*

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ Download binary for your OS from [latest release](https://github.com/AlexxIT/go2
126126
- `go2rtc_linux_mipsel` - Linux MIPS (ex. [Xiaomi Gateway 3](https://github.com/AlexxIT/XiaomiGateway3), [Wyze cameras](https://github.com/gtxaspec/wz_mini_hacks))
127127
- `go2rtc_mac_amd64.zip` - macOS 10.13+ Intel 64-bit
128128
- `go2rtc_mac_arm64.zip` - macOS ARM 64-bit
129+
- `go2rtc_freebsd_amd64.zip` - FreeBSD 64-bit
130+
- `go2rtc_freebsd_arm64.zip` - FreeBSD ARM 64-bit
129131

130132
Don't forget to fix the rights `chmod +x go2rtc_xxx_xxx` on Linux and Mac.
131133

scripts/build.cmd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,13 @@ go build -ldflags "-s -w" -trimpath && 7z a -mx9 -sdel %FILENAME% go2rtc
6161
@SET GOARCH=arm64
6262
@SET FILENAME=go2rtc_mac_arm64.zip
6363
go build -ldflags "-s -w" -trimpath && 7z a -mx9 -sdel %FILENAME% go2rtc
64+
65+
@SET GOOS=freebsd
66+
@SET GOARCH=amd64
67+
@SET FILENAME=go2rtc_freebsd_amd64.zip
68+
go build -ldflags "-s -w" -trimpath && 7z a -mx9 -sdel %FILENAME% go2rtc
69+
70+
@SET GOOS=freebsd
71+
@SET GOARCH=arm64
72+
@SET FILENAME=go2rtc_freebsd_arm64.zip
73+
go build -ldflags "-s -w" -trimpath && 7z a -mx9 -sdel %FILENAME% go2rtc

scripts/build.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,16 @@ go build -ldflags "-s -w" -trimpath && 7z a -mx9 -bso0 -sdel $FILENAME go2rtc
7979
export GOOS=darwin
8080
export GOARCH=arm64
8181
FILENAME="go2rtc_mac_arm64.zip"
82-
go build -ldflags "-s -w" -trimpath && 7z a -mx9 -bso0 -sdel $FILENAME go2rtc
82+
go build -ldflags "-s -w" -trimpath && 7z a -mx9 -bso0 -sdel $FILENAME go2rtc
83+
84+
# FreeBSD amd64
85+
export GOOS=freebsd
86+
export GOARCH=amd64
87+
FILENAME="go2rtc_freebsd_amd64.zip"
88+
go build -ldflags "-s -w" -trimpath && 7z a -mx9 -bso0 -sdel $FILENAME go2rtc
89+
90+
# FreeBSD arm64
91+
export GOOS=freebsd
92+
export GOARCH=arm64
93+
FILENAME="go2rtc_freebsd_arm64.zip"
94+
go build -ldflags "-s -w" -trimpath && 7z a -mx9 -bso0 -sdel $FILENAME go2rtc

0 commit comments

Comments
 (0)