-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathupdate-script.sh
More file actions
executable file
·48 lines (43 loc) · 1.46 KB
/
Copy pathupdate-script.sh
File metadata and controls
executable file
·48 lines (43 loc) · 1.46 KB
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
#!/usr/bin/env nix-shell
#! nix-shell -i bash
#! nix-shell -p bash nix-update npins curl gnused gnugrep jaq cachix
if [ "${1:-}" != "--cache-only" ]; then
nix-update --flake lug-helper
# RSI Launcher
./pkgs/rsi-launcher/update.sh
# GameGlass
./pkgs/gameglass/update.sh
# lug-wine-bin
./pkgs/lug-wine-bin/update.sh
# Compattools
./pkgs/steamcompattools/update.sh
npins update
# Update wine-astral sources
# This has to be done after pins are updated
./pkgs/wine-astral/update.sh
nix fmt
fi
if [ "${1:-}" = "--cache" ] || [ "${1:-}" = "--cache-only" ]; then
nix build -L --print-out-paths --no-link --keep-going --refresh \
.#rsi-launcher \
.#rsi-launcher-git \
.#lug-helper \
.#gameglass \
.#rsi-launcher-umu \
.#lug-wine-bin \
.#proton-ge-bin \
.#dw-proton-bin \
.#proton-cachyos-bin \
.#proton-em-bin | cachix push nix-citizen &&
nix build --print-out-paths --no-link --keep-going --refresh \
.#packages.x86_64-linux-v3.rsi-launcher \
.#packages.x86_64-linux-v3.rsi-launcher-git \
.#packages.x86_64-linux-v3.lug-helper \
.#packages.x86_64-linux-v3.gameglass \
.#packages.x86_64-linux-v3.rsi-launcher-umu \
.#packages.x86_64-linux-v3.lug-wine-bin \
.#packages.x86_64-linux-v3.proton-ge-bin \
.#packages.x86_64-linux-v3.dw-proton-bin \
.#packages.x86_64-linux-v3.proton-cachyos-bin \
.#packages.x86_64-linux-v3.proton-em-bin | cachix push nix-citizen
fi