1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/install_ubuntu.sh

10 lines
745 B
Bash
Raw Normal View History

2018-09-10 22:54:01 +02:00
#!/bin/bash
set -e
2018-09-09 21:08:23 +02:00
version=$(curl --silent "https://api.github.com/repos/laurent22/joplin/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")')
2018-09-10 22:57:50 +02:00
rm ~/.joplin/*.AppImage ~/.local/share/applications/joplin.desktop
2018-09-09 21:08:23 +02:00
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