]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - Plugson/pack.sh
update pl_PL.json
[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 ./vs/VentoyPlugson/x64/Release/VentoyPlugson_X64.exe ]; then
17 echo "NO VentoyPlugson_X64.exe found"
18 exit 1
19 fi
20
21 if [ -f ./www.tar.xz ]; then
22 rm -f ./www.tar.xz
23 fi
24
25 [ -f ./www/helplist ] && rm -f ./www/helplist
26 ls -1 ../INSTALL/grub/help/ | while read line; do
27 echo -n ${line:0:5} >> ./www/helplist
28 done
29 [ -f ./www/menulist ] && rm -f ./www/menulist
30 ls -1 ../INSTALL/grub/menu/ | while read line; do
31 echo -n ${line:0:5} >> ./www/menulist
32 done
33 echo -n "$plugson_verion" > ./www/buildtime
34
35 tar cf www.tar www
36 xz --check=crc32 www.tar
37
38 rm -f ../INSTALL/VentoyPlugson.exe
39 cp -a ./vs/VentoyPlugson/Release/VentoyPlugson.exe ../INSTALL/VentoyPlugson.exe
40
41 rm -f ../INSTALL/VentoyPlugson_X64.exe
42 cp -a ./vs/VentoyPlugson/x64/Release/VentoyPlugson_X64.exe ../INSTALL/VentoyPlugson_X64.exe
43
44
45 rm -f ../INSTALL/tool/plugson.tar.xz
46 mv ./www.tar.xz ../INSTALL/tool/plugson.tar.xz
47
48 echo ""
49 echo "========= SUCCESS ==========="
50 echo ""
51
52