1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-03-29 21:21:15 +02:00

Merge pull request #776 from tanrax/patch-2

Create install_ubuntu.sh
This commit is contained in:
Laurent Cozic 2018-09-13 19:45:14 +01:00 committed by GitHub
commit a40028f0c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
install_ubuntu.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
version=$(curl --silent "https://api.github.com/repos/laurent22/joplin/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")')
rm ~/.joplin/*.AppImage ~/.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