From bcfc777d1576a13de543269932f6a94b5633c848 Mon Sep 17 00:00:00 2001 From: Andreas Burri Date: Sun, 6 Apr 2025 07:09:54 +0000 Subject: [PATCH] Feat: Add FreeBSD amd64 support --- src/Makefile | 2 +- src/mod/sshprox/embed.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Makefile b/src/Makefile index f2a8ae3..aa9b2c0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ # PLATFORMS := darwin/amd64 darwin/arm64 freebsd/amd64 linux/386 linux/amd64 linux/arm linux/arm64 linux/mipsle windows/386 windows/amd64 windows/arm windows/arm64 -PLATFORMS := linux/amd64 linux/386 linux/arm linux/arm64 linux/mipsle linux/riscv64 windows/amd64 +PLATFORMS := linux/amd64 linux/386 linux/arm linux/arm64 linux/mipsle linux/riscv64 windows/amd64 freebsd/amd64 temp = $(subst /, ,$@) os = $(word 1, $(temp)) arch = $(word 2, $(temp)) diff --git a/src/mod/sshprox/embed.go b/src/mod/sshprox/embed.go index 23336de..4c5fe2d 100644 --- a/src/mod/sshprox/embed.go +++ b/src/mod/sshprox/embed.go @@ -1,12 +1,12 @@ -//go:build (windows && amd64) || (linux && mipsle) || (linux && riscv64) -// +build windows,amd64 linux,mipsle linux,riscv64 +//go:build (windows && amd64) || (linux && mipsle) || (linux && riscv64) || (freebsd && amd64) +// +build windows,amd64 linux,mipsle linux,riscv64 freebsd,amd64 package sshprox import "embed" /* - Bianry embedding + Binary embedding Make sure when compile, gotty binary exists in static.gotty */