Skip to content

Commit 62ebf41

Browse files
Download Tailscale arm64 binaries on arm64 hosts (#39)
1 parent 0ede9e3 commit 62ebf41

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/tailscale/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Tailscale",
33
"id": "tailscale",
4-
"version": "1.0.6",
4+
"version": "1.0.7",
55
"description": "Connect to your tailnet in your development container",
66
"documentationURL": "https://tailscale.com/kb/1160/github-codespaces/",
77
"licenseURL": "https://github.com/tailscale/codespace/blob/main/LICENSE",

src/tailscale/install.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@
55

66
set -euo pipefail
77

8-
tailscale_url="https://pkgs.tailscale.com/stable/tailscale_${VERSION}_amd64.tgz"
8+
platform=$(uname -m)
9+
if [ "$platform" = "x86_64" ]; then
10+
tailscale_url="https://pkgs.tailscale.com/stable/tailscale_${VERSION}_amd64.tgz"
11+
elif [ "$platform" = "aarch64" ] || [ "$platform" = "arm64" ]; then
12+
tailscale_url="https://pkgs.tailscale.com/stable/tailscale_${VERSION}_arm64.tgz"
13+
else
14+
echo "Unsupported platform: $platform"
15+
exit 1
16+
fi
917

1018
download() {
1119
if command -v curl &> /dev/null; then

0 commit comments

Comments
 (0)