2022-05-15 08:05:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
DIR=$(dirname "$(readlink -f "$0")")
|
|
|
|
. "$DIR/../env.sh"
|
|
|
|
|
|
|
|
log 'Setting up drawio'
|
|
|
|
|
|
|
|
echo download AppImage from github and save to ~/.local/bin
|
|
|
|
xdg-open "https://github.com/jgraph/drawio-desktop/releases"
|
|
|
|
|
|
|
|
echo download icon from github and save to ~/.local/share/icons/drawio.svg
|
|
|
|
xdg-open "https://github.com/jgraph/drawio-desktop/blob/dev/build/icon.svg"
|
|
|
|
|
|
|
|
|
2022-08-08 03:24:25 +00:00
|
|
|
cat <<MIME > ~/.local/share/mime/packages/drawio.xml
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
|
|
|
<mime-type type="application/vnd.jgraph.mxfile">
|
|
|
|
<comment>Drawio Diagram</comment>
|
|
|
|
<glob pattern="*.drawio" case-sensitive="true"/>
|
|
|
|
</mime-type>
|
|
|
|
</mime-info>
|
|
|
|
MIME
|
|
|
|
|
2022-05-15 08:05:46 +00:00
|
|
|
lnsf "$DIR/drawio/drawio.desktop" ~/.local/share/applications/drawio.desktop
|
2022-08-08 03:24:25 +00:00
|
|
|
|
|
|
|
update-mime-database ~/.local/share/mime
|