更新install可以自动更新子模块
This commit is contained in:
parent
b5a4afe53f
commit
5377d991f8
|
@ -9,7 +9,6 @@ import os
|
||||||
import shutil
|
import shutil
|
||||||
import json
|
import json
|
||||||
import platform
|
import platform
|
||||||
import string
|
|
||||||
|
|
||||||
############ Config ############
|
############ Config ############
|
||||||
KEYWORD = "winpe"
|
KEYWORD = "winpe"
|
||||||
|
@ -19,7 +18,6 @@ DISK = "{disk}"
|
||||||
|
|
||||||
|
|
||||||
def find_disk():
|
def find_disk():
|
||||||
ventoy_drives = []
|
|
||||||
if platform.system() == 'Linux':
|
if platform.system() == 'Linux':
|
||||||
mount_point = "/mnt/prinjector_mount_point"
|
mount_point = "/mnt/prinjector_mount_point"
|
||||||
print(
|
print(
|
||||||
|
@ -69,6 +67,10 @@ def find_disk():
|
||||||
"Cannot find the Ventoy disk!(try to run ventoyPlugson once)")
|
"Cannot find the Ventoy disk!(try to run ventoyPlugson once)")
|
||||||
|
|
||||||
|
|
||||||
|
print("Update packages")
|
||||||
|
os.system("git submodule update --init --recursive")
|
||||||
|
|
||||||
|
|
||||||
DISK = DISK.replace("{disk}", find_disk())
|
DISK = DISK.replace("{disk}", find_disk())
|
||||||
|
|
||||||
print("Use disk: "+DISK)
|
print("Use disk: "+DISK)
|
||||||
|
|
Loading…
Reference in New Issue