-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.bash
executable file
·51 lines (42 loc) · 1.61 KB
/
update.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env bash
set -ex
function fetch-github-release {
VERSION=$(curl --fail -s https://api.github.com/repos/"$1"/releases/latest | jq -r ".tag_name")
if [ "$VERSION" = "" ]; then
exit 1
fi
echo $VERSION
}
nix-update --commit --flake realm
nix-update --commit --flake trojan-go
nix-update --commit --flake fcitx5-material-color
nix-update --commit --flake microsocks
nix-update --commit --flake vpncloud
nix-update --commit --flake tun2socks
nix-update --commit --flake hev-socks5-tproxy
nix-update --commit --flake novnc
nix-update --commit --flake landrop --url https://github.com/LANDrop/LANDrop
nix-update --commit --flake candy
nix-update --commit --flake yacd
nix-update --commit --flake cloudreve
nix-update --commit --flake cockpit-machines
nix-update --commit --flake libvirt-dbus
nix-update --commit --flake mainsail
nix-update --commit --flake reader
nix-update --commit --flake ping-exporter
nix-update --commit --flake mumble-discord-bridge
nix-update --commit --flake aliyundrive-webdav
nix-update --commit --version "$(curl --fail -s 'https://mattermost.com/download/' | grep -oP "Latest Release:</strong> \K([0-9\\.]*)(?=</p>)")" --flake mattermost-ent
for package in "teleport-ent"; do
current_version=$(nix eval --raw .#packages.x86_64-linux."$package".version)
pushd packages/$package/
bash update.sh
popd
git add .
new_version=$(nix eval --raw .#packages.x86_64-linux."$package".version)
if [ "$current_version" != "$new_version" ]; then
git commit -m "$package: $current_version -> $new_version"
fi
done
# nix-update -commit --flake teleport-ent
# nix-update --commit --flake alist