From 9c44829d2bbcaf01a3ad8aec061932efdc5e9975 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 10 Nov 2021 21:26:49 +0100 Subject: [PATCH] Adding Emoji Picker installer --- README.md | 2 +- installEmojiPicker.sh | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 installEmojiPicker.sh diff --git a/README.md b/README.md index 719cef3..1e2ef68 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ Mon guide à suivre lors d'une réinstallation d'Ubuntu - Installe le sélecteur d'emojis ```bash - # TODO + wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installEmojiPicker.sh -O tmp.sh && bash tmp.sh; rm tmp.sh ``` - Rajoute les raccourcis clavier diff --git a/installEmojiPicker.sh b/installEmojiPicker.sh new file mode 100644 index 0000000..19a4493 --- /dev/null +++ b/installEmojiPicker.sh @@ -0,0 +1,16 @@ +# On récupère la dernière version de x11-emoji-picker +wget -q https://api.github.com/repos/GaZaTu/x11-emoji-picker/releases/latest +echo "Retrieve the last package..." +grep 'browser_download_url": ".*.deb"' latest | awk '{ print substr ($0, 32 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }' > url +rm latest +# On télécharge le paquet +wget -q --show-progress -i url -O x11-emoji-picker.deb +rm url +# On installe la dépendance +wget -q --show-progress http://ftp.br.debian.org/debian/pool/main/i/icu/libicu57_57.1-6+deb9u4_amd64.deb +sudo apt install ./libicu57_57.1-6+deb9u4_amd64.deb -y +rm libicu57_57.1-6+deb9u4_amd64.deb +# On l'installe +sudo apt install ./x11-emoji-picker.deb -y +# On le supprime +rm x11-emoji-picker.deb