mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
ArchiSteamFarm: make update scripts indepent from where they are run, cleanups
This commit is contained in:
parent
0f386859f5
commit
b38799bbb4
2 changed files with 3 additions and 4 deletions
|
@ -15,15 +15,13 @@ if [[ "$new_version" == "$old_version" ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
asf_path=$(pwd)
|
||||
asf_path=$PWD
|
||||
cd ../../../..
|
||||
|
||||
nixpkgs_path=$(pwd)
|
||||
if [[ "${1:-}" != "--deps-only" ]]; then
|
||||
update-source-version ArchiSteamFarm "$new_version"
|
||||
fi
|
||||
|
||||
$(nix-build -A ArchiSteamFarm.fetch-deps --no-out-link) "$deps_file"
|
||||
|
||||
cd "$asf_path"
|
||||
./web-ui/update.sh
|
||||
exec "$asf_path/web-ui/update.sh"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#! nix-shell -I nixpkgs=../../../../.. -i bash -p nodePackages.node2nix gnused jq curl
|
||||
set -eoux pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
pushd ../../../../..
|
||||
version=$(nix-instantiate --strict --eval -A ArchiSteamFarm.version | jq -r)
|
||||
popd
|
||||
|
|
Loading…
Reference in a new issue