diff --git a/src/app/components/content/app-downloads/downloads.component.html b/src/app/components/content/app-downloads/downloads.component.html
index 869174637..697ce3693 100644
--- a/src/app/components/content/app-downloads/downloads.component.html
+++ b/src/app/components/content/app-downloads/downloads.component.html
@@ -98,6 +98,31 @@
+
+
+
+
+ Native Launcher with Snap
+
+
+
+
+
+
+
+ Linux users have the option of installing the native launcher in a convenient Snap package!
+ All the benefits of the native launcher, straight from the Canonical store.
+
+
+
+
+ Open Snap Store
+
+
+
+
diff --git a/src/app/components/content/app-downloads/downloads.component.ts b/src/app/components/content/app-downloads/downloads.component.ts
index 548e2855f..f45410c71 100644
--- a/src/app/components/content/app-downloads/downloads.component.ts
+++ b/src/app/components/content/app-downloads/downloads.component.ts
@@ -102,7 +102,7 @@ export class AppDownloadsComponent implements OnInit, OnDestroy {
const baseUrl = `https://github.com/open-osrs/launcher/releases/latest/download`;
if (item === 1) {
return `${baseUrl}/OpenOSRS.jar`;
- } else {
+ } else if (item === 0) {
if (this.selectedOperatingSystem === 'Windows x64') {
return `${baseUrl}/OpenOSRSSetup64.exe`;
} else if (this.selectedOperatingSystem === 'Windows x32') {
@@ -112,17 +112,23 @@ export class AppDownloadsComponent implements OnInit, OnDestroy {
} else if (this.selectedOperatingSystem === 'Linux') {
return `${baseUrl}/OpenOSRS.AppImage`;
}
+ } else if (item === 2) {
+ return `https://snapcraft.io/openosrs`;
}
}
public downloadClick(item: number): void {
this.selectedDownload = item;
- this.stepper.selected.completed = true;
- this.stepper.next();
-
- this.hideHashes = false;
+ if (item === 2) {
+ this.hideHashes = true;
+ this.notificationService.showError('Opening snapcrafters, please wait!');
+ } else {
+ this.hideHashes = false;
+ this.notificationService.showError('Starting download, please wait!');
+ this.stepper.selected.completed = true;
+ this.stepper.next();
+ }
- this.notificationService.showError('Starting download, please wait!');
}
}