Last active
October 22, 2024 04:45
-
-
Save svin24/4b27b6c7e39cc6db2cc26b0c61473972 to your computer and use it in GitHub Desktop.
Download vscodium and install (tar.gz linux)
This file contains hidden or 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
| #!/bin/bash | |
| # Variables | |
| VSCODIUM_DIR="$HOME/.local/vscodium" | |
| VSCODIUM_BIN="$HOME/.local/bin/codium" | |
| REPO_URL="https://github.com/VSCodium/vscodium/releases/latest" | |
| # you can also use arm64,armhf,riscv64 | |
| ARCH="x64" | |
| # Find the latest version | |
| echo "Fetching the latest VSCodium version..." | |
| LATEST_VERSION=$(curl -sL "$REPO_URL" | grep "Full Changelog" | grep -oP '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | tail -n 1) | |
| if [ -z "$LATEST_VERSION" ]; then | |
| echo "Error: Could not get the latest version." | |
| exit 1 | |
| fi | |
| # Construct URL | |
| DOWNLOAD_URL="https://github.com/VSCodium/vscodium/releases/download/$LATEST_VERSION/VSCodium-linux-$ARCH-$LATEST_VERSION.tar.gz" | |
| echo "Latest version is $LATEST_VERSION" | |
| echo "Downloading VSCodium from: $DOWNLOAD_URL" | |
| # Download and extract | |
| mkdir -p "$VSCODIUM_DIR" | |
| curl -L "$DOWNLOAD_URL" -o /tmp/vscodium.tar.gz | |
| echo "Extracting VSCodium..." | |
| tar -xzf /tmp/vscodium.tar.gz -C "$VSCODIUM_DIR" --strip-components=1 | |
| mkdir -p "$HOME/.local/bin" | |
| ln -sf "$VSCODIUM_DIR/bin/codium" "$VSCODIUM_BIN" | |
| echo "VSCodium has been installed and linked." | |
| echo "Run VSCodium with the command: vscodium" | |
| # Clean up | |
| rm /tmp/vscodium.tar.gz |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
does not do desktop files but typically that is something you set up once and forget.
Just copy the desktop files from here and edit them to suit your needs
https://github.com/VSCodium/vscodium/tree/5db0194218b8f140f1f5444b8dfcbacc641e0689/src/stable/resources/linux
the vscodium icon can be found under
~/.local/vscodium/resources/app/resources/linux/code.png