ArchiSteamFarm: make update scripts indepent from where they are run, cleanups
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user