From d89900c4be04ae7c788bf0d36d9e2d776bf4af3e Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sat, 25 Jan 2025 11:51:22 -0500 Subject: [PATCH] feat(jmusicbot): add to update script and update pkg --- apps/update-sources/default.nix | 2 +- apps/update-sources/src/app.ts | 7 ++++++- packages/jmusicbot/default.nix | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/update-sources/default.nix b/apps/update-sources/default.nix index b36e27a9..b2983b65 100644 --- a/apps/update-sources/default.nix +++ b/apps/update-sources/default.nix @@ -10,7 +10,7 @@ }: buildApp { src = ./.; - npmDepsHash = "sha256-0HeZRaFdEEsxWjzTbRCrKEJ61pfTGWtymLQoj31WeEc="; + npmDepsHash = "sha256-YYhg8FQF92JNyIJuZmkF9Ehhc0zTrwg9CppddpcLRfA="; runtimeInputs = [ findutils diff --git a/apps/update-sources/src/app.ts b/apps/update-sources/src/app.ts index 82288248..4067699e 100644 --- a/apps/update-sources/src/app.ts +++ b/apps/update-sources/src/app.ts @@ -53,6 +53,10 @@ const main = async() => { console.log(updateFlakeInputs()); } + if (args['j'] || args['jmusicbot']) { + console.log(runNixUpdate('jmusicbot')); + } + if (args['m'] || args['material-rounded-theme']) { console.log(updateCustomPackage( 'scopedPackages.x86_64-linux.lovelace-components.material-rounded-theme', @@ -103,7 +107,7 @@ const main = async() => { console.log(caddyPluginsOutput); - // This doesn't need to be added to commit msgs + // These don't need to be added to commit message console.log(updateCustomPackage( 'scopedPackages.x86_64-linux.lovelace-components.custom-sidebar', )); @@ -124,6 +128,7 @@ const main = async() => { }; updatePackage('homepage'); + updatePackage('jmusicbot'); spawnSync('nixFastBuild', [], { diff --git a/packages/jmusicbot/default.nix b/packages/jmusicbot/default.nix index 25d18d71..1ede5b57 100644 --- a/packages/jmusicbot/default.nix +++ b/packages/jmusicbot/default.nix @@ -31,10 +31,10 @@ }); in (jmusicbot.override {jre_headless = jre;}).overrideAttrs (o: rec { - version = "0.4.3.2"; + version = "0.4.3.3"; src = fetchurl { url = "https://github.com/xPrinny/MusicBot/releases/download/${version}/JMusicBot-${version}.jar"; - sha256 = "sha256-MEOWppkw74s81D1EJEqZMjOzDlLdH6uyanDZD5d+Xa4="; + sha256 = "sha256-NYUT0FhSIqt+SECOKdnqBNQ37qinkwNWIzpXw8+7FXg="; }; meta.platforms = ["x86_64-linux"]; })