Add Visual Studio Code app
parent
1586bd8f23
commit
03627d98ef
@ -0,0 +1,3 @@
|
||||
Visual Studio Code is a free source-code editor made by Microsoft.
|
||||
Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git
|
||||
It supports most popular coding languages including Python, JavaScript, and more.
|
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||
|
||||
function error {
|
||||
echo -e "\\e[91m$1\\e[39m"
|
||||
exit 1
|
||||
}
|
||||
|
||||
cd ~/Downloads
|
||||
|
||||
arch=''
|
||||
|
||||
while [ "$arch" != 'armhf' ] && [ "$arch" != 'arm64' ]
|
||||
do
|
||||
echo -n "Which type of Visual Studio Code do you want? [armhf/arm64] "
|
||||
arch=''
|
||||
read arch
|
||||
if [ "$arch" != 'armhf' ] && [ "$arch" != 'arm64' ];then
|
||||
echo -e "\\e[91mDid not understand '$arch'. Try again.\\e[39m"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$arch" == 'armhf' ];then
|
||||
wget https://aka.ms/linux-armhf-deb || error 'Failed to download linux-armhf-deb!'
|
||||
sudo dpkg -i linux-armhf-deb || error 'Failed to install linux-armhf-deb!'
|
||||
rm -f linux-armhf-deb
|
||||
cd
|
||||
elif [ "$arch" == 'arm64' ];then
|
||||
wget https://aka.ms/linux-arm64-deb || error 'Failed to download linux-arm64-deb!'
|
||||
sudo dpkg -i linux-arm64-deb || error 'Failed to install linux-arm64-deb!'
|
||||
rm -f linux-arm64-deb
|
||||
cd
|
||||
fi
|
||||
|
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||
|
||||
function error {
|
||||
echo -e "\\e[91m$1\\e[39m"
|
||||
exit 1
|
||||
}
|
||||
|
||||
#if your app installs any packages, keep this command here so those packages will be removed.
|
||||
sudo apt purge code -y
|
@ -0,0 +1 @@
|
||||
https://code.visualstudio.com/
|
Loading…
Reference in New Issue