piskelapp / piskel

A simple web-based tool for Spriting and Pixel art.
http://piskelapp.com
Apache License 2.0
11.19k stars 783 forks source link

[Suggestion] make offline version installation more convenient on Linux #1062

Open pythonian23 opened 2 years ago

pythonian23 commented 2 years ago

I composed two .sh files for easy installment and uninstallment of Piskel, along with a .desktop file for easy access. If these were included in the linux download, installing Piskel would be much more convenient.

install.sh

sudo cp -r ./ /usr/share/piskel/
cd /usr/share/piskel

sudo ln -s /usr/share/piskel/piskel /usr/bin/piskel
sudo wget https://www.piskelapp.com/static/resources/favicon.png && sudo ln -s /usr/share/piskel/favicon.png /usr/share/icons/piskel.png
sudo cp /usr/share/piskel/piskel.desktop /usr/share/applications/piskel.desktop

uninstall.sh

sudo rm /usr/bin/piskel
sudo rm /usr/share/icons/piskel.png
sudo rm /usr/share/applications/piskel.desktop

sudo cd ~/
sudo rm /usr/share/piskel/ -r

piskel.desktop

sudo rm /usr/bin/piskel
sudo rm /usr/share/icons/piskel.png
sudo rm /usr/share/applications/piskel.desktop

sudo cd ~/
sudo rm /usr/share/piskel/ -r
pythonian23 commented 2 years ago

zip file with changes included