Add Snap Store app

pull/239/head
Botspot 4 years ago
parent 46f5492733
commit 67624edaa8

@ -0,0 +1,2 @@
Installation script and made by RPICoder

@ -0,0 +1 @@
Snaps are app packages for desktop, cloud and IoT that are easy to install, secure, crossplatform and dependencyfree. Snaps are discoverable and installable from the Snap Store, the app store for Linux with an audience of millions.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

@ -0,0 +1,20 @@
#!/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
}
# Get dependencies
"${DIRECTORY}/pkg-install" "snapd" "$(dirname "$0")" || exit 1
sudo systemctl enable --now snapd.socket || error "Unable to enable snapd.socket"
sudo ln -s /var/lib/snapd/snap /snap || error "unable to create symbolic link between /var/lib/snapd/snap and /snap"
sudo snap install core || error "Unable to install core"
sudo snap install snap-store || error "Unable to install snap store"
sudo rm -rf /usr/share/applications/snap
ln -s /var/lib/snapd/desktop/applications /usr/share/applications/snap || sudo ln -s /var/lib/snapd/desktop/applications /usr/share/applications/snap || error "Failed to create symlink for Snap app shortcuts!"

@ -0,0 +1,15 @@
#!/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 snap remove snap-store || error "Unable to uninstall snap store"
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
if ! [ -d /snap ];then
rm -f /usr/share/applications/snap
fi

@ -0,0 +1 @@
https://snapcraft.io/store
Loading…
Cancel
Save