Created
December 22, 2023 18:49
-
-
Save Hermanoid/aa2910fb1c2538199eeb0c0388971914 to your computer and use it in GitHub Desktop.
Bounce vscode to offline robot (Windows machine->Linux robot)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo off | |
echo Install vscode (offline) on %1 | |
echo Downloading Latest Vscode.... | |
if not exist vscode-server-linux-x64.tar.gz curl -sSL "https://update.code.visualstudio.com/latest/server-linux-x64/stable" -o vscode-server-linux-x64.tar.gz | |
echo Please switch to robot network | |
pause | |
echo Copying server | |
scp vscode-server-linux-x64.tar.gz %1:vscode-server-linux-x64.tar.gz | |
echo Installing server | |
ssh %1 "mkdir -p ~/.vscode-server/bin/latest && tar zxf vscode-server-linux-x64.tar.gz -C ~/.vscode-server/bin/latest --strip 1 && touch ~/.vscode-server/bin/latest/0 && rm vscode-server-linux-x64.tar.gz" | |
echo Done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Disclaimer, vscode doesn't seem to recognize that it has been installed. I'm missing an installation step, I think.