diff --git a/apps/Scratch 2/credits b/apps/Scratch 2/credits new file mode 100644 index 0000000..729fb33 --- /dev/null +++ b/apps/Scratch 2/credits @@ -0,0 +1 @@ +Botspot diff --git a/apps/Scratch 2/description b/apps/Scratch 2/description new file mode 100644 index 0000000..1c76cc1 --- /dev/null +++ b/apps/Scratch 2/description @@ -0,0 +1,4 @@ +Scratch 2 was removed from RPiOS in January. Install it back with this app! +Scratch 2 is significantly faster than Scratch 3. It uses far less CPU, and generally will run better than Scratch 3 on older Pies. +To run: Menu -> Programming -> Scratch 2. +To run in a terminal: scratch2 diff --git a/apps/Scratch 2/icon-24.png b/apps/Scratch 2/icon-24.png new file mode 100644 index 0000000..2cef1c9 Binary files /dev/null and b/apps/Scratch 2/icon-24.png differ diff --git a/apps/Scratch 2/icon-64.png b/apps/Scratch 2/icon-64.png new file mode 100644 index 0000000..20a8a89 Binary files /dev/null and b/apps/Scratch 2/icon-64.png differ diff --git a/apps/Scratch 2/install-32 b/apps/Scratch 2/install-32 new file mode 100755 index 0000000..0f53ad0 --- /dev/null +++ b/apps/Scratch 2/install-32 @@ -0,0 +1,19 @@ +#!/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 +} + +rm -rf ~/scratch2 +git clone https://github.com/Botspot/scratch2 || error "Failed to clone repository!" + +echo "Copying libpepflashplayer.so to /usr/lib/chromium-browser..." +sudo cp -af ~/scratch2/libpepflashplayer.so /usr/lib/chromium-browser/libpepflashplayer.so || error "Failed to copy libpepflashplayer.so" + +echo "Installing scratch2 package..." +sudo apt install -yf ~/scratch2/scratch2_0.25_armhf.deb || error "Failed to install scratch2 package" + +rm -rf ~/scratch2 diff --git a/apps/Scratch 2/uninstall b/apps/Scratch 2/uninstall new file mode 100755 index 0000000..143f461 --- /dev/null +++ b/apps/Scratch 2/uninstall @@ -0,0 +1,10 @@ +#!/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 +} + +sudo apt purge scratch2 -y || error "Failed to uninstall scratch2 package" diff --git a/data/categories/structure b/data/categories/structure index 154b3c2..a93ef46 100644 --- a/data/categories/structure +++ b/data/categories/structure @@ -61,6 +61,7 @@ QEMU|Tools Raspi2png|Tools Remarkable|Editors RPi-Play|Tools +Scratch 2|Editors Scrcpy|Tools Snapdrop|Tools Snap Store|Tools