mirror of
https://github.com/tailscale/tailscale.git
synced 2026-05-06 12:46:20 +02:00
When --vmtest-web is set, Host.app is launched with --screenshot-port 0
to start a localhost HTTP server that captures the VZVirtualMachineView
display. The Go test harness parses the SCREENSHOT_PORT=<port> line from
stdout, then polls every 2 seconds for JPEG thumbnails and pushes them
over WebSocket to the web dashboard.
Clicking a screenshot thumbnail opens a full-resolution image proxied
through the web UI's /screenshot/{node} endpoint.
Screenshot events are excluded from the EventBus history (they're large
and only the latest matters, stored in NodeStatus.Screenshot).
Updates #13038
Change-Id: I9bc67ddd1cc72948b33c555d4be3d8db06a41f6d
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
24 lines
679 B
Makefile
24 lines
679 B
Makefile
XCPRETTIFIER := xcpretty
|
|
ifeq (, $(shell which $(XCPRETTIFIER)))
|
|
XCPRETTIFIER := cat
|
|
endif
|
|
|
|
.PHONY: tailmac
|
|
tailmac:
|
|
set -o pipefail && xcodebuild -scheme tailmac -destination 'platform=macOS,arch=arm64' -derivedDataPath build -configuration Release build | $(XCPRETTIFIER)
|
|
cp -r ./build/Build/Products/Release/tailmac ./bin/tailmac
|
|
|
|
.PHONY: host
|
|
host:
|
|
set -o pipefail && xcodebuild -scheme host -destination 'platform=macOS,arch=arm64' -derivedDataPath build -configuration Release build | $(XCPRETTIFIER)
|
|
cp -r ./build/Build/Products/Release/Host.app ./bin/Host.app
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf ./bin
|
|
rm -rf ./build
|
|
mkdir -p ./bin
|
|
|
|
.PHONY: all
|
|
all: clean tailmac host
|