Update CI

This commit is contained in:
longpanda
2021-01-29 17:54:04 +08:00
parent ee81f89911
commit 519fac719e
8 changed files with 69 additions and 22 deletions

View File

@@ -17,10 +17,25 @@ fi
rm -rf ISO_TMP
cp -a ISO ISO_TMP
cp -a VTOY VTOY_TMP && cd VTOY_TMP
cp -a VTOY VTOY_TMP
ls -la
if ! [ -d ISO_TMP ]; then
echo "Copy ISO_TMP failed"
exit 1
fi
if ! [ -d VTOY_TMP ]; then
echo "Copy VTOY_TMP failed"
exit 1
fi
mkdir -p ISO_TMP/EFI/ventoy
cd VTOY_TMP
gcc -O2 -m32 ./ventoy/disksize.c -o ./ventoy/disksize
rm -f ./ventoy/disksize.c
find . | cpio -o -H newc | gzip -9 > ../ISO_TMP/EFI/ventoy/ventoy.gz
find . | cpio -o -H newc | gzip -c -9 > ../ISO_TMP/EFI/ventoy/ventoy.gz
cd .. && rm -rf VTOY_TMP