Files
nixpkgs/pkgs/by-name/wi/windsend/update.sh
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

33 lines
832 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p yq nix bash coreutils nix-update common-updater-scripts ripgrep flutter
set -euo pipefail
PACKAGE_DIR=$(realpath "$(dirname "$0")")
latestVersion=$(
list-git-tags --url=https://github.com/doraemonkeys/WindSend |
rg '^v(.*)' -r '$1' |
sort --version-sort |
tail -n1
)
currentVersion=$(nix eval --raw --file . windsend.version)
[[ $currentVersion == $latestVersion ]] && {
echo "package is up-to-date: $currentVersion"
exit 0
}
nix-update --version=$latestVersion windsend
src=$(nix build --no-link --print-out-paths .#windsend.src)
source=$(mktemp -d)
cp -r --no-preserve=mode "$src/"* "$source"
pushd "$source/flutter/wind_send"
flutter pub get
yq . pubspec.lock >"$PACKAGE_DIR/pubspec.lock.json"
popd
rm -rf "$source"
./update-gitHashes.py