From a559565aceb5a8b0c8b5adb56608ac56c8c6f921 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Sun, 9 Sep 2018 21:08:23 +0200 Subject: [PATCH] Create install_ubuntu.sh --- install_ubuntu.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 install_ubuntu.sh diff --git a/install_ubuntu.sh b/install_ubuntu.sh new file mode 100644 index 0000000000..a48d861423 --- /dev/null +++ b/install_ubuntu.sh @@ -0,0 +1,7 @@ +version=$(curl --silent "https://api.github.com/repos/laurent22/joplin/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")') +rm -r ~/.joplin/ ~/.local/share/applications/joplin.desktop +mkdir -p ~/.joplin/ +wget -O ~/.joplin/Joplin-$version-x86_64.AppImage https://github.com/laurent22/joplin/releases/download/v$version/Joplin-$version-x86_64.AppImage +chmod +x ~/.joplin/Joplin-$version-x86_64.AppImage +wget -O ~/.joplin/Icon512.png https://joplin.cozic.net/images/Icon512.png +echo -e "[Desktop Entry]\nEncoding=UTF-8\nName=Joplin\nExec=/home/$USER/.joplin/Joplin-$version-x86_64.AppImage\nIcon=/home/$USER/.joplin/Icon512.png\nType=Application\nCategories=Application;" >> ~/.local/share/applications/joplin.desktop