--- Taskfile.yml.orig	2026-04-16 15:33:19 UTC
+++ Taskfile.yml
@@ -177,8 +177,8 @@ tasks:
             - task: build:server:linux
             - task: build:server:macos
             - task: build:server:windows
+            - task: build:server:freebsd
         deps:
-            - go:mod:tidy
             - generate
         sources:
             - "cmd/server/*.go"
@@ -263,6 +263,17 @@ tasks:
                   GO_ENV_VARS:
                       sh: echo "{{if eq "amd64" ARCH}}CC=\"zig cc -target x86_64-linux-gnu.2.28\"{{else}}CC=\"zig cc -target aarch64-linux-gnu.2.28\"{{end}}"
 
+    build:server:freebsd:
+        desc: Build the wavesrv component for FreeBSD platforms (only generates artifacts for the current architecture).
+        platforms: [freebsd]
+        cmds:
+            - cmd: "{{.RM}} dist/bin/wavesrv*"
+              ignore_error: true
+            - task: build:server:internal
+              vars:
+                  ARCHS:
+                      sh: echo {{if eq "arm" ARCH}}arm64{{else}}{{ARCH}}{{end}}
+
     build:server:internal:
         requires:
             vars:
@@ -286,7 +297,6 @@ tasks:
               ignore_error: true
             - task: build:wsh:parallel
         deps:
-            - go:mod:tidy
             - generate
         sources:
             - "cmd/wsh/**/*.go"
@@ -299,36 +309,8 @@ tasks:
         deps:
             - task: build:wsh:internal
               vars:
-                  GOOS: darwin
-                  GOARCH: arm64
-            - task: build:wsh:internal
-              vars:
-                  GOOS: darwin
+                  GOOS: freebsd
                   GOARCH: amd64
-            - task: build:wsh:internal
-              vars:
-                  GOOS: linux
-                  GOARCH: arm64
-            - task: build:wsh:internal
-              vars:
-                  GOOS: linux
-                  GOARCH: amd64
-            - task: build:wsh:internal
-              vars:
-                  GOOS: linux
-                  GOARCH: mips
-            - task: build:wsh:internal
-              vars:
-                  GOOS: linux
-                  GOARCH: mips64
-            - task: build:wsh:internal
-              vars:
-                  GOOS: windows
-                  GOARCH: amd64
-            - task: build:wsh:internal
-              vars:
-                  GOOS: windows
-                  GOARCH: arm64
         internal: true
 
     build:wsh:internal:
@@ -584,13 +566,13 @@ tasks:
         desc: Internal task to create scaffold directory structure (Unix)
         dir: tsunami/frontend
         internal: true
-        platforms: [darwin, linux]
+        platforms: [darwin, linux, freebsd]
         cmds:
             - cmd: "{{.RMRF}} scaffold"
               ignore_error: true
             - mkdir -p scaffold
             - cp ../templates/package.json.tmpl scaffold/package.json
-            - cd scaffold && npm install
+            - mv ../templates/node_modules scaffold
             - mv scaffold/node_modules scaffold/nm
             - cp -r dist scaffold/
             - mkdir -p scaffold/dist/tw
