]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - Plugson/pack.sh
Update help text
[Ventoy.git] / Plugson / pack.sh
1 #!/bin/sh
2
3 if [ -n "$PKG_DATE" ]; then
4 plugson_verion=$PKG_DATE
5 else
6 plugson_verion=$(date '+%Y%m%d %H:%M:%S')
7 fi
8
9 sed "s#.*plugson_build_date.*# <b id=\"plugson_build_date\">$plugson_verion</b>#" -i ./www/index.html
10
11 if [ ! -f ./vs/VentoyPlugson/Release/VentoyPlugson.exe ]; then
12 echo "NO VentoyPlugson.exe found"
13 exit 1
14 fi
15
16 if [ -f ./www.tar.xz ]; then
17 rm -f ./www.tar.xz
18 fi
19
20 [ -f ./www/helplist ] && rm -f ./www/helplist
21 ls -1 ../INSTALL/grub/help/ | while read line; do
22 echo -n ${line:0:5} >> ./www/helplist
23 done
24 echo -n "$plugson_verion" > ./www/buildtime
25
26 tar cf www.tar www
27 xz --check=crc32 www.tar
28
29 rm -f ../INSTALL/VentoyPlugson.exe
30 cp -a ./vs/VentoyPlugson/Release/VentoyPlugson.exe ../INSTALL/VentoyPlugson.exe
31
32 rm -f ../INSTALL/tool/plugson.tar.xz
33 mv ./www.tar.xz ../INSTALL/tool/plugson.tar.xz
34
35 echo ""
36 echo "========= SUCCESS ==========="
37 echo ""
38
39