Skip to content

Commit

Permalink
use alternative vscode cli download links
Browse files Browse the repository at this point in the history
  • Loading branch information
fawazahmed0 committed Oct 8, 2024
1 parent 90cf523 commit b86399d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ runs:
shell: bash
run: |
urlpart=`node -e "console.log(process.arch)"`
curl -Lk "https://code.visualstudio.com/sha/download?build=stable&os=cli-win32-$urlpart" --output code.zip
curl -Lk "https://update.code.visualstudio.com/latest/cli-win32-$urlpart/stable" --output code.zip
7z x -y code.zip
mv code.exe ..
rm -rf code.zip
Expand All @@ -39,8 +39,8 @@ runs:
sudo apt install -y ./cloudflared-linux-`dpkg --print-architecture`.deb
rm ./cloudflared-linux-`dpkg --print-architecture`.deb
urlpart=`node -e "process.arch == 'arm' ? console.log('linux-armhf') : console.log('alpine-'+process.arch)"`
curl -Lk "https://code.visualstudio.com/sha/download?build=stable&os=cli-$urlpart" --output code.tar.gz
urlpart=`node -e "process.arch == 'arm' ? console.log('armhf') : console.log(process.arch)"`
curl -Lk "https://update.code.visualstudio.com/latest/cli-linux-$urlpart/stable" --output code.tar.gz
tar -xvzf code.tar.gz -C ../
rm -rf code.tar.gz
chmod 777 ../code
Expand All @@ -57,7 +57,7 @@ runs:
chmod 777 ../cloudflared
urlpart=`node -e "console.log(process.arch)"`
curl -Lk "https://code.visualstudio.com/sha/download?build=stable&os=cli-darwin-$urlpart" --output code.zip
curl -Lk "https://update.code.visualstudio.com/latest/cli-darwin-$urlpart/stable" --output code.zip
7z x -y code.zip
mv code ..
rm -rf code.zip
Expand Down

0 comments on commit b86399d

Please sign in to comment.