X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/08d218fd828faf918d6dbdf58e23beb02aebcfdf..b63ce2a3df409eb0dd0bed5b977a75605997fd3c:/INSTALL/ventoy_pack.sh diff --git a/INSTALL/ventoy_pack.sh b/INSTALL/ventoy_pack.sh index e9cfe9e..8c2655c 100644 --- a/INSTALL/ventoy_pack.sh +++ b/INSTALL/ventoy_pack.sh @@ -25,6 +25,11 @@ sh mkcpio.sh sh mkloopex.sh cd - +cd ../LinuxGUI +sh language.sh || exit 1 +sh build.sh +cd - + LOOP=$(losetup -f) @@ -88,12 +93,17 @@ xz --check=crc32 $tmpdir/boot/core.img cp $OPT ./tool $tmpdir/ rm -f $tmpdir/ENROLL_THIS_KEY_IN_MOKMANAGER.cer cp $OPT Ventoy2Disk.sh $tmpdir/ +cp $OPT VentoyWeb.sh $tmpdir/ cp $OPT README $tmpdir/ cp $OPT plugin $tmpdir/ cp $OPT CreatePersistentImg.sh $tmpdir/ dos2unix -q $tmpdir/Ventoy2Disk.sh +dos2unix -q $tmpdir/VentoyWeb.sh dos2unix -q $tmpdir/CreatePersistentImg.sh +cp $OPT ../LinuxGUI/WebUI $tmpdir/ +sed 's/.*SCRIPT_DEL_THIS \(.*\)/\1/g' -i $tmpdir/WebUI/index.html + #32MB disk img dd status=none if=$LOOP of=$tmpdir/ventoy/ventoy.disk.img bs=512 count=$VENTOY_SECTOR_NUM skip=$part2_start_sector xz --check=crc32 $tmpdir/ventoy/ventoy.disk.img @@ -119,6 +129,7 @@ done find $tmpdir/ -type d -exec chmod 755 "{}" + find $tmpdir/ -type f -exec chmod 644 "{}" + chmod +x $tmpdir/Ventoy2Disk.sh +chmod +x $tmpdir/VentoyWeb.sh chmod +x $tmpdir/CreatePersistentImg.sh tar -czvf ventoy-${curver}-linux.tar.gz $tmpdir @@ -130,6 +141,7 @@ cp $OPT Ventoy2Disk*.exe $tmpdir/ cp $OPT $LANG_DIR/languages.ini $tmpdir/ventoy/ rm -rf $tmpdir/tool rm -f $tmpdir/*.sh +rm -rf $tmpdir/WebUI rm -f $tmpdir/README