From b4095e471e83ad50d42e6cb94301c426c3e26f5c Mon Sep 17 00:00:00 2001 From: Don Williams Date: Mon, 29 Dec 2025 12:42:50 -0500 Subject: [PATCH] More build errors to fix On branch development Your branch is ahead of 'origin/development' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: install-scripts/hyprland.sh --- install-scripts/hyprland.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install-scripts/hyprland.sh b/install-scripts/hyprland.sh index 026ccc5..45b6fbd 100755 --- a/install-scripts/hyprland.sh +++ b/install-scripts/hyprland.sh @@ -105,6 +105,15 @@ EOF echo "$PATCH_FILES" | xargs -r sed -ri 's/([A-Za-z_][A-Za-z0-9_:\->\.]+)\s*\.\s*append_range\s*\(/APPEND_RANGE(\1, /g' fi + # Replace #embed with an autogenerated bytes include for toolchains lacking it + EX_CONF="$(pwd)/example/hyprland.conf" + EMBED_INC="$(pwd)/src/config/defaultConfig.bytes.inc" + if [ -f "$EX_CONF" ]; then + xxd -i -g 1 -c 16 "$EX_CONF" | sed -n '/^{/{flag=1;next} /};/{flag=0} flag p' > "$EMBED_INC" || true + # Swap the directive in the header to include the generated bytes + sed -ri 's|^\s*#embed\s+"\.{0,2}/\.{0,2}/example/hyprland\.conf"\s*$|#include "defaultConfig.bytes.inc"|g' src/config/defaultConfig.hpp || true + fi + # Apply patch only if it applies cleanly; otherwise skip if [ -f ../assets/0001-fix-hyprland-compile-issue.patch ]; then if patch -p1 --dry-run < ../assets/0001-fix-hyprland-compile-issue.patch >/dev/null 2>&1; then