Skip to content

Commit

Permalink
wkdev-setup-vscode: Support aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
TingPing committed Jul 15, 2024
1 parent 5280819 commit 4b55ed1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/container-only/wkdev-setup-vscode
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ install_vscode() {
return
fi

if ! curl --silent --fail --location "https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64" -o /tmp/code.deb; then
local download_url='https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64'

if [ "$(uname -m)" = 'aarch64' ]; then
download_url='https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-arm64'
fi

if ! curl --silent --fail --location "${download_url}" -o /tmp/code.deb; then
echo "Failed to download Visual Studio Code."
exit 1
fi
Expand Down

0 comments on commit 4b55ed1

Please sign in to comment.