Last active
February 18, 2022 16:32
-
-
Save n-peugnet/2baab135bfd3b9724b494535d59f3abf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt install default-jre pup wget | |
version=$(wget -q https://www.yworks.com/products/yed/release-notes -O- | pup '.section-top > div > p > a > span:first-of-type text{}') | |
zip=yEd-$version.zip | |
path=/opt/yed-$version | |
lapps=$HOME/.local/share/applications | |
wget -nv https://www.yworks.com/resources/yed/demo/$zip | |
sudo unzip $zip -d /opt/ | |
rm $zip | |
mkdir -p $lapps | |
echo "[Desktop Entry] | |
Encoding=UTF-8 | |
Name=yEd Graph Editor | |
Comment=Edit graphml files in yed | |
Exec=java -jar $path/yed.jar %u | |
Terminal=false | |
Type=Application | |
Icon=$path/icons/yicon32.png | |
Categories=Application;Office | |
StartupNotify=false | |
MimeType=application/xml; | |
NoDisplay=false" > $lapps/yed.desktop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment