From 299fd4f1074bd0f01a9e00ff17fa6cc64510b8a4 Mon Sep 17 00:00:00 2001 From: clsty Date: Mon, 6 Oct 2025 10:01:17 +0800 Subject: [PATCH] Minor updates about information --- dist-arch/README.md | 21 +++++++++++++++++++++ dist-gentoo/README.md | 2 +- scriptdata/step/0.install-greeting.sh | 4 ++-- scriptdata/step/1.install-deps-selector.sh | 4 +++- 4 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 dist-arch/README.md diff --git a/dist-arch/README.md b/dist-arch/README.md new file mode 100644 index 000000000..8fd96687f --- /dev/null +++ b/dist-arch/README.md @@ -0,0 +1,21 @@ +# Install scripts for Arch Linux +## Old Dependency Installation Method +The old deps install method mainly involved `./scriptdata/dependencies.conf` (which has been removed now). + +There was also a `checkdeps.sh`: + - It checks the existence of pkgs listed in `./scriptdata/dependencies.conf`. + - It somehow fixes [the problem caused by yay](https://github.com/end-4/dots-hyprland/discussions/204). + +## Current Dependency Installation +Local PKGBUILDs under `./dist-arch/` are used to install dependencies. + +The mechanism is introduced by [Makrennel](https://github.com/Makrennel) in [PR#570](https://github.com/end-4/dots-hyprland/pull/570). + +Why is this awesome? +- It makes it possible to control version since some packages may involve breaking changes from time to time. +- It makes the dependency trackable for package manager, so that you always know why you have installed some package. +- As a result, it enables a workable `uninstall.sh` script. + +The PKGBUILDs contains two forms of dependencies: +- Package name written in dependencies, like a "meta" package. +- Normal PKGBUILD content to build dependencies, e.g. AGS, which is often for version controlling. diff --git a/dist-gentoo/README.md b/dist-gentoo/README.md index a74cc6b00..3ad017581 100644 --- a/dist-gentoo/README.md +++ b/dist-gentoo/README.md @@ -1,4 +1,4 @@ -# install scripts for Gentoo +# Install scripts for Gentoo ## Contributors - Author: [@jwihardi](https://github.com/jwihardi) diff --git a/scriptdata/step/0.install-greeting.sh b/scriptdata/step/0.install-greeting.sh index 85a1633bb..51d0a74a2 100644 --- a/scriptdata/step/0.install-greeting.sh +++ b/scriptdata/step/0.install-greeting.sh @@ -9,7 +9,7 @@ printf "${STY_PURPLE}${STY_BOLD}[NEW] illogical-impulse is now powered by Quicks printf '# If you were using the old version with AGS and would like to keep it, do not run this script.\n' printf '# The AGS version, although uses less memory, has much worse performance (it uses Gtk3). \n' printf '# If you aren'\''t running on ewaste, the Quickshell version is recommended. \n' -printf "# If you would like the AGS version anyway, run the script in its branch instead:\n ${STY_INVERT} git checkout ii-ags && ./install.sh ${STY_RESET}\n" +printf "# If you would like the AGS version anyway, run the following to switch to its branch first:\n ${STY_INVERT} git checkout ii-ags && ./install.sh ${STY_RESET}\n" printf "\n" pause printf "${STY_CYAN}${STY_BOLD}Quick overview about what this script does:${STY_CYAN}\n" @@ -21,7 +21,7 @@ printf "${STY_CYAN}${STY_BOLD}Tips:${STY_CYAN}\n" printf " a) It has been designed to be idempotent which means you can run it multiple times.\n" printf " b) Use ${STY_INVERT} --help ${STY_CYAN} for more options.${STY_RESET}\n" printf "${STY_YELLOW}${STY_BOLD}Note: ${STY_YELLOW}" -printf "It does not handle system-level/hardware stuff like Nvidia drivers.\n" +printf "It does not handle system-level/hardware stuff like Nvidia drivers. Please do it by yourself.\n" printf "${STY_RESET}" printf "\n" pause diff --git a/scriptdata/step/1.install-deps-selector.sh b/scriptdata/step/1.install-deps-selector.sh index 90f1182a7..0fef2f17f 100644 --- a/scriptdata/step/1.install-deps-selector.sh +++ b/scriptdata/step/1.install-deps-selector.sh @@ -91,7 +91,9 @@ elif [[ -f "./dist-${OS_DISTRO_ID}/install-deps.sh" ]]; then printf "./dist-${TARGET_ID}/install-deps.sh will be used.\n" printf "This file is provided by the community.\n" printf "It is not officially supported by github:end-4/dots-hyprland .\n" - printf "${STY_BG_PURPLE}" + test -f "./dist-${TARGET_ID}/README.md" && \ + printf "Read ${STY_INVERT} ./dist-${TARGET_ID}/README.md ${STY_PURPLE} for more information.\n" + printf "${STY_BOLD}" printf "If you find out any problems about it, PR is welcomed if you are able to address it. Or, create a discussion about it, but please do not submit issue, because the developers do not use this distro, therefore they cannot help.${STY_RESET}\n" printf "${STY_PURPLE}" printf "Proceed only at your own risk.\n"