Skip to content

Instantly share code, notes, and snippets.

@n-peugnet
Last active February 18, 2022 16:32
Show Gist options
  • Save n-peugnet/2baab135bfd3b9724b494535d59f3abf to your computer and use it in GitHub Desktop.
Save n-peugnet/2baab135bfd3b9724b494535d59f3abf to your computer and use it in GitHub Desktop.
#!/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