mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
Fixing install order
On branch hl-051 Your branch is up to date with 'origin/hl-051'. Changes to be committed: modified: install-scripts/aquamarine.sh modified: install-scripts/hyprland.sh modified: update-hyprland.sh
This commit is contained in:
parent
ce70cf5c63
commit
82367a41ae
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
tag="v0.9.2"
|
tag="v0.9.3"
|
||||||
# Allow environment override
|
# Allow environment override
|
||||||
if [ -n "${AQUAMARINE_TAG:-}" ]; then tag="$AQUAMARINE_TAG"; fi
|
if [ -n "${AQUAMARINE_TAG:-}" ]; then tag="$AQUAMARINE_TAG"; fi
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# Main Hyprland Package#
|
# Main Hyprland Package#
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
tag="v0.50.1"
|
tag="v0.51.1"
|
||||||
# Allow environment override
|
# Allow environment override
|
||||||
if [ -n "${HYPRLAND_TAG:-}" ]; then tag="$HYPRLAND_TAG"; fi
|
if [ -n "${HYPRLAND_TAG:-}" ]; then tag="$HYPRLAND_TAG"; fi
|
||||||
|
|
||||||
|
|||||||
@ -228,19 +228,21 @@ export HYPRLAND_TAG AQUAMARINE_TAG HYPRUTILS_TAG HYPRLANG_TAG HYPRGRAPHICS_TAG H
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure core prerequisites are installed before hyprland on install runs
|
# Ensure core prerequisites are installed before hyprland on install runs
|
||||||
# Order: wayland-protocols-src, hyprutils, hyprlang, aquamarine, hyprland
|
# Order: wayland-protocols-src, hyprland-protocols, hyprutils, hyprlang, aquamarine, hyprland
|
||||||
if [[ $DO_INSTALL -eq 1 ]]; then
|
if [[ $DO_INSTALL -eq 1 ]]; then
|
||||||
local has_hl=0 has_aqua=0 has_wp=0 has_utils=0 has_lang=0
|
local has_hl=0 has_aqua=0 has_wp=0 has_utils=0 has_lang=0 has_hlprot=0
|
||||||
for m in "${modules[@]}"; do
|
for m in "${modules[@]}"; do
|
||||||
[[ "$m" == "hyprland" ]] && has_hl=1
|
[[ "$m" == "hyprland" ]] && has_hl=1
|
||||||
[[ "$m" == "aquamarine" ]] && has_aqua=1
|
[[ "$m" == "aquamarine" ]] && has_aqua=1
|
||||||
[[ "$m" == "wayland-protocols-src" ]] && has_wp=1
|
[[ "$m" == "wayland-protocols-src" ]] && has_wp=1
|
||||||
|
[[ "$m" == "hyprland-protocols" ]] && has_hlprot=1
|
||||||
[[ "$m" == "hyprutils" ]] && has_utils=1
|
[[ "$m" == "hyprutils" ]] && has_utils=1
|
||||||
[[ "$m" == "hyprlang" ]] && has_lang=1
|
[[ "$m" == "hyprlang" ]] && has_lang=1
|
||||||
done
|
done
|
||||||
if [[ $has_hl -eq 1 ]]; then
|
if [[ $has_hl -eq 1 ]]; then
|
||||||
# ensure each prerequisite is present
|
# ensure each prerequisite is present
|
||||||
[[ $has_wp -eq 0 ]] && modules=("wayland-protocols-src" "${modules[@]}")
|
[[ $has_wp -eq 0 ]] && modules=("wayland-protocols-src" "${modules[@]}")
|
||||||
|
[[ $has_hlprot -eq 0 ]] && modules=("hyprland-protocols" "${modules[@]}")
|
||||||
[[ $has_utils -eq 0 ]] && modules=("hyprutils" "${modules[@]}")
|
[[ $has_utils -eq 0 ]] && modules=("hyprutils" "${modules[@]}")
|
||||||
[[ $has_lang -eq 0 ]] && modules=("hyprlang" "${modules[@]}")
|
[[ $has_lang -eq 0 ]] && modules=("hyprlang" "${modules[@]}")
|
||||||
[[ $has_aqua -eq 0 ]] && modules=("aquamarine" "${modules[@]}")
|
[[ $has_aqua -eq 0 ]] && modules=("aquamarine" "${modules[@]}")
|
||||||
@ -248,14 +250,21 @@ export HYPRLAND_TAG AQUAMARINE_TAG HYPRUTILS_TAG HYPRLANG_TAG HYPRGRAPHICS_TAG H
|
|||||||
# Reorder to exact sequence before hyprland
|
# Reorder to exact sequence before hyprland
|
||||||
# Remove existing occurrences and rebuild in correct order
|
# Remove existing occurrences and rebuild in correct order
|
||||||
local tmp=()
|
local tmp=()
|
||||||
local inserted_wp=0 inserted_utils=0 inserted_lang=0 inserted_aqua=0
|
local inserted_wp=0 inserted_hlprot=0 inserted_utils=0 inserted_lang=0 inserted_aqua=0
|
||||||
for m in "${modules[@]}"; do
|
for m in "${modules[@]}"; do
|
||||||
if [[ "$m" == "wayland-protocols-src" ]]; then
|
if [[ "$m" == "wayland-protocols-src" ]]; then
|
||||||
if [[ $inserted_wp -eq 0 ]]; then tmp+=("wayland-protocols-src"); inserted_wp=1; fi
|
if [[ $inserted_wp -eq 0 ]]; then tmp+=("wayland-protocols-src"); inserted_wp=1; fi
|
||||||
|
elif [[ "$m" == "hyprland-protocols" ]]; then
|
||||||
|
if [[ $inserted_hlprot -eq 0 ]]; then
|
||||||
|
# ensure wayland-protocols-src before hyprland-protocols
|
||||||
|
if [[ $inserted_wp -eq 0 ]]; then tmp+=("wayland-protocols-src"); inserted_wp=1; fi
|
||||||
|
tmp+=("hyprland-protocols"); inserted_hlprot=1
|
||||||
|
fi
|
||||||
elif [[ "$m" == "hyprutils" ]]; then
|
elif [[ "$m" == "hyprutils" ]]; then
|
||||||
if [[ $inserted_utils -eq 0 ]]; then
|
if [[ $inserted_utils -eq 0 ]]; then
|
||||||
# ensure protocols before utils
|
# ensure protocols before utils
|
||||||
if [[ $inserted_wp -eq 0 ]]; then tmp+=("wayland-protocols-src"); inserted_wp=1; fi
|
if [[ $inserted_wp -eq 0 ]]; then tmp+=("wayland-protocols-src"); inserted_wp=1; fi
|
||||||
|
if [[ $inserted_hlprot -eq 0 ]]; then tmp+=("hyprland-protocols"); inserted_hlprot=1; fi
|
||||||
tmp+=("hyprutils"); inserted_utils=1
|
tmp+=("hyprutils"); inserted_utils=1
|
||||||
fi
|
fi
|
||||||
elif [[ "$m" == "hyprlang" ]]; then
|
elif [[ "$m" == "hyprlang" ]]; then
|
||||||
@ -263,6 +272,7 @@ export HYPRLAND_TAG AQUAMARINE_TAG HYPRUTILS_TAG HYPRLANG_TAG HYPRGRAPHICS_TAG H
|
|||||||
# ensure utils before lang
|
# ensure utils before lang
|
||||||
if [[ $inserted_utils -eq 0 ]]; then
|
if [[ $inserted_utils -eq 0 ]]; then
|
||||||
if [[ $inserted_wp -eq 0 ]]; then tmp+=("wayland-protocols-src"); inserted_wp=1; fi
|
if [[ $inserted_wp -eq 0 ]]; then tmp+=("wayland-protocols-src"); inserted_wp=1; fi
|
||||||
|
if [[ $inserted_hlprot -eq 0 ]]; then tmp+=("hyprland-protocols"); inserted_hlprot=1; fi
|
||||||
tmp+=("hyprutils"); inserted_utils=1
|
tmp+=("hyprutils"); inserted_utils=1
|
||||||
fi
|
fi
|
||||||
tmp+=("hyprlang"); inserted_lang=1
|
tmp+=("hyprlang"); inserted_lang=1
|
||||||
@ -273,6 +283,7 @@ export HYPRLAND_TAG AQUAMARINE_TAG HYPRUTILS_TAG HYPRLANG_TAG HYPRGRAPHICS_TAG H
|
|||||||
if [[ $inserted_lang -eq 0 ]]; then
|
if [[ $inserted_lang -eq 0 ]]; then
|
||||||
if [[ $inserted_utils -eq 0 ]]; then
|
if [[ $inserted_utils -eq 0 ]]; then
|
||||||
if [[ $inserted_wp -eq 0 ]]; then tmp+=("wayland-protocols-src"); inserted_wp=1; fi
|
if [[ $inserted_wp -eq 0 ]]; then tmp+=("wayland-protocols-src"); inserted_wp=1; fi
|
||||||
|
if [[ $inserted_hlprot -eq 0 ]]; then tmp+=("hyprland-protocols"); inserted_hlprot=1; fi
|
||||||
tmp+=("hyprutils"); inserted_utils=1
|
tmp+=("hyprutils"); inserted_utils=1
|
||||||
fi
|
fi
|
||||||
tmp+=("hyprlang"); inserted_lang=1
|
tmp+=("hyprlang"); inserted_lang=1
|
||||||
@ -282,6 +293,7 @@ export HYPRLAND_TAG AQUAMARINE_TAG HYPRUTILS_TAG HYPRLANG_TAG HYPRGRAPHICS_TAG H
|
|||||||
elif [[ "$m" == "hyprland" ]]; then
|
elif [[ "$m" == "hyprland" ]]; then
|
||||||
# ensure all prerequisites already present
|
# ensure all prerequisites already present
|
||||||
if [[ $inserted_wp -eq 0 ]]; then tmp+=("wayland-protocols-src"); inserted_wp=1; fi
|
if [[ $inserted_wp -eq 0 ]]; then tmp+=("wayland-protocols-src"); inserted_wp=1; fi
|
||||||
|
if [[ $inserted_hlprot -eq 0 ]]; then tmp+=("hyprland-protocols"); inserted_hlprot=1; fi
|
||||||
if [[ $inserted_utils -eq 0 ]]; then tmp+=("hyprutils"); inserted_utils=1; fi
|
if [[ $inserted_utils -eq 0 ]]; then tmp+=("hyprutils"); inserted_utils=1; fi
|
||||||
if [[ $inserted_lang -eq 0 ]]; then tmp+=("hyprlang"); inserted_lang=1; fi
|
if [[ $inserted_lang -eq 0 ]]; then tmp+=("hyprlang"); inserted_lang=1; fi
|
||||||
if [[ $inserted_aqua -eq 0 ]]; then tmp+=("aquamarine"); inserted_aqua=1; fi
|
if [[ $inserted_aqua -eq 0 ]]; then tmp+=("aquamarine"); inserted_aqua=1; fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user