mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-19 15:19:55 +00:00
Exclude VNC server from js, ios, and android builds
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//go:build !js && !ios && !android
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user