fix: add vlnk→hlnk sed rules and GUID hex fix to build scripts
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user