scratch 2: use pkg-install

pull/936/head
Botspot 4 years ago
parent 1100124168
commit ec33d508b2

@ -14,7 +14,7 @@ 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"
"${DIRECTORY}/pkg-install" "$HOME/scratch2/scratch2_0.25_armhf.deb" "$(dirname "$0")" || error "Failed to install scratch2 package"
echo "Holding scratch2 package version so it won't upgrade..."
echo "scratch2 hold" | sudo dpkg --set-selections

@ -10,4 +10,4 @@ function error {
echo "Allowing scratch2 package to be uninstallable..."
echo "scratch2 install" | sudo dpkg --set-selections
sudo apt purge scratch2 -y || error "Failed to uninstall scratch2 package"
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || error "Failed to uninstall scratch2 package"

Loading…
Cancel
Save