Skip to content

Commit

Permalink
Add Debian installation instructions as a <details> element in the Ub…
Browse files Browse the repository at this point in the history
…untu one
  • Loading branch information
friday committed Jun 21, 2022
1 parent e37a7f5 commit adc05ea
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _includes/index/releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@
<b class="distro-name">Ubuntu (Debian)</b> <span id="release-deb"><i>loading link...</i></span>
</p>

Install via PPA:<br />
Install via PPA (Ubuntu):<br />
<p id="ubuntu-ppa"></p>

<details style="margin-bottom: 15px;">
<summary><em>Note that the above instructions are specifically for Ubuntu. For Debian instructions, click here to expand.</em></summary>
<div id="debian-ppa"></div>
</details>

Alternatively, you can download the <code>.deb</code> file and run:<br />
<code>sudo apt install ./ulauncher_x.y.z_all.deb</code> or right click and choose to open in your graphical installer (normally named "Software").<br>
</li>
Expand Down
10 changes: 10 additions & 0 deletions assets/js/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ jQuery(function($) {
var launchpadPackage = selectStable ? 'ulauncher' : 'ulauncher-dev';
$('#ubuntu-ppa').html('<code>sudo add-apt-repository ppa:agornostal/' + launchpadPackage + ' && sudo apt update && sudo apt install ulauncher</code>');

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("<pre>" + debianInstructions + "</pre>");

renderReleaseLinks(selectStable ? stable : dev);
}

Expand Down

0 comments on commit adc05ea

Please sign in to comment.