mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-30 04:52:49 +00:00

So the public can "brew install" tailscale and start it as a global boot daemon via brew services. supported: Homebrew 3.0, go1.15 darwin/amd64, macOS Catalina 10.15.3, Intel 64-bit probably also but unconfirmed: BigSur 11 and Apple M1 ARM64 NOTE: lots of upgrades and polish since 1st squashed WIP PR, and applies most prior feedback Part of #177. (WIP) Signed-off-by: Mike Kramlich <groglogic@gmail.com>
24 lines
659 B
Bash
Executable File
24 lines
659 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -eu
|
|
|
|
# TODO(mkramlich): elim redundancy with or otherwise maybe take advantage of version/version.sh
|
|
|
|
BREW=`brew --prefix` # because varies; /usr/local on Intel, /opt/homebrew on ARM64/M1/AppleSilicon
|
|
|
|
# TODO(mkramlich): Cellar
|
|
|
|
cat <<EOF
|
|
TS_VER=1.5.0
|
|
TS_COMMIT_PIN=188bb142691c8b97673a9cb2aebd9f1521e9bb12
|
|
TS_BIN=$BREW/bin
|
|
TS_SOCK=$BREW/var/run/tailscale/tailscaled.sock
|
|
TS_STATE=$BREW/var/lib/tailscale/tailscaled.state
|
|
TS_LOG_DIR=$BREW/var/log/tailscale
|
|
TS_CELLAR=$BREW/Cellar/tailscale
|
|
TS_PLIST=homebrew.mxcl.tailscale.plist
|
|
TS_TARBALL_PORT=8901
|
|
TS_FORMULA=brew/tailscale.rb
|
|
BREW=$BREW
|
|
INSTALLED_PLIST_DIR=/Library/LaunchDaemons
|
|
EOF
|