Loading pkgs/by-name/ch/cherry-studio/update.sh +14 −2 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 #!nix-shell -i bash -p curl gnused jq nix bash coreutils nix-update yarn-berry.yarn-berry-fetcher set -eou pipefail PACKAGE_DIR=$(realpath $(dirname $0)) 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//') Loading @@ -13,4 +15,14 @@ if [[ "$currentVersion" == "$latestVersion" ]]; then exit 0 fi nix-update cherry-studio --version "$latestVersion" nix-update cherry-studio --version "$latestVersion" || true export HOME=$(mktemp -d) src=$(nix-build --no-link $PWD -A cherry-studio.src) TMPDIR=$(mktemp -d) cp --recursive --no-preserve=mode $src/* $TMPDIR cd $TMPDIR yarn-berry-fetcher missing-hashes yarn.lock >$PACKAGE_DIR/missing-hashes.json rm -rf $TMPDIR nix-update cherry-studio --version skip || true Loading
pkgs/by-name/ch/cherry-studio/update.sh +14 −2 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 #!nix-shell -i bash -p curl gnused jq nix bash coreutils nix-update yarn-berry.yarn-berry-fetcher set -eou pipefail PACKAGE_DIR=$(realpath $(dirname $0)) 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//') Loading @@ -13,4 +15,14 @@ if [[ "$currentVersion" == "$latestVersion" ]]; then exit 0 fi nix-update cherry-studio --version "$latestVersion" nix-update cherry-studio --version "$latestVersion" || true export HOME=$(mktemp -d) src=$(nix-build --no-link $PWD -A cherry-studio.src) TMPDIR=$(mktemp -d) cp --recursive --no-preserve=mode $src/* $TMPDIR cd $TMPDIR yarn-berry-fetcher missing-hashes yarn.lock >$PACKAGE_DIR/missing-hashes.json rm -rf $TMPDIR nix-update cherry-studio --version skip || true