Alex X 2311d5eabe Change go version to 1.20 for Windows 7 support 1 月之前
..
README.md 2311d5eabe Change go version to 1.20 for Windows 7 support 1 月之前
build.cmd 2311d5eabe Change go version to 1.20 for Windows 7 support 1 月之前
build.sh 5d9c254282 feat(build): add multi-platform build script for go2rtc 5 月之前

README.md

Versions

Go 1.20 is last version with support Windows 7 and macOS 10.13. Go 1.21 support only Windows 10 and macOS 10.15.

So we will set go 1.20 (minimum version) inside go.mod file. And will use env GOTOOLCHAIN=go1.20.14 for building win32 and mac_amd64 binaries. All other binaries will use latest go version.

Build

  • UPX-3.96 pack broken bin for linux_mipsel
  • UPX-3.95 pack broken bin for mac_amd64
  • UPX pack broken bin for mac_arm64
  • UPX windows pack is recognised by anti-viruses as malicious
  • aarch64 = arm64
  • armv7 = arm

Go

go get -u
go mod tidy
go mod why github.com/pion/rtcp
go list -deps .\cmd\go2rtc_rtsp\
./goweight

Dependencies

- gopkg.in/yaml.v3
  - github.com/kr/pretty
- github.com/AlexxIT/go2rtc/pkg/hap
  - github.com/tadglines/go-pkgs
  - golang.org/x/crypto
- github.com/AlexxIT/go2rtc/pkg/mdns
  - github.com/miekg/dns
- github.com/AlexxIT/go2rtc/pkg/pcm
  - github.com/sigurn/crc16
  - github.com/sigurn/crc8
- github.com/pion/ice/v2
  - github.com/google/uuid
- github.com/rs/zerolog
  - github.com/mattn/go-colorable
  - github.com/mattn/go-isatty
- github.com/stretchr/testify
  - github.com/davecgh/go-spew
  - github.com/pmezard/go-difflib
- ???
  - golang.org/x/mod
  - golang.org/x/net
  - golang.org/x/sys
  - golang.org/x/tools

Virus

Useful links