diff --git a/core/tabs/applications-setup/Developer-tools/lapce.sh b/core/tabs/applications-setup/Developer-tools/lapce.sh new file mode 100644 index 00000000..861fb4f0 --- /dev/null +++ b/core/tabs/applications-setup/Developer-tools/lapce.sh @@ -0,0 +1,25 @@ +#!/bin/sh -e + +. ../../common-script.sh + +installLapce() { + if ! command_exists lapce; then + printf "%b\n" "${YELLOW}Installing Lapce...${RC}" + case "$PACKAGER" in + pacman) + "$AUR_HELPER" -S --needed --noconfirm lapce + ;; + *) + . ../setup-flatpak.sh + flatpak install flathub dev.lapce.lapce + ;; + esac + else + printf "%b\n" "${GREEN}Lapce is already installed.${RC}" + fi +} + +checkEnv +checkEscalationTool +checkAURHelper +installLapce diff --git a/core/tabs/applications-setup/tab_data.toml b/core/tabs/applications-setup/tab_data.toml index 752163a9..5a56d47a 100644 --- a/core/tabs/applications-setup/tab_data.toml +++ b/core/tabs/applications-setup/tab_data.toml @@ -27,6 +27,12 @@ description = "Visual Studio Code (VS Code) is a lightweight, open-source code e script = "Developer-tools/vscode-setup.sh" task_list = "I" +[[data.entries]] +name = "Lapce" +description = "Lapce is an open source code editor written in Rust." +script = "Developer-tools/lapce.sh" +task_list = "FI" + [[data.entries]] name = "VS Codium" description = "VSCodium is a free, open-source version of Visual Studio Code (VS Code) that removes Microsoft-specific telemetry and branding."