diff --git a/.gitignore b/.gitignore index 72fcb3190..bea5627bc 100644 --- a/.gitignore +++ b/.gitignore @@ -38,7 +38,7 @@ cmd/tailscaled/tailscaled # Ignore web client node modules .vite/ client/web/node_modules -client/web/build +client/web/build/assets /gocross /dist diff --git a/README.md b/README.md index 0eae44624..ea96006a7 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,17 @@ If your distro has conventions that preclude the use of `build_dist.sh`, please do the equivalent of what it does in your distro's way, so that bug reports contain useful version information. +## Building the web client + +To include the embedded web client (accessed via the `tailscale web` command), +you'll need to build the client assets using: + +``` +./tool/yarn --cwd client/web build +``` + +Do this before building the `tailscale.com/cmd/tailscale` binary. + ## Bugs Please file any issues about this code or the hosted service on diff --git a/build_dist.sh b/build_dist.sh index 0c757c26d..e77d7315a 100755 --- a/build_dist.sh +++ b/build_dist.sh @@ -5,6 +5,9 @@ # information into the binaries, so that we can track down user # issues. # +# To include the embedded web client, build the web client assets +# before running this script. See README.md for details. +# # If you're packaging Tailscale for a distro, please consider using # this script, or executing equivalent commands in your # distro-specific build system. diff --git a/client/web/build/index.html b/client/web/build/index.html new file mode 100644 index 000000000..80838dc16 --- /dev/null +++ b/client/web/build/index.html @@ -0,0 +1,28 @@ + + +
+