mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2026-02-05 01:30:13 +01:00
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
This commit is contained in:
parent
90c393ecd8
commit
b4095e471e
@ -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'
|
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
|
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
|
# Apply patch only if it applies cleanly; otherwise skip
|
||||||
if [ -f ../assets/0001-fix-hyprland-compile-issue.patch ]; then
|
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
|
if patch -p1 --dry-run < ../assets/0001-fix-hyprland-compile-issue.patch >/dev/null 2>&1; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user