]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - Plugson/pack.sh
4 hexval
=$(printf '%08x' $1)
9 echo -en "\x$hex_B3\x$hex_B2\x$hex_B1\x$hex_B0"
12 if [ -n "$PKG_DATE" ]; then
13 plugson_verion
=$PKG_DATE
15 plugson_verion
=$(date '+%Y%m%d %H:%M:%S')
18 sed "s#.*plugson_build_date.*# <b id=\"plugson_build_date\">$plugson_verion</b>#" -i .
/www
/index.html
20 if [ ! -f .
/vs
/VentoyPlugson
/Release
/VentoyPlugson.exe
]; then
21 echo "NO VentoyPlugson.exe found"
25 if [ -f .
/www.
tar.xz
]; then
29 echo -n "$plugson_verion" > .
/www
/buildtime
32 xz
--check=crc32 www.
tar
34 xzdec
=$(stat -c '%s' ./www.tar.xz)
37 output_hex_u32
0x54535251 > ex.bin
38 output_hex_u32
$xzdec >> ex.bin
39 output_hex_u32
0xa4a3a2a1 >> ex.bin
41 cat .
/vs
/VentoyPlugson
/Release
/VentoyPlugson.exe .
/www.
tar.xz ex.bin
> VentoyPlugson.exe
44 rm -f ..
/INSTALL
/VentoyPlugson.exe
45 cp -a .
/VentoyPlugson.exe ..
/INSTALL
/VentoyPlugson.exe
47 rm -f ..
/INSTALL
/tool
/plugson.
tar.xz
48 mv .
/www.
tar.xz ..
/INSTALL
/tool
/plugson.
tar.xz
51 echo "========= SUCCESS ==========="