This commit is contained in:
longpanda
2020-09-02 19:29:19 +08:00
parent d678e54956
commit 9a8d4d0227
17 changed files with 569 additions and 10 deletions

View File

@@ -23,6 +23,9 @@ while [ -n "$1" ]; do
elif [ "$1" = "-l" ]; then
shift
label=$1
elif [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
print_usage
exit 0
else
print_usage
exit 1

View File

@@ -1,11 +1,15 @@
#!/bin/sh
if [ -f ./ventoy/version ]; then
curver=$(cat ./ventoy/version)
fi
echo ''
echo '***********************************************************'
echo '* Ventoy2Disk Script *'
echo '* longpanda admin@ventoy.net *'
echo '***********************************************************'
echo '**********************************************'
echo " Ventoy: $curver"
echo " longpanda admin@ventoy.net"
echo " https://www.ventoy.net"
echo '**********************************************'
echo ''
OLDDIR=$PWD

View File

@@ -813,7 +813,7 @@ function ventoy_iso_busybox_ver {
#special process for deepin-live iso
if [ "$vt_chosen_size" = "403701760" ]; then
if vt_str_begin $vt_chosen_path "/deepin-live"; then
if vt_str_str $vt_chosen_path "/deepin-live"; then
set ventoy_busybox_ver=64
fi
elif vt_str_begin $vt_volume_id "PHOTON_"; then

View File

@@ -127,6 +127,12 @@ zip -r ventoy-${curver}-windows.zip $tmpdir/
rm -rf $tmpdir
cd ../LiveCD
sh livecd.sh
cd $CurDir
mv ../LiveCD/ventoy*.iso ./
if [ -e ventoy-${curver}-windows.zip ] && [ -e ventoy-${curver}-linux.tar.gz ]; then
echo -e "\n ============= SUCCESS =================\n"
else