Skip to content

Commit 431df8b

Browse files
committed
Add vscode enable/disable
1 parent 06ad1a5 commit 431df8b

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
run0 sh -c '
6+
rm -rf /opt/VSCode-linux-x64
7+
rm /usr/local/bin/code
8+
rm /usr/local/share/applications/vscode.desktop
9+
'
10+
11+
echo "****************************************"
12+
echo "--Complete--"
13+
echo "VSCode has been removed from the system!"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
curl -Lo /tmp/vscode.tar.gz 'https://code.visualstudio.com/sha/download?build=stable&os=linux-x64'
6+
tar -xzf /tmp/vscode.tar.gz
7+
rm /tmp/vscode.tar.gz
8+
9+
run0 sh -c '
10+
mv VSCode-linux-x64 /opt/
11+
ln -sf /opt/VSCode-linux-x64/bin/code /usr/local/bin/
12+
ln -sf /usr/share/heliumos/feature/vscode/vscode.desktop /usr/local/share/applications/
13+
'
14+
15+
echo "****************************************"
16+
echo "--Complete--"
17+
echo "Run 'code' or check the Application Launcher to start VSCode!"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[Desktop Entry]
2+
Comment=Visual Studio Code
3+
Exec=code
4+
GenericName=Text Editor
5+
Icon=/opt/VSCode-linux-x64/resources/app/resources/linux/code.png
6+
Name=VSCode
7+
NoDisplay=false
8+
Path=
9+
StartupNotify=true
10+
Terminal=false
11+
TerminalOptions=
12+
Type=Application
13+
X-KDE-SubstituteUID=false
14+
X-KDE-Username=

0 commit comments

Comments
 (0)