diff --git a/package.json b/package.json index a03be9a..c0544d9 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "helixnotes", "private": true, "license": "AGPL-3.0-or-later", - "version": "1.1.8", + "version": "1.1.9", "type": "module", "scripts": { "dev": "vite dev", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index a2a238e..b2d7622 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1833,7 +1833,7 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "helixnotes" -version = "1.1.8" +version = "1.1.9" dependencies = [ "arboard", "chrono", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index fa8b75a..075d565 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "helixnotes" -version = "1.1.8" +version = "1.1.9" description = "Local markdown note-taking app" authors = ["HelixNotes"] license = "AGPL-3.0-or-later" diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index c2b0cef..230c7cf 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -1570,11 +1570,13 @@ pub fn get_install_type() -> String { } else if std::path::Path::new("/var/lib/dpkg/info/helix-notes.list").exists() { "deb".to_string() } else if std::path::Path::new("/var/lib/pacman/local").exists() - && std::process::Command::new("pacman") - .args(["-Q", "helixnotes"]) - .output() - .map(|o| o.status.success()) - .unwrap_or(false) + && ["helixnotes", "helixnotes-bin", "helixnotes-appimage-bin"].iter().any(|pkg| { + std::process::Command::new("pacman") + .args(["-Q", pkg]) + .output() + .map(|o| o.status.success()) + .unwrap_or(false) + }) { "aur".to_string() } else if std::env::var("APPIMAGE").is_ok() { diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 14b0ea3..fcb797d 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "../node_modules/@tauri-apps/cli/config.schema.json", "productName": "HelixNotes", - "version": "1.1.8", + "version": "1.1.9", "identifier": "com.helixnotes.app", "build": { "frontendDist": "../build", diff --git a/src/lib/components/AppLayout.svelte b/src/lib/components/AppLayout.svelte index d4ab051..b6e77cc 100644 --- a/src/lib/components/AppLayout.svelte +++ b/src/lib/components/AppLayout.svelte @@ -32,7 +32,9 @@ appConfig, quickAccessPaths, tags, - notes + notes, + updateAvailable as globalUpdateAvailable, + settingsTab } from '$lib/stores/app'; const appWindow = getCurrentWindow(); @@ -446,6 +448,11 @@ {$activeNotebook?.name || 'All Notes'} {/if} + {#if $globalUpdateAvailable && $mobileView === 'sidebar'} + + {/if} {/if}