From adc05ea196b4d8c235c4e31b17ccc787393fcb7d Mon Sep 17 00:00:00 2001 From: Albin Larsson Date: Tue, 21 Jun 2022 09:20:13 +0200 Subject: [PATCH] Add Debian installation instructions as a
element in the Ubuntu one --- _includes/index/releases.html | 7 ++++++- assets/js/releases.js | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/_includes/index/releases.html b/_includes/index/releases.html index f94c473..06eb399 100644 --- a/_includes/index/releases.html +++ b/_includes/index/releases.html @@ -21,9 +21,14 @@ Ubuntu (Debian) loading link...

- Install via PPA:
+ Install via PPA (Ubuntu):

+
+ Note that the above instructions are specifically for Ubuntu. For Debian instructions, click here to expand. +
+
+ Alternatively, you can download the .deb file and run:
sudo apt install ./ulauncher_x.y.z_all.deb or right click and choose to open in your graphical installer (normally named "Software").
diff --git a/assets/js/releases.js b/assets/js/releases.js index dad965e..4b75173 100644 --- a/assets/js/releases.js +++ b/assets/js/releases.js @@ -65,6 +65,16 @@ jQuery(function($) { var launchpadPackage = selectStable ? 'ulauncher' : 'ulauncher-dev'; $('#ubuntu-ppa').html('sudo add-apt-repository ppa:agornostal/' + launchpadPackage + ' && sudo apt update && sudo apt install ulauncher'); + var debianInstructions = 'sudo apt update && sudo apt install -y gnupg\n' + + 'gpg --keyserver keyserver.ubuntu.com --recv 0xfaf1020699503176\n' + + 'gpg --export 0xfaf1020699503176 | sudo tee /usr/share/keyrings/ulauncher-archive-keyring.gpg\n' + + 'sudo echo "deb [signed-by=/usr/share/keyrings/ulauncher-archive-keyring.gpg] \\\n' + + ' http://ppa.launchpad.net/agornostal/' + launchpadPackage + '/ubuntu focal main" \\\n' + + ' > /etc/apt/sources.list.d/' + launchpadPackage + '-focal.list\n' + + 'sudo apt update && sudo apt install ulauncher'; + + $('#debian-ppa').html("
" + debianInstructions + "
"); + renderReleaseLinks(selectStable ? stable : dev); }