Merge branch 'bugfix/KASM-3073_1.9.0_fix' into 'release/1.9.0'

KASM-3073 Add a proper version sort

See merge request kasm-technologies/internal/workspaces-images!79
This commit is contained in:
Richard Koliser 2022-08-16 17:01:48 +00:00
commit 4578cf6364
2 changed files with 10 additions and 2 deletions

View File

@ -5,7 +5,7 @@ CHROME_ARGS="--password-store=basic --no-sandbox --disable-gpu --user-data-dir -
apt-get update
EDGE_BUILD=$(curl -q https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/ | grep href | grep .deb | sed 's/.*href="//g' | cut -d '"' -f1 | tail -1)
EDGE_BUILD=$(curl -q https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/ | grep href | grep .deb | sed 's/.*href="//g' | cut -d '"' -f1 | sort --version-sort | tail -1)
wget -q -O edge.deb https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/$EDGE_BUILD
apt-get install -y ./edge.deb

View File

@ -1,7 +1,8 @@
#!/usr/bin/env bash
set -ex
wget -q https://update.code.visualstudio.com/latest/linux-deb-x64/stable -O vs_code_amd64.deb
dpkg -i vs_code_amd64.deb
apt-get update
apt-get install -y ./vs_code_amd64.deb
sed -i 's#/usr/share/code/code#/usr/share/code/code --no-sandbox##' /usr/share/applications/code.desktop
cp /usr/share/applications/code.desktop $HOME/Desktop
chmod +x $HOME/Desktop/code.desktop
@ -14,3 +15,10 @@ apt-get install -y python3-setuptools \
python3-venv \
python3-virtualenv \
maximus
# Cleanup
apt-get autoclean
rm -rf \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*