Install scripts
本页面没有您所选择的语言版本,已回退到英语。
Currently:
install.shcheckdeps.shsetup.shonly work for Arch(-based) distros.update-ags.shworks for common distros, but user must figure out deps for AGS themselves (at least not easy for openSUSE, see sh1zicus#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,./cacheis listed on.gitignore.
Other scripts:
update-ags.sh- The script uses the
install-agsfunction from./scriptdata/installers. - If executed, it installs AGS without confirm.
- The script uses the
checkdeps.sh- Check the existence of pkgs listed in
./scriptdata/dependencies.conf. - It somehow fixes the problem caused by yay.
- Check the existence of pkgs listed in
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 byinstall.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.