From ff26cb159ca2420f331965e5ee88ded5ea091c0b Mon Sep 17 00:00:00 2001 From: hexisXz Date: Tue, 1 Oct 2024 22:36:55 +0000 Subject: [PATCH] added lapce IDE --- .../Developer-tools/lapce.sh | 25 +++++++++++++++++++ core/tabs/applications-setup/tab_data.toml | 6 +++++ 2 files changed, 31 insertions(+) create mode 100644 core/tabs/applications-setup/Developer-tools/lapce.sh 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."