Exclude VNC server from js, ios, and android builds

This commit is contained in:
Viktor Liu
2026-05-17 09:48:06 +02:00
parent 4f884d9f30
commit da37a28951
23 changed files with 46 additions and 35 deletions

View File

@@ -1,3 +1,5 @@
//go:build !js && !ios && !android
package internal
import (

View File

@@ -1,13 +1,15 @@
//go:build (!windows && !darwin && !freebsd && !(linux && !android)) || (darwin && ios)
//go:build js || ios || android
package internal
import vncserver "github.com/netbirdio/netbird/client/vnc/server"
import (
mgmProto "github.com/netbirdio/netbird/shared/management/proto"
)
func newPlatformVNC() (vncserver.ScreenCapturer, vncserver.InputInjector, bool) {
return nil, nil, false
}
type vncServer interface{}
func vncNeedsServiceMode() bool {
return false
}
func (e *Engine) updateVNC(_ *mgmProto.SSHConfig) error { return nil }
func (e *Engine) updateVNCServerAuth(_ *mgmProto.VNCAuth) {}
func (e *Engine) stopVNCServer() error { return nil }