mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-02-24 09:57:03 +00:00
* feat: Add zed editor -> developer tools * Rename dir Developer-tools -> developer-tools * Rename files from application-setup.sh -> application.sh The purpose of all files inside the directory is to setup an application no need to mention it in the file name * Revert userguide.md zed * docs: new repo (#888) * Removes docs and mentions on readme * Update README.md * Update README.md Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * Update linutil.yml * Delete xtask.yml * Update preview.yml * Update README.md --------- Co-authored-by: Chris Titus <contact@christitus.com> Co-authored-by: Adam Perkowski <adas1per@protonmail.com> * fix(create-bootable-usb.sh) confirmation prompt (#902) * fix create-bootable-usb.sh confirmation prompt * Update core/tabs/utils/create-bootable-usb.sh Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com> --------- Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com> * fix (ci): preview workflow (#905) * fix: binary download, invalid action inputs * Update preview.yml --------- Co-authored-by: Real-MullaC <callumjanes2007new+github@gmail.com> Co-authored-by: Chris Titus <contact@christitus.com> Co-authored-by: Adam Perkowski <adas1per@protonmail.com> Co-authored-by: Lennart Pieperjohanns <95208734+lennartpj@users.noreply.github.com> Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com>
48 lines
2.5 KiB
Bash
48 lines
2.5 KiB
Bash
#!/bin/sh -e
|
|
|
|
. ../../common-script.sh
|
|
|
|
installVsCodium() {
|
|
if ! command_exists com.vscodium.codium && ! command_exists codium; then
|
|
printf "%b\n" "${YELLOW}Installing VS Codium...${RC}"
|
|
case "$PACKAGER" in
|
|
apt-get|nala)
|
|
curl -fsSL https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | "$ESCALATION_TOOL" 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' | "$ESCALATION_TOOL" tee /etc/apt/sources.list.d/vscodium.list
|
|
"$ESCALATION_TOOL" "$PACKAGER" update
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y codium
|
|
;;
|
|
zypper)
|
|
"$ESCALATION_TOOL" rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
|
|
printf "%b\n" "[gitlab.com_paulcarroty_vscodium_repo]\nname=gitlab.com_paulcarroty_vscodium_repo\nbaseurl=https://download.vscodium.com/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg\nmetadata_expire=1h" | "$ESCALATION_TOOL" tee -a /etc/zypp/repos.d/vscodium.repo
|
|
"$ESCALATION_TOOL" "$PACKAGER" refresh
|
|
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install codium
|
|
;;
|
|
pacman)
|
|
"$AUR_HELPER" -S --noconfirm vscodium-bin
|
|
;;
|
|
dnf)
|
|
"$ESCALATION_TOOL" rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
|
|
printf "%b\n" "[gitlab.com_paulcarroty_vscodium_repo]\nname=download.vscodium.com\nbaseurl=https://download.vscodium.com/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg\nmetadata_expire=1h" | "$ESCALATION_TOOL" tee -a /etc/yum.repos.d/vscodium.repo
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y codium
|
|
;;
|
|
apk)
|
|
checkFlatpak
|
|
flatpak install -y flathub com.vscodium.codium
|
|
;;
|
|
*)
|
|
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
else
|
|
printf "%b\n" "${GREEN}VS Codium is already installed.${RC}"
|
|
fi
|
|
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
checkAURHelper
|
|
installVsCodium
|