aonsoku: init at 0.8.3 (#385245)

authored by Gaétan Lepage and committed by GitHub 657ecc9b 31782c65

+115
+69
pkgs/by-name/ao/aonsoku/package.nix
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + rustPlatform, 5 + 6 + cargo-tauri, 7 + nodejs, 8 + pnpm, 9 + 10 + pkg-config, 11 + wrapGAppsHook3, 12 + 13 + openssl, 14 + libsoup_2_4, 15 + webkitgtk_4_1, 16 + glib-networking, 17 + nix-update-script, 18 + }: 19 + 20 + rustPlatform.buildRustPackage (finalAttrs: { 21 + pname = "aonsoku"; 22 + version = "0.8.3"; 23 + 24 + src = fetchFromGitHub { 25 + owner = "victoralvesf"; 26 + repo = "aonsoku"; 27 + tag = "v${finalAttrs.version}"; 28 + hash = "sha256-A1U1ubprwYJvyqTe5gVYTo8687sfP/76GfA+2EmtoCo="; 29 + }; 30 + 31 + pnpmDeps = pnpm.fetchDeps { 32 + inherit (finalAttrs) pname version src; 33 + hash = "sha256-BMEBJRycmOgsI1loTPTNY1dVOJ0HTCnzg0QyNAzZMn4="; 34 + }; 35 + 36 + cargoRoot = "src-tauri"; 37 + buildAndTestSubdir = finalAttrs.cargoRoot; 38 + useFetchCargoVendor = true; 39 + cargoHash = "sha256-yuKaf05bQFah3MTC0eF82pMmTJrllWfUKX3SdIWbPjM="; 40 + 41 + patches = [ ./remove_updater.patch ]; 42 + 43 + nativeBuildInputs = [ 44 + nodejs 45 + pnpm.configHook 46 + cargo-tauri.hook 47 + 48 + pkg-config 49 + wrapGAppsHook3 50 + ]; 51 + 52 + buildInputs = [ 53 + openssl 54 + libsoup_2_4 55 + webkitgtk_4_1 56 + glib-networking 57 + ]; 58 + 59 + passthru.updateScript = nix-update-script { }; 60 + 61 + meta = { 62 + description = "Modern desktop client for Navidrome/Subsonic servers"; 63 + homepage = "https://github.com/victoralvesf/aonsoku"; 64 + changelog = "https://github.com/victoralvesf/aonsoku/releases/tag/v${finalAttrs.version}"; 65 + license = lib.licenses.mit; 66 + maintainers = with lib.maintainers; [ genga898 ]; 67 + mainProgram = "Aonsoku"; 68 + }; 69 + })
+46
pkgs/by-name/ao/aonsoku/remove_updater.patch
··· 1 + diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs 2 + index 112ee8e..35137f2 100644 3 + --- a/src-tauri/src/main.rs 4 + +++ b/src-tauri/src/main.rs 5 + @@ -50,7 +50,6 @@ fn main() { 6 + Ok(()) 7 + }) 8 + .plugin(tauri_plugin_shell::init()) 9 + - .plugin(tauri_plugin_updater::Builder::new().build()) 10 + .plugin(tauri_plugin_process::init()) 11 + .plugin(tauri_plugin_os::init()) 12 + .invoke_handler(tauri::generate_handler![commands::download_file]) 13 + diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json 14 + index 3afc5f6..19785e5 100644 15 + --- a/src-tauri/tauri.conf.json 16 + +++ b/src-tauri/tauri.conf.json 17 + @@ -8,7 +8,6 @@ 18 + "bundle": { 19 + "active": true, 20 + "category": "Music", 21 + - "createUpdaterArtifacts": true, 22 + "targets": "all", 23 + "icon": [ 24 + "icons/32x32.png", 25 + @@ -26,14 +25,6 @@ 26 + "productName": "Aonsoku", 27 + "mainBinaryName": "Aonsoku", 28 + "identifier": "com.victoralvesf.aonsoku", 29 + - "plugins": { 30 + - "updater": { 31 + - "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDRDNTlENjZCNTJFRDdDRDAKUldUUWZPMVNhOVpaVENsbXg5RTM1TzFnME43TmZoaHU5bWplS1VSSW9YcE1QT0w1ZHRIWHNUOVoK", 32 + - "endpoints": [ 33 + - "https://github.com/victoralvesf/aonsoku/releases/latest/download/latest.json" 34 + - ] 35 + - } 36 + - }, 37 + "app": { 38 + "withGlobalTauri": true, 39 + "security": { 40 + @@ -56,4 +47,4 @@ 41 + } 42 + ] 43 + } 44 + -} 45 + \ No newline at end of file 46 + +}