first commit

This commit is contained in:
julien
2026-03-15 19:58:46 +01:00
commit bbc4e4da65
32 changed files with 1854 additions and 0 deletions

28
roles/codium/repo.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
source "$PROJECT_DIR/lib.sh"
enable_strict_mode
cat <<'EOM'
=> VSCodium
EOM
KEYRING_DIR="/etc/apt/keyrings"
KEYRING="$KEYRING_DIR/vscodium-archive-keyring.gpg"
KEY_URL="https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg"
SRC_FILE="/etc/apt/sources.list.d/vscodium.sources"
VSCODIUM_URI="https://download.vscodium.com/debs"
ARCH_CUR=$(dpkg --print-architecture 2>/dev/null || true)
ARCH_CUR=${ARCH_CUR:-amd64}
read -r -d '' VSCODIUM_SOURCES_CONTENT <<EOM || true
Types: deb
URIs: $VSCODIUM_URI
Suites: vscodium
Components: main
Architectures: $ARCH_CUR
Signed-By: $KEYRING
EOM
install_apt_repo "$KEY_URL" "$KEYRING" "$VSCODIUM_SOURCES_CONTENT" "$SRC_FILE" codium