Loading pkgs/by-name/ch/cherry-studio/package.nix +1 −2 Original line number Diff line number Diff line Loading @@ -9,7 +9,6 @@ writableTmpDirAsHomeHook, makeDesktopItem, copyDesktopItems, nix-update-script, commandLineArgs ? "", }: Loading Loading @@ -112,7 +111,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { runHook postInstall ''; passthru.updateScript = nix-update-script { }; passthru.updateScript = ./update.sh; meta = { description = "Desktop client that supports for multiple LLM providers"; Loading pkgs/by-name/ch/cherry-studio/update.sh 0 → 100755 +16 −0 Original line number Diff line number Diff line #!/usr/bin/env nix-shell #!nix-shell -i bash -p curl gnused jq nix bash coreutils nix-update set -eou pipefail latestTag=$(curl ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} -sL https://api.github.com/repos/CherryHQ/cherry-studio/releases/latest | jq --raw-output .tag_name) latestVersion=$(echo "$latestTag" | sed 's/^v//') currentVersion=$(nix-instantiate --eval -E "with import ./. {}; cherry-studio.version or (lib.getVersion cherry-studio)" | tr -d '"') if [[ "$currentVersion" == "$latestVersion" ]]; then echo "package is up-to-date: $currentVersion" exit 0 fi nix-update cherry-studio --version "$latestVersion" Loading
pkgs/by-name/ch/cherry-studio/package.nix +1 −2 Original line number Diff line number Diff line Loading @@ -9,7 +9,6 @@ writableTmpDirAsHomeHook, makeDesktopItem, copyDesktopItems, nix-update-script, commandLineArgs ? "", }: Loading Loading @@ -112,7 +111,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { runHook postInstall ''; passthru.updateScript = nix-update-script { }; passthru.updateScript = ./update.sh; meta = { description = "Desktop client that supports for multiple LLM providers"; Loading
pkgs/by-name/ch/cherry-studio/update.sh 0 → 100755 +16 −0 Original line number Diff line number Diff line #!/usr/bin/env nix-shell #!nix-shell -i bash -p curl gnused jq nix bash coreutils nix-update set -eou pipefail latestTag=$(curl ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} -sL https://api.github.com/repos/CherryHQ/cherry-studio/releases/latest | jq --raw-output .tag_name) latestVersion=$(echo "$latestTag" | sed 's/^v//') currentVersion=$(nix-instantiate --eval -E "with import ./. {}; cherry-studio.version or (lib.getVersion cherry-studio)" | tr -d '"') if [[ "$currentVersion" == "$latestVersion" ]]; then echo "package is up-to-date: $currentVersion" exit 0 fi nix-update cherry-studio --version "$latestVersion"