-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvscodium.bash
executable file
·43 lines (35 loc) · 1.63 KB
/
vscodium.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# Note: VS Codium is an open source licenced version of VS code
# that has all of the MS telemetry stripped out of it.
# Better for privacy and seems more stable running in docker than VS Code.
# Approach from:
# https://vscodium.com/#install
# NOTE: Newest versions of codium have broken the ability to install
# extensions in an image of a different architecture. For example,
# it will not install extensions into the amd64 images when building
# on an arm64 or vice versa...
#
# So this appraoch has been commented out in hopes that it will again
# work with yet newer versions of codium in the future.
#
# The approach below explicitly installs a specific version of codium
# that does not suffer from this issue.
#wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \
# | gpg --dearmor \
# | dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
#echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main' \
# | tee /etc/apt/sources.list.d/vscodium.list
#apt update
#apt install -y codium
# Download and install a specific version of codium.
ARCH=$(dpkg --print-architecture)
#VER="1.82.0.23250" # Does not work.
#VER="1.78.2.23132" # Does not work.
VER="1.77.3.23102" # Works
DEB="codium_"$VER"_"$ARCH".deb"
URL="https://github.com/VSCodium/vscodium/releases/download/"$VER"/"$DEB
wget $URL
apt install -y ./$DEB
rm ./$DEB
# Patch the xfce menu item for VS Codium so it runs correctly.
sed -i 's+/usr/share/codium/codium+/usr/bin/codium --no-sandbox+g' /usr/share/applications/codium.desktop