mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
Move sdist/ID to sdata/dist-ID
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
name: Comment on Discussion When sdist/arch/ Changes
|
name: Comment on Discussion When sdata/dist-arch/ Changes
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'sdist/arch/**'
|
- 'sdata/dist-arch/**'
|
||||||
# workflow_dispatch:
|
# workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
# https://docs.github.com/en/graphql/reference/mutations#adddiscussioncomment
|
# https://docs.github.com/en/graphql/reference/mutations#adddiscussioncomment
|
||||||
run: |
|
run: |
|
||||||
MESSAGE="**Auto notification:**\n"
|
MESSAGE="**Auto notification:**\n"
|
||||||
MESSAGE+="Directory \`sdist/arch\` has been updated.\n"
|
MESSAGE+="Directory \`sdata/dist-arch\` has been updated.\n"
|
||||||
MESSAGE+="Commit HASH: ${{ github.sha }}\n"
|
MESSAGE+="Commit HASH: ${{ github.sha }}\n"
|
||||||
MESSAGE+="Commit message: ${{ github.event.head_commit.message }}"
|
MESSAGE+="Commit message: ${{ github.event.head_commit.message }}"
|
||||||
REPO_OWNER="${{ github.repository_owner }}"
|
REPO_OWNER="${{ github.repository_owner }}"
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
| [Hyprland](https://github.com/hyprwm/hyprland) | The compositor (manages and renders windows) |
|
| [Hyprland](https://github.com/hyprwm/hyprland) | The compositor (manages and renders windows) |
|
||||||
| [Quickshell](https://quickshell.outfoxxed.me/) | A QtQuick-based widget system, used for the status bar, sidebars, etc. |
|
| [Quickshell](https://quickshell.outfoxxed.me/) | A QtQuick-based widget system, used for the status bar, sidebars, etc. |
|
||||||
|
|
||||||
- For the full list of dependencies, see the [sdist/arch folder](https://github.com/end-4/dots-hyprland/tree/main/sdist/arch)
|
- For the full list of dependencies, see the [sdata/dist-arch folder](https://github.com/end-4/dots-hyprland/tree/main/sdata/dist-arch)
|
||||||
- THERE IS NO WAYBAR STOP FUCKING CALLING EVERY BAR WAYBAR
|
- THERE IS NO WAYBAR STOP FUCKING CALLING EVERY BAR WAYBAR
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -3,7 +3,7 @@ This file was generated by AI (see [#2102](https://github.com/end-4/dots-hyprlan
|
|||||||
It still needs manual correction.
|
It still needs manual correction.
|
||||||
|
|
||||||
## Information
|
## Information
|
||||||
Meta-packages (from sdist/arch/install-deps.sh)
|
Meta-packages (from sdata/dist-arch/install-deps.sh)
|
||||||
- illogical-impulse-basic
|
- illogical-impulse-basic
|
||||||
- Purpose: Core shell tooling used by scripts (general CLI utilities, build helpers, JSON processing, etc.).
|
- Purpose: Core shell tooling used by scripts (general CLI utilities, build helpers, JSON processing, etc.).
|
||||||
- illogical-impulse-audio
|
- illogical-impulse-audio
|
||||||
@@ -74,13 +74,13 @@ Concrete dependencies inferred from repository scripts
|
|||||||
- Used by: switchwall.sh to set GNOME interface color-scheme and GTK theme.
|
- Used by: switchwall.sh to set GNOME interface color-scheme and GTK theme.
|
||||||
- Purpose: System settings manipulation.
|
- Purpose: System settings manipulation.
|
||||||
- yay (or yay-bin from AUR)
|
- yay (or yay-bin from AUR)
|
||||||
- Used by: sdist/arch/install-deps.sh to build/install local PKGBUILDs and dependencies.
|
- Used by: sdata/dist-arch/install-deps.sh to build/install local PKGBUILDs and dependencies.
|
||||||
- Purpose: AUR helper used by installer.
|
- Purpose: AUR helper used by installer.
|
||||||
- base-devel, git, makepkg (core Arch tooling)
|
- base-devel, git, makepkg (core Arch tooling)
|
||||||
- Used by: sdist/arch/install-deps.sh and update.sh for building AUR/PKGBUILD packages and repository management.
|
- Used by: sdata/dist-arch/install-deps.sh and update.sh for building AUR/PKGBUILD packages and repository management.
|
||||||
- Purpose: Build toolchain and VCS for packaging.
|
- Purpose: Build toolchain and VCS for packaging.
|
||||||
|
|
||||||
|
|
||||||
Notes
|
Notes
|
||||||
- Some Hyprland-adjacent packages appear in a legacy removal list as -git variants (e.g., hypridle, hyprlock, xdg-desktop-portal-hyprland). This suggests the meta-packages likely standardized on stable repo versions now.
|
- Some Hyprland-adjacent packages appear in a legacy removal list as -git variants (e.g., hypridle, hyprlock, xdg-desktop-portal-hyprland). This suggests the meta-packages likely standardized on stable repo versions now.
|
||||||
- Exact package lists per meta-package should be verified against the PKGBUILD files in sdist/arch/*; the above is aligned with how the code uses these tools.
|
- Exact package lists per meta-package should be verified against the PKGBUILD files in sdata/dist-arch/*; the above is aligned with how the code uses these tools.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
The old deps install method mainly involved `./sdata/dependencies.conf` (which has been removed now).
|
The old deps install method mainly involved `./sdata/dependencies.conf` (which has been removed now).
|
||||||
|
|
||||||
## Current Dependency Installation
|
## Current Dependency Installation
|
||||||
Local PKGBUILDs under `./sdist/arch/` are used to install dependencies.
|
Local PKGBUILDs under `./sdata/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).
|
The mechanism is introduced by [Makrennel](https://github.com/Makrennel) in [PR#570](https://github.com/end-4/dots-hyprland/pull/570).
|
||||||
|
|
||||||
@@ -13,12 +13,12 @@ install-yay(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# NOTE: `handle-deprecated-dependencies` was for the old days when we just switch from dependencies.conf to local PKGBUILDs.
|
# NOTE: `handle-deprecated-dependencies` was for the old days when we just switch from dependencies.conf to local PKGBUILDs.
|
||||||
# However, let's just keep it as references for other distros writing their `sdist/<DISTRO_ID>/install-deps.sh`, if they need it.
|
# However, let's just keep it as references for other distros writing their `sdata/dist-<DISTRO_ID>/install-deps.sh`, if they need it.
|
||||||
handle-deprecated-dependencies(){
|
handle-deprecated-dependencies(){
|
||||||
printf "${STY_CYAN}[$0]: Removing deprecated dependencies:${STY_RST}\n"
|
printf "${STY_CYAN}[$0]: Removing deprecated dependencies:${STY_RST}\n"
|
||||||
for i in illogical-impulse-{microtex,pymyc-aur} {quickshell,hyprutils,hyprpicker,hyprlang,hypridle,hyprland-qt-support,hyprland-qtutils,hyprlock,xdg-desktop-portal-hyprland,hyprcursor,hyprwayland-scanner,hyprland}-git;do try sudo pacman --noconfirm -Rdd $i;done
|
for i in illogical-impulse-{microtex,pymyc-aur} {quickshell,hyprutils,hyprpicker,hyprlang,hypridle,hyprland-qt-support,hyprland-qtutils,hyprlock,xdg-desktop-portal-hyprland,hyprcursor,hyprwayland-scanner,hyprland}-git;do try sudo pacman --noconfirm -Rdd $i;done
|
||||||
# Convert old dependencies to non explicit dependencies so that they can be orphaned if not in meta packages
|
# Convert old dependencies to non explicit dependencies so that they can be orphaned if not in meta packages
|
||||||
remove_bashcomments_emptylines ./sdist/arch/previous_dependencies.conf ./cache/old_deps_stripped.conf
|
remove_bashcomments_emptylines ./sdata/dist-arch/previous_dependencies.conf ./cache/old_deps_stripped.conf
|
||||||
readarray -t old_deps_list < ./cache/old_deps_stripped.conf
|
readarray -t old_deps_list < ./cache/old_deps_stripped.conf
|
||||||
pacman -Qeq > ./cache/pacman_explicit_packages
|
pacman -Qeq > ./cache/pacman_explicit_packages
|
||||||
readarray -t explicitly_installed < ./cache/pacman_explicit_packages
|
readarray -t explicitly_installed < ./cache/pacman_explicit_packages
|
||||||
@@ -75,13 +75,13 @@ install-local-pkgbuild() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Install core dependencies from the meta-packages
|
# Install core dependencies from the meta-packages
|
||||||
metapkgs=(./sdist/arch/illogical-impulse-{audio,backlight,basic,fonts-themes,kde,portal,python,screencapture,toolkit,widgets})
|
metapkgs=(./sdata/dist-arch/illogical-impulse-{audio,backlight,basic,fonts-themes,kde,portal,python,screencapture,toolkit,widgets})
|
||||||
metapkgs+=(./sdist/arch/illogical-impulse-hyprland)
|
metapkgs+=(./sdata/dist-arch/illogical-impulse-hyprland)
|
||||||
metapkgs+=(./sdist/arch/illogical-impulse-microtex-git)
|
metapkgs+=(./sdata/dist-arch/illogical-impulse-microtex-git)
|
||||||
metapkgs+=(./sdist/arch/illogical-impulse-quickshell-git)
|
metapkgs+=(./sdata/dist-arch/illogical-impulse-quickshell-git)
|
||||||
# metapkgs+=(./sdist/arch/packages/illogical-impulse-oneui4-icons-git)
|
# metapkgs+=(./sdata/dist-arch/packages/illogical-impulse-oneui4-icons-git)
|
||||||
[[ -f /usr/share/icons/Bibata-Modern-Classic/index.theme ]] || \
|
[[ -f /usr/share/icons/Bibata-Modern-Classic/index.theme ]] || \
|
||||||
metapkgs+=(./sdist/arch/illogical-impulse-bibata-modern-classic-bin)
|
metapkgs+=(./sdata/dist-arch/illogical-impulse-bibata-modern-classic-bin)
|
||||||
|
|
||||||
for i in "${metapkgs[@]}"; do
|
for i in "${metapkgs[@]}"; do
|
||||||
metainstallflags="--needed"
|
metainstallflags="--needed"
|
||||||
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
Note:
|
Note:
|
||||||
- The scripts here are **not** meant to be executed directly.
|
- The scripts here are **not** meant to be executed directly.
|
||||||
- This folder should reflect the equivalents of `/sdist/arch/` but under Gentoo.
|
- This folder should reflect the equivalents of `/sdata/dist-arch/` but under Gentoo.
|
||||||
- **When `/sdist/arch/` is newer than this folder, an update on this folder is very likely needed.**
|
- **When `/sdata/dist-arch/` is newer than this folder, an update on this folder is very likely needed.**
|
||||||
- Useful link: [Commit history on sdist/arch/](https://github.com/end-4/dots-hyprland/commits/main/sdist/arch)
|
- Useful link: [Commit history on sdata/dist-arch/](https://github.com/end-4/dots-hyprland/commits/main/sdata/dist-arch)
|
||||||
- See also [Install scripts | illogical-impulse](https://ii.clsty.link/en/dev/inst-script/)
|
- See also [Install scripts | illogical-impulse](https://ii.clsty.link/en/dev/inst-script/)
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
@@ -23,7 +23,7 @@ Note:
|
|||||||
1. Creates the _i2c_ group since Gentoo doesn't have this by default, then adds the user to it.
|
1. Creates the _i2c_ group since Gentoo doesn't have this by default, then adds the user to it.
|
||||||
2. Enables _bluetooth_ and _ydotool_ services (systemd or openrc)
|
2. Enables _bluetooth_ and _ydotool_ services (systemd or openrc)
|
||||||
3. _icons_, _konsole_, _hypr_, and _quickshell_ are are chowned to user since they're emerge in as root by default.
|
3. _icons_, _konsole_, _hypr_, and _quickshell_ are are chowned to user since they're emerge in as root by default.
|
||||||
4. gsettings and kwriteconfig6 are set (same as sdist/arch).
|
4. gsettings and kwriteconfig6 are set (same as sdata/dist-arch).
|
||||||
|
|
||||||
## Recommended use flags (useflags)
|
## Recommended use flags (useflags)
|
||||||
- **The recommended useflags are not required, this is a more out of the box experience with these**
|
- **The recommended useflags are not required, this is a more out of the box experience with these**
|
||||||
@@ -18,7 +18,7 @@ printf "${STY_RST}"
|
|||||||
pause
|
pause
|
||||||
|
|
||||||
printf "${STY_YELLOW}"
|
printf "${STY_YELLOW}"
|
||||||
printf "https://github.com/end-4/dots-hyprland/blob/main/sdist/gentoo/README.md"
|
printf "https://github.com/end-4/dots-hyprland/blob/main/sdata/dist-gentoo/README.md"
|
||||||
printf "Checkout the above README for potential bug fixes or additional information"
|
printf "Checkout the above README for potential bug fixes or additional information"
|
||||||
printf "${STY_RST}"
|
printf "${STY_RST}"
|
||||||
pause
|
pause
|
||||||
@@ -42,13 +42,13 @@ metapkgs=(illogical-impulse-{audio,backlight,basic,bibata-modern-classic-bin,fon
|
|||||||
ebuild_dir="/var/db/repos/localrepo"
|
ebuild_dir="/var/db/repos/localrepo"
|
||||||
|
|
||||||
# Unmasks
|
# Unmasks
|
||||||
x sudo cp ./sdist/gentoo/keywords ./sdist/gentoo/keywords-user
|
x sudo cp ./sdata/dist-gentoo/keywords ./sdata/dist-gentoo/keywords-user
|
||||||
x sed -i "s/$/ ~${arch}/" ./sdist/gentoo/keywords-user
|
x sed -i "s/$/ ~${arch}/" ./sdata/dist-gentoo/keywords-user
|
||||||
v sudo cp ./sdist/gentoo/keywords-user /etc/portage/package.accept_keywords/illogical-impulse
|
v sudo cp ./sdata/dist-gentoo/keywords-user /etc/portage/package.accept_keywords/illogical-impulse
|
||||||
|
|
||||||
# Use Flags
|
# Use Flags
|
||||||
v sudo cp ./sdist/gentoo/useflags /etc/portage/package.use/illogical-impulse
|
v sudo cp ./sdata/dist-gentoo/useflags /etc/portage/package.use/illogical-impulse
|
||||||
v sudo sh -c 'cat ./sdist/gentoo/additional-useflags >> /etc/portage/package.use/illogical-impulse'
|
v sudo sh -c 'cat ./sdata/dist-gentoo/additional-useflags >> /etc/portage/package.use/illogical-impulse'
|
||||||
|
|
||||||
# Update system
|
# Update system
|
||||||
v sudo emerge --sync
|
v sudo emerge --sync
|
||||||
@@ -67,11 +67,11 @@ x sudo mkdir -p ${ebuild_dir}/dev-libs/hyprlang
|
|||||||
x sudo mkdir -p ${ebuild_dir}/dev-libs/hyprlang
|
x sudo mkdir -p ${ebuild_dir}/dev-libs/hyprlang
|
||||||
x sudo mkdir -p ${ebuild_dir}/dev-util/hyprwayland-scanner
|
x sudo mkdir -p ${ebuild_dir}/dev-util/hyprwayland-scanner
|
||||||
|
|
||||||
v sudo cp ./sdist/gentoo/${HYPR_DIR}/hyprgraphics*.ebuild ${ebuild_dir}/dev-libs/hyprgraphics
|
v sudo cp ./sdata/dist-gentoo/${HYPR_DIR}/hyprgraphics*.ebuild ${ebuild_dir}/dev-libs/hyprgraphics
|
||||||
v sudo cp ./sdist/gentoo/${HYPR_DIR}/hyprland-qt-support*.ebuild ${ebuild_dir}/gui-libs/hyprland-qt-support
|
v sudo cp ./sdata/dist-gentoo/${HYPR_DIR}/hyprland-qt-support*.ebuild ${ebuild_dir}/gui-libs/hyprland-qt-support
|
||||||
v sudo cp ./sdist/gentoo/${HYPR_DIR}/hyprland-qtutils*.ebuild ${ebuild_dir}/gui-libs/hyprland-qtutils
|
v sudo cp ./sdata/dist-gentoo/${HYPR_DIR}/hyprland-qtutils*.ebuild ${ebuild_dir}/gui-libs/hyprland-qtutils
|
||||||
v sudo cp ./sdist/gentoo/${HYPR_DIR}/hyprlang*.ebuild ${ebuild_dir}/dev-libs/hyprlang
|
v sudo cp ./sdata/dist-gentoo/${HYPR_DIR}/hyprlang*.ebuild ${ebuild_dir}/dev-libs/hyprlang
|
||||||
v sudo cp ./sdist/gentoo/${HYPR_DIR}/hyprwayland-scanner*.ebuild ${ebuild_dir}/dev-util/hyprwayland-scanner
|
v sudo cp ./sdata/dist-gentoo/${HYPR_DIR}/hyprwayland-scanner*.ebuild ${ebuild_dir}/dev-util/hyprwayland-scanner
|
||||||
|
|
||||||
v sudo ebuild ${ebuild_dir}/dev-libs/hyprgraphics/hyprgraphics*9999.ebuild digest
|
v sudo ebuild ${ebuild_dir}/dev-libs/hyprgraphics/hyprgraphics*9999.ebuild digest
|
||||||
v sudo ebuild ${ebuild_dir}/gui-libs/hyprland-qt-support/hyprland-qt-support*9999.ebuild digest
|
v sudo ebuild ${ebuild_dir}/gui-libs/hyprland-qt-support/hyprland-qt-support*9999.ebuild digest
|
||||||
@@ -84,7 +84,7 @@ v sudo ebuild ${ebuild_dir}/dev-util/hyprwayland-scanner/hyprwayland-scanner*999
|
|||||||
# Install dependencies
|
# Install dependencies
|
||||||
for i in "${metapkgs[@]}"; do
|
for i in "${metapkgs[@]}"; do
|
||||||
x sudo mkdir -p ${ebuild_dir}/app-misc/${i}
|
x sudo mkdir -p ${ebuild_dir}/app-misc/${i}
|
||||||
v sudo cp ./sdist/gentoo/${i}/${i}*.ebuild ${ebuild_dir}/app-misc/${i}/
|
v sudo cp ./sdata/dist-gentoo/${i}/${i}*.ebuild ${ebuild_dir}/app-misc/${i}/
|
||||||
v sudo ebuild ${ebuild_dir}/app-misc/${i}/*.ebuild digest
|
v sudo ebuild ${ebuild_dir}/app-misc/${i}/*.ebuild digest
|
||||||
v sudo emerge --quiet app-misc/${i}
|
v sudo emerge --quiet app-misc/${i}
|
||||||
done
|
done
|
||||||
@@ -3,11 +3,11 @@
|
|||||||
- See also [Install scripts | illogical-impulse](https://ii.clsty.link/en/dev/inst-script/)
|
- See also [Install scripts | illogical-impulse](https://ii.clsty.link/en/dev/inst-script/)
|
||||||
- See also [#1061](https://github.com/end-4/dots-hyprland/issues/1061)
|
- See also [#1061](https://github.com/end-4/dots-hyprland/issues/1061)
|
||||||
|
|
||||||
**NOTE: The sdist/nix is not for NixOS but every distro, using Nix and home-manager.**
|
**NOTE: The sdata/dist-nix is not for NixOS but every distro, using Nix and home-manager.**
|
||||||
|
|
||||||
## plan
|
## plan
|
||||||
TODO:
|
TODO:
|
||||||
Write a proper `flake.nix` and optionally `home.nix` and other files under `./sdist/nix/iiqs-hm/` to install all dependencies that `./sdist/arch/install-deps.sh` does. (**excluding** the screenlock)
|
Write a proper `flake.nix` and optionally `home.nix` and other files under `./sdata/dist-nix/iiqs-hm/` to install all dependencies that `./sdata/dist-arch/install-deps.sh` does. (**excluding** the screenlock)
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
In this script, implement the process below:
|
In this script, implement the process below:
|
||||||
@@ -76,13 +76,13 @@ if [[ "$INSTALL_VIA_NIX" == "true" ]]; then
|
|||||||
TARGET_ID=nix
|
TARGET_ID=nix
|
||||||
printf "${STY_YELLOW}"
|
printf "${STY_YELLOW}"
|
||||||
printf "===WARNING===\n"
|
printf "===WARNING===\n"
|
||||||
printf "./sdist/${TARGET_ID}/install-deps.sh will be used.\n"
|
printf "./sdata/dist-${TARGET_ID}/install-deps.sh will be used.\n"
|
||||||
printf "The process is still WIP.\n"
|
printf "The process is still WIP.\n"
|
||||||
printf "Proceed only at your own risk.\n"
|
printf "Proceed only at your own risk.\n"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf "${STY_RST}"
|
printf "${STY_RST}"
|
||||||
pause
|
pause
|
||||||
source ./sdist/${TARGET_ID}/install-deps.sh
|
source ./sdata/dist-${TARGET_ID}/install-deps.sh
|
||||||
|
|
||||||
elif [[ "$OS_DISTRO_ID" =~ ^(arch|endeavouros)$ ]]; then
|
elif [[ "$OS_DISTRO_ID" =~ ^(arch|endeavouros)$ ]]; then
|
||||||
|
|
||||||
@@ -90,23 +90,23 @@ elif [[ "$OS_DISTRO_ID" =~ ^(arch|endeavouros)$ ]]; then
|
|||||||
printf "${STY_GREEN}"
|
printf "${STY_GREEN}"
|
||||||
printf "===INFO===\n"
|
printf "===INFO===\n"
|
||||||
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
||||||
printf "./sdist/${TARGET_ID}/install-deps.sh will be used.\n"
|
printf "./sdata/dist-${TARGET_ID}/install-deps.sh will be used.\n"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf "${STY_RST}"
|
printf "${STY_RST}"
|
||||||
pause
|
pause
|
||||||
source ./sdist/${TARGET_ID}/install-deps.sh
|
source ./sdata/dist-${TARGET_ID}/install-deps.sh
|
||||||
|
|
||||||
elif [[ -f "./sdist/${OS_DISTRO_ID}/install-deps.sh" ]]; then
|
elif [[ -f "./sdata/dist-${OS_DISTRO_ID}/install-deps.sh" ]]; then
|
||||||
|
|
||||||
TARGET_ID=${OS_DISTRO_ID}
|
TARGET_ID=${OS_DISTRO_ID}
|
||||||
printf "${STY_PURPLE}"
|
printf "${STY_PURPLE}"
|
||||||
printf "===NOTICE===\n"
|
printf "===NOTICE===\n"
|
||||||
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
||||||
printf "./sdist/${TARGET_ID}/install-deps.sh will be used.\n"
|
printf "./sdata/dist-${TARGET_ID}/install-deps.sh will be used.\n"
|
||||||
printf "This file is provided by the community.\n"
|
printf "This file is provided by the community.\n"
|
||||||
printf "It is not officially supported by github:end-4/dots-hyprland .\n"
|
printf "It is not officially supported by github:end-4/dots-hyprland .\n"
|
||||||
test -f "./sdist/${TARGET_ID}/README.md" && \
|
test -f "./sdata/dist-${TARGET_ID}/README.md" && \
|
||||||
printf "Read ${STY_INVERT} ./sdist/${TARGET_ID}/README.md ${STY_RST}${STY_PURPLE} for more information.\n"
|
printf "Read ${STY_INVERT} ./sdata/dist-${TARGET_ID}/README.md ${STY_RST}${STY_PURPLE} for more information.\n"
|
||||||
printf "${STY_BOLD}"
|
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_RST}\n"
|
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_RST}\n"
|
||||||
printf "${STY_PURPLE}"
|
printf "${STY_PURPLE}"
|
||||||
@@ -114,13 +114,13 @@ elif [[ -f "./sdist/${OS_DISTRO_ID}/install-deps.sh" ]]; then
|
|||||||
printf "\n"
|
printf "\n"
|
||||||
printf "${STY_RST}"
|
printf "${STY_RST}"
|
||||||
pause
|
pause
|
||||||
tmp_update_status="$(outdate_detect sdist/arch sdist/${TARGET_ID})"
|
tmp_update_status="$(outdate_detect sdata/dist-arch sdata/dist-${TARGET_ID})"
|
||||||
if [[ "${tmp_update_status}" =~ ^(OUTDATED|EMPTY_TARGET|EMPTY_SOURCE|FORCE_OUTDATED|WIP)$ ]]; then
|
if [[ "${tmp_update_status}" =~ ^(OUTDATED|EMPTY_TARGET|EMPTY_SOURCE|FORCE_OUTDATED|WIP)$ ]]; then
|
||||||
printf "${STY_RED}${STY_BOLD}===URGENT===${STY_RST}\n"
|
printf "${STY_RED}${STY_BOLD}===URGENT===${STY_RST}\n"
|
||||||
printf "${STY_RED}"
|
printf "${STY_RED}"
|
||||||
printf "The community provided ./sdist/${TARGET_ID}/ is not updated (update status: ${tmp_update_status}),\n"
|
printf "The community provided ./sdata/dist-${TARGET_ID}/ is not updated (update status: ${tmp_update_status}),\n"
|
||||||
printf "which means it does not fully reflect the latest changes of ./sdist/arch/ .\n"
|
printf "which means it does not fully reflect the latest changes of ./sdata/dist-arch/ .\n"
|
||||||
printf "You are highly recommended to abort this script, until someone (maybe you?) has updated the ./sdist/${TARGET_ID}/ to fully reflect the latest changes in ./sdist/arch/ .\n"
|
printf "You are highly recommended to abort this script, until someone (maybe you?) has updated the ./sdata/dist-${TARGET_ID}/ to fully reflect the latest changes in ./sdata/dist-arch/ .\n"
|
||||||
printf "PR is welcomed. Please see discussion#2140 for details.\n"
|
printf "PR is welcomed. Please see discussion#2140 for details.\n"
|
||||||
printf "${STY_UNDERLINE}https://github.com/end-4/dots-hyprland/discussions/2140${STY_RST}\n"
|
printf "${STY_UNDERLINE}https://github.com/end-4/dots-hyprland/discussions/2140${STY_RST}\n"
|
||||||
printf "${STY_RED}${STY_INVERT}If you are proceeding anyway, illogical-impulse will very likely not work as expected.${STY_RST}\n"
|
printf "${STY_RED}${STY_INVERT}If you are proceeding anyway, illogical-impulse will very likely not work as expected.${STY_RST}\n"
|
||||||
@@ -134,7 +134,7 @@ elif [[ -f "./sdist/${OS_DISTRO_ID}/install-deps.sh" ]]; then
|
|||||||
*)echo "Aborting...";exit 1;;
|
*)echo "Aborting...";exit 1;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
source ./sdist/${TARGET_ID}/install-deps.sh
|
source ./sdata/dist-${TARGET_ID}/install-deps.sh
|
||||||
|
|
||||||
elif [[ "$OS_DISTRO_ID_LIKE" == "arch" || "$OS_DISTRO_ID" == "cachyos" ]]; then
|
elif [[ "$OS_DISTRO_ID_LIKE" == "arch" || "$OS_DISTRO_ID" == "cachyos" ]]; then
|
||||||
|
|
||||||
@@ -143,14 +143,14 @@ elif [[ "$OS_DISTRO_ID_LIKE" == "arch" || "$OS_DISTRO_ID" == "cachyos" ]]; then
|
|||||||
printf "===WARNING===\n"
|
printf "===WARNING===\n"
|
||||||
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
||||||
printf "Detected distro ID_LIKE: ${OS_DISTRO_ID_LIKE}\n"
|
printf "Detected distro ID_LIKE: ${OS_DISTRO_ID_LIKE}\n"
|
||||||
printf "./sdist/${TARGET_ID}/install-deps.sh will be used.\n"
|
printf "./sdata/dist-${TARGET_ID}/install-deps.sh will be used.\n"
|
||||||
printf "Ideally, it should also work for your distro.\n"
|
printf "Ideally, it should also work for your distro.\n"
|
||||||
printf "Still, there is a chance that it not works as expected or even fails.\n"
|
printf "Still, there is a chance that it not works as expected or even fails.\n"
|
||||||
printf "Proceed only at your own risk.\n"
|
printf "Proceed only at your own risk.\n"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf "${STY_RST}"
|
printf "${STY_RST}"
|
||||||
pause
|
pause
|
||||||
source ./sdist/${TARGET_ID}/install-deps.sh
|
source ./sdata/dist-${TARGET_ID}/install-deps.sh
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
@@ -159,13 +159,13 @@ else
|
|||||||
printf "${STY_RED}"
|
printf "${STY_RED}"
|
||||||
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
||||||
printf "Detected distro ID_LIKE: ${OS_DISTRO_ID_LIKE}\n"
|
printf "Detected distro ID_LIKE: ${OS_DISTRO_ID_LIKE}\n"
|
||||||
printf "./sdist/${OS_DISTRO_ID}/install-deps.sh not found.\n"
|
printf "./sdata/dist-${OS_DISTRO_ID}/install-deps.sh not found.\n"
|
||||||
printf "./sdist/${TARGET_ID}/install-deps.sh will be used.\n"
|
printf "./sdata/dist-${TARGET_ID}/install-deps.sh will be used.\n"
|
||||||
printf "1. It may disrupt your system and will likely fail without your manual intervention.\n"
|
printf "1. It may disrupt your system and will likely fail without your manual intervention.\n"
|
||||||
printf "2. It's WIP and only contains small number of dependencies far from enough.\n"
|
printf "2. It's WIP and only contains small number of dependencies far from enough.\n"
|
||||||
printf "Proceed only at your own risk.\n"
|
printf "Proceed only at your own risk.\n"
|
||||||
printf "${STY_RST}"
|
printf "${STY_RST}"
|
||||||
pause
|
pause
|
||||||
source ./sdist/${TARGET_ID}/install-deps.sh
|
source ./sdata/dist-${TARGET_ID}/install-deps.sh
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -21,13 +21,13 @@ if [[ "$INSTALL_VIA_NIX" == "true" ]]; then
|
|||||||
TARGET_ID=fallback
|
TARGET_ID=fallback
|
||||||
printf "${STY_YELLOW}"
|
printf "${STY_YELLOW}"
|
||||||
printf "===WARNING===\n"
|
printf "===WARNING===\n"
|
||||||
printf "./sdist/${TARGET_ID}/install-setups.sh will be used.\n"
|
printf "./sdata/dist-${TARGET_ID}/install-setups.sh will be used.\n"
|
||||||
printf "The process is still WIP.\n"
|
printf "The process is still WIP.\n"
|
||||||
printf "Proceed only at your own risk.\n"
|
printf "Proceed only at your own risk.\n"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf "${STY_RST}"
|
printf "${STY_RST}"
|
||||||
pause
|
pause
|
||||||
source ./sdist/${TARGET_ID}/install-setups.sh
|
source ./sdata/dist-${TARGET_ID}/install-setups.sh
|
||||||
|
|
||||||
elif [[ "$OS_DISTRO_ID" == "arch" ]]; then
|
elif [[ "$OS_DISTRO_ID" == "arch" ]]; then
|
||||||
|
|
||||||
@@ -35,19 +35,19 @@ elif [[ "$OS_DISTRO_ID" == "arch" ]]; then
|
|||||||
printf "${STY_GREEN}"
|
printf "${STY_GREEN}"
|
||||||
printf "===INFO===\n"
|
printf "===INFO===\n"
|
||||||
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
||||||
printf "./sdist/${TARGET_ID}/install-setups.sh will be used.\n"
|
printf "./sdata/dist-${TARGET_ID}/install-setups.sh will be used.\n"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf "${STY_RST}"
|
printf "${STY_RST}"
|
||||||
pause
|
pause
|
||||||
source ./sdist/${TARGET_ID}/install-setups.sh
|
source ./sdata/dist-${TARGET_ID}/install-setups.sh
|
||||||
|
|
||||||
elif [[ -f "./sdist/${OS_DISTRO_ID}/install-setups.sh" ]]; then
|
elif [[ -f "./sdata/dist-${OS_DISTRO_ID}/install-setups.sh" ]]; then
|
||||||
|
|
||||||
TARGET_ID=${OS_DISTRO_ID}
|
TARGET_ID=${OS_DISTRO_ID}
|
||||||
printf "${STY_PURPLE}"
|
printf "${STY_PURPLE}"
|
||||||
printf "===NOTICE===\n"
|
printf "===NOTICE===\n"
|
||||||
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
||||||
printf "./sdist/${TARGET_ID}/install-setups.sh will be used.\n"
|
printf "./sdata/dist-${TARGET_ID}/install-setups.sh will be used.\n"
|
||||||
printf "This file is provided by the community.\n"
|
printf "This file is provided by the community.\n"
|
||||||
printf "It is not officially supported by github:end-4/dots-hyprland .\n"
|
printf "It is not officially supported by github:end-4/dots-hyprland .\n"
|
||||||
printf "${STY_INVERT}"
|
printf "${STY_INVERT}"
|
||||||
@@ -57,7 +57,7 @@ elif [[ -f "./sdist/${OS_DISTRO_ID}/install-setups.sh" ]]; then
|
|||||||
printf "\n"
|
printf "\n"
|
||||||
printf "${STY_RST}"
|
printf "${STY_RST}"
|
||||||
pause
|
pause
|
||||||
source ./sdist/${TARGET_ID}/install-setups.sh
|
source ./sdata/dist-${TARGET_ID}/install-setups.sh
|
||||||
|
|
||||||
elif [[ "$OS_DISTRO_ID_LIKE" == "arch" || "$OS_DISTRO_ID" == "cachyos" ]]; then
|
elif [[ "$OS_DISTRO_ID_LIKE" == "arch" || "$OS_DISTRO_ID" == "cachyos" ]]; then
|
||||||
|
|
||||||
@@ -66,14 +66,14 @@ elif [[ "$OS_DISTRO_ID_LIKE" == "arch" || "$OS_DISTRO_ID" == "cachyos" ]]; then
|
|||||||
printf "===WARNING===\n"
|
printf "===WARNING===\n"
|
||||||
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
||||||
printf "Detected distro ID_LIKE: ${OS_DISTRO_ID_LIKE}\n"
|
printf "Detected distro ID_LIKE: ${OS_DISTRO_ID_LIKE}\n"
|
||||||
printf "./sdist/${TARGET_ID}/install-setups.sh will be used.\n"
|
printf "./sdata/dist-${TARGET_ID}/install-setups.sh will be used.\n"
|
||||||
printf "Ideally, it should also work for your distro.\n"
|
printf "Ideally, it should also work for your distro.\n"
|
||||||
printf "Still, there is a chance that it not works as expected or even fails.\n"
|
printf "Still, there is a chance that it not works as expected or even fails.\n"
|
||||||
printf "Proceed only at your own risk.\n"
|
printf "Proceed only at your own risk.\n"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf "${STY_RST}"
|
printf "${STY_RST}"
|
||||||
pause
|
pause
|
||||||
source ./sdist/${TARGET_ID}/install-setups.sh
|
source ./sdata/dist-${TARGET_ID}/install-setups.sh
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
@@ -82,13 +82,13 @@ else
|
|||||||
printf "===WARNING===\n"
|
printf "===WARNING===\n"
|
||||||
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
printf "Detected distro ID: ${OS_DISTRO_ID}\n"
|
||||||
printf "Detected distro ID_LIKE: ${OS_DISTRO_ID_LIKE}\n"
|
printf "Detected distro ID_LIKE: ${OS_DISTRO_ID_LIKE}\n"
|
||||||
printf "./sdist/${OS_DISTRO_ID}/install-setups.sh not found.\n"
|
printf "./sdata/dist-${OS_DISTRO_ID}/install-setups.sh not found.\n"
|
||||||
printf "./sdist/${TARGET_ID}/install-setups.sh will be used.\n"
|
printf "./sdata/dist-${TARGET_ID}/install-setups.sh will be used.\n"
|
||||||
printf "It might fail or disrupt your system.\n"
|
printf "It might fail or disrupt your system.\n"
|
||||||
printf "Proceed only at your own risk.\n"
|
printf "Proceed only at your own risk.\n"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf "${STY_RST}"
|
printf "${STY_RST}"
|
||||||
pause
|
pause
|
||||||
source ./sdist/${TARGET_ID}/install-setups.sh
|
source ./sdata/dist-${TARGET_ID}/install-setups.sh
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ set -uo pipefail
|
|||||||
|
|
||||||
# === Configuration ===
|
# === Configuration ===
|
||||||
DOTS_ROOT="${REPO_ROOT}/dots"
|
DOTS_ROOT="${REPO_ROOT}/dots"
|
||||||
ARCH_PACKAGES_DIR="${REPO_ROOT}/sdist/arch"
|
ARCH_PACKAGES_DIR="${REPO_ROOT}/sdata/dist-arch"
|
||||||
UPDATE_IGNORE_FILE="${REPO_ROOT}/.updateignore"
|
UPDATE_IGNORE_FILE="${REPO_ROOT}/.updateignore"
|
||||||
HOME_UPDATE_IGNORE_FILE="${HOME}/.updateignore"
|
HOME_UPDATE_IGNORE_FILE="${HOME}/.updateignore"
|
||||||
|
|
||||||
@@ -303,7 +303,7 @@ list_packages() {
|
|||||||
local changed_packages=()
|
local changed_packages=()
|
||||||
|
|
||||||
if [[ ! -d "$ARCH_PACKAGES_DIR" ]]; then
|
if [[ ! -d "$ARCH_PACKAGES_DIR" ]]; then
|
||||||
log_warning "No sdist/arch directory found"
|
log_warning "No sdata/dist-arch directory found"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -319,7 +319,7 @@ list_packages() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ ${#available_packages[@]} -eq 0 ]]; then
|
if [[ ${#available_packages[@]} -eq 0 ]]; then
|
||||||
log_info "No packages found in sdist/arch directory"
|
log_info "No packages found in sdata/dist-arch directory"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -557,7 +557,7 @@ if [[ "$CHECK_PACKAGES" == true ]]; then
|
|||||||
log_header "Package Management"
|
log_header "Package Management"
|
||||||
|
|
||||||
if [[ ! -d "$ARCH_PACKAGES_DIR" ]]; then
|
if [[ ! -d "$ARCH_PACKAGES_DIR" ]]; then
|
||||||
log_warning "No sdist/arch directory found. Skipping package management."
|
log_warning "No sdata/dist-arch directory found. Skipping package management."
|
||||||
else
|
else
|
||||||
# Check if any PKGBUILDs have changed
|
# Check if any PKGBUILDs have changed
|
||||||
changed_pkgbuilds=()
|
changed_pkgbuilds=()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# exp-update-tester.sh - Test suite for update.sh (sourced subcommand)
|
# exp-update-tester.sh - Test suite for exp-update.sh
|
||||||
#
|
#
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ if which pacman &>/dev/null; then
|
|||||||
ARCH_PACKAGES_DIR="${REPO_ROOT}/dist-arch"
|
ARCH_PACKAGES_DIR="${REPO_ROOT}/dist-arch"
|
||||||
elif [[ -d "${REPO_ROOT}/arch-packages" ]]; then
|
elif [[ -d "${REPO_ROOT}/arch-packages" ]]; then
|
||||||
ARCH_PACKAGES_DIR="${REPO_ROOT}/arch-packages"
|
ARCH_PACKAGES_DIR="${REPO_ROOT}/arch-packages"
|
||||||
elif [[ -d "${REPO_ROOT}/sdist/arch" ]]; then
|
elif [[ -d "${REPO_ROOT}/sdata/dist-arch" ]]; then
|
||||||
ARCH_PACKAGES_DIR="${REPO_ROOT}/sdist/arch"
|
ARCH_PACKAGES_DIR="${REPO_ROOT}/sdata/dist-arch"
|
||||||
else
|
else
|
||||||
ARCH_PACKAGES_DIR="${REPO_ROOT}/dist-arch" # Default fallback
|
ARCH_PACKAGES_DIR="${REPO_ROOT}/dist-arch" # Default fallback
|
||||||
fi
|
fi
|
||||||
@@ -868,7 +868,7 @@ if [[ "$CHECK_PACKAGES" == true ]]; then
|
|||||||
|
|
||||||
if [[ "$PKG_TOOLS_AVAILABLE" == true ]]; then
|
if [[ "$PKG_TOOLS_AVAILABLE" == true ]]; then
|
||||||
if [[ ! -d "$ARCH_PACKAGES_DIR" ]]; then
|
if [[ ! -d "$ARCH_PACKAGES_DIR" ]]; then
|
||||||
log_warning "No packages directory found (tried: dist-arch, arch-packages, sdist/arch). Skipping package management."
|
log_warning "No packages directory found (tried: dist-arch, arch-packages, sdata/dist-arch). Skipping package management."
|
||||||
else
|
else
|
||||||
changed_pkgbuilds=()
|
changed_pkgbuilds=()
|
||||||
for pkg_dir in "$ARCH_PACKAGES_DIR"/*/; do
|
for pkg_dir in "$ARCH_PACKAGES_DIR"/*/; do
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
This folder contains data specific to every distro for install scripts.
|
|
||||||
Reference in New Issue
Block a user