From c71ff93c6b28551c3b06f5817a4a19cdd45336a9 Mon Sep 17 00:00:00 2001 From: vasilito Date: Tue, 30 Jun 2026 19:54:07 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20add=20vlnk=E2=86=92hlnk=20sed=20rules=20?= =?UTF-8?q?and=20GUID=20hex=20fix=20to=20build=20scripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit build_grub2_204.sh: Add vlnk/VLNK/Vlnk→hlnk/HLNK/Hlnk sed rules for build-time transformation. Add targeted sed rule to replace VENTOY_GUID hex values (0x77772020,0x2e77,0x6576,...) with HIPERISO_GUID values (0x65706968,0x6972,0x6f73,...) so the binary GUID no longer spells 'www.ventoy.net' in memory. build_gui_all.sh: Fix vlnk.c→hlnk.c reference in GUI build. --- scripts/build_grub2_204.sh | 4 ++++ scripts/build_gui_all.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build_grub2_204.sh b/scripts/build_grub2_204.sh index 6566f5d..dbe9b85 100644 --- a/scripts/build_grub2_204.sh +++ b/scripts/build_grub2_204.sh @@ -34,6 +34,10 @@ find "$SRC_DIR" -type f \( -name '*.c' -o -name '*.h' -o -name '*.S' \ -e 's/VTOY/HISO/g' \ -e 's/ventoy/hiperiso/g' \ -e 's/Ventoy/Hiperiso/g' \ + -e 's/vlnk/hlnk/g' \ + -e 's/VLNK/HLNK/g' \ + -e 's/Vlnk/Hlnk/g' \ + -e 's/0x77772020, 0x2e77, 0x6576, { 0x6e, 0x74, 0x6f, 0x79, 0x2e, 0x6e, 0x65, 0x74/0x65706968, 0x6972, 0x6f73, { 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x77, 0x77, 0x77/' \ {} + find "$SRC_DIR" -depth -type d \( -name '*ventoy*' -o -name '*Ventoy*' \) | while read d; do diff --git a/scripts/build_gui_all.sh b/scripts/build_gui_all.sh index 640c074..e03048c 100755 --- a/scripts/build_gui_all.sh +++ b/scripts/build_gui_all.sh @@ -199,7 +199,7 @@ safe_install_bin hisocli "$PAYLOAD/tool/x86_64/hisocli" gcc -O2 -D_FILE_OFFSET_BITS=64 -fno-pie -no-pie \ "$HIPERISO_ROOT/src/hisolnk/crc32.c" \ "$HIPERISO_ROOT/src/hisolnk/main_linux.c" \ - "$HIPERISO_ROOT/src/hisolnk/vlnk.c" \ + "$HIPERISO_ROOT/src/hisolnk/hlnk.c" \ -I"$HIPERISO_ROOT/src/hisolnk" \ -o hisolnk strip hisolnk