Chuyển đến nội dung

Install scripts

Nội dung này chưa có trong Tiếng Việt

Currently:

  • install.sh checkdeps.sh setup.sh only work for Arch(-based) distros.
  • update-ags.sh works for common distros, but user must figure out deps for AGS themselves (at least not easy for openSUSE, see end-4#275 and Aylur#313).

Structrue

Main script: install.sh

  • The script keeps its “data” part under ./scriptdata/. Some files are also shared by other scripts.
  • When the script build something from source, they’re stored under ./cache/. Of course, ./cache is listed on .gitignore.

Other scripts:

  • update-ags.sh
    • The script uses the install-ags function from ./scriptdata/installers.
    • If executed, it installs AGS without confirm.
  • checkdeps.sh
  • uninstall.sh
    • Deprecated. Unrecommended to use because its behavior may be destructive.
    • If executed, it tries to revert all changes from install.sh, whether the change is or is not really caused by install.sh.

Online script: setup.sh

  • Stored in the repo of dots-hyprland-wiki to be served by the doc site directly.
  • When executed, it downloads the dots-hyprland repo and then executes the install.sh.

Idempotent

The scripts (install.sh update-ags.sh checkdeps.sh setup.sh) are and should be idempotent, i.e. capable for running multiple times.

This is useful for debugging and a resumable installation, and also provide updating function somehow.