diff --git a/apps/Node.js/credits b/apps/Node.js/credits new file mode 100644 index 0000000..e0b9bc3 --- /dev/null +++ b/apps/Node.js/credits @@ -0,0 +1,2 @@ +script by ilobilo +script improved by Itai-Nelken diff --git a/apps/Node.js/description b/apps/Node.js/description new file mode 100644 index 0000000..d66ff2d --- /dev/null +++ b/apps/Node.js/description @@ -0,0 +1,2 @@ +JavaScript code outside a web browser. +Node.js is used for all npm packages and is the foundation of Electron. As usual, this app will keep it updated. diff --git a/apps/Node.js/icon-24.png b/apps/Node.js/icon-24.png new file mode 100644 index 0000000..4ee7196 Binary files /dev/null and b/apps/Node.js/icon-24.png differ diff --git a/apps/Node.js/icon-64.png b/apps/Node.js/icon-64.png new file mode 100644 index 0000000..5c503e2 Binary files /dev/null and b/apps/Node.js/icon-64.png differ diff --git a/apps/Node.js/install b/apps/Node.js/install new file mode 100755 index 0000000..0e4c86e --- /dev/null +++ b/apps/Node.js/install @@ -0,0 +1,21 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +#Checking if using armv6 +if [ ! -z "$(cat /proc/cpuinfo | grep ARMv6)" ];then + error "armv6 cpu not supported" +fi + +"${DIRECTORY}/pkg-install" "curl" "$(dirname "$0")" || exit 1 + +#Add NodeSource repo: +curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash - || error "Failed to add Nodesource repo!" + +#Install NodeJS: +sudo apt install nodejs -y || error "Failed to install Node.JS" diff --git a/apps/Node.js/uninstall b/apps/Node.js/uninstall new file mode 100755 index 0000000..e3b5982 --- /dev/null +++ b/apps/Node.js/uninstall @@ -0,0 +1,18 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +#Uninstall NodeJS +sudo apt purge nodejs -y || error "Failed to purge Node.JS!" +sudo apt autoremove -y #who cares if this fails? + +#remove /etc/apt/sources.list.d/nodesource.list +sudo rm /etc/apt/sources.list.d/nodesource.list || error "Failed to remove nodesource repo!" + +#if your app installs any packages, keep this command here so those packages will be removed. +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 \ No newline at end of file diff --git a/apps/Node.js/website b/apps/Node.js/website new file mode 100644 index 0000000..5526cb2 --- /dev/null +++ b/apps/Node.js/website @@ -0,0 +1 @@ +https://nodesource.com/ diff --git a/data/categories/structure b/data/categories/structure index 7917810..d16bfc8 100644 --- a/data/categories/structure +++ b/data/categories/structure @@ -17,6 +17,7 @@ Conky|Eyecandy Cool Retro Term|Eyecandy Cura|Editors Discord|Internet +Doom 3|hidden Eagle CAD|Editors eDEX-UI|Eyecandy Email Checker|Internet @@ -31,6 +32,7 @@ Minecraft Bedrock|Games Minecraft Java|Games Minecraft Pi (Modded)|Games Mission Planner|Tools +Node.js|Internet OBS Studio|Tools PiGro|Tools piKiss|Tools @@ -70,4 +72,3 @@ Wine (x86)|Tools WPS Office|Editors YouTubuddy|Internet Zoom|Internet -Doom 3|hidden