Windows improvements and update extlinux.cfg

1. Hide command wind when multibootusb is launched
2. Update extlinux.cfg to match with updated syslinux.cfg
pull/252/head v9.0.0
mbusb 7 years ago
parent 5809fb78fe
commit f868ea85f5

@ -157,7 +157,7 @@ class pkg():
else:
# subprocess.call('python ' + pyinstaller_path + ' --upx-dir C:\\upx multibootusb.spec', shell=True) == 0 and \
# os.path.exists(os.path.join("dist", 'multibootusb-' + self.version + ".exe")):
if subprocess.call('python ' + pyinstaller_path + ' --onefile onefile-multibootusb.spec', shell=True) == 0 and \
if subprocess.call('python ' + pyinstaller_path + ' --uac-admin --onefile onefile-multibootusb.spec', shell=True) == 0 and \
os.path.exists(os.path.join("dist", 'multibootusb-' + self.version + ".exe")):
shutil.copy2(os.path.join("dist", 'multibootusb-' + self.version + ".exe"),
os.path.join(self.release_upload_dir, "Windows"))

@ -1 +1 @@
8.9.0
9.0.0

@ -409,6 +409,9 @@ def update_mbusb_cfg_file(iso_link, usb_uuid, usb_mount, distro):
config_file.write("#end " + iso_basename(iso_link) + "\n")
config_file.close()
# Update extlinux.cfg file by copying updated syslinux.cfg
shutil.copy(os.path.join(usb_mount, 'multibootusb', 'syslinux.cfg'),
os.path.join(usb_mount, 'multibootusb', 'extlinux.cfg'))
def kaspersky_config(distro):

@ -361,9 +361,12 @@ def gpt_device(dev_name):
:return: True if GPT else False
"""
if platform.system() == 'Windows':
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
diskpart_cmd = 'wmic partition get name, type'
dev_no = get_physical_disk_number(dev_name)
cmd_out = subprocess.check_output(diskpart_cmd)
cmd_out = subprocess.check_output(diskpart_cmd, subprocess.SW_HIDE, startupinfo=startupinfo)
gen.log(cmd_out)
cmd_spt = cmd_out.split(b'\r')
for line in cmd_spt:
line = line.decode('utf-8')

Loading…
Cancel
Save