Add Scratch 2 app

pull/569/head
Botspot 5 years ago
parent 9db949aed2
commit d9847af9fd

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

@ -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

@ -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"

@ -61,6 +61,7 @@ QEMU|Tools
Raspi2png|Tools
Remarkable|Editors
RPi-Play|Tools
Scratch 2|Editors
Scrcpy|Tools
Snapdrop|Tools
Snap Store|Tools

Loading…
Cancel
Save