1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p git bash curl jq nix-update
6 dirname="$(dirname "$0")"
8 latestTag
=$
(curl https
://api.github.com
/repos
/ferdium
/ferdium-app
/releases
/latest | jq
-r ".tag_name")
9 latestVersion
="$(expr $latestTag : 'v\(.*\)')"
11 nix-update
--version "$latestVersion" --system aarch64-linux
--override-filename "$dirname/default.nix" ferdium
12 nix-update
--version skip
--system x86_64-linux
--override-filename "$dirname/default.nix" ferdium