Skip to content

Commit 89ca0a9

Browse files
committed
New release - version 9.1.0
1 parent 614373c commit 89ca0a9

File tree

5 files changed

+28
-3
lines changed

5 files changed

+28
-3
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ ENV/
9595
# Source file
9696
multibootusb*.tar.gz
9797

98+
# Temp files
99+
data/multibootusb/grub/menus.zip
100+
98101
# Setup file
99102

100103
multibootusb*.exe

CHANGELOG

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Version - 9.1.0
2+
---------------
3+
* Included missing EFI modules
4+
* Fix for application crashing crashing on windows system
5+
* New option to boot distros directly from ISOs. To availe this option, you need to copy ISO files in /multibootusb/iso
6+
17
Version - 9.0.0
28
---------------
39
* Improved UEFI support

build_pkg

+7
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,14 @@ def usage():
309309

310310
sys.exit(-1)
311311

312+
312313
if __name__ == '__main__':
314+
# Ensure to pack all menus to packaging directory
315+
if os.path.exists(os.path.join('data', 'multibootusb', 'grub', 'menus.zip')):
316+
os.remove(os.path.join('data', 'multibootusb', 'grub', 'menus.zip'))
317+
shutil.make_archive(os.path.join('data', 'multibootusb', 'grub', 'menus'),
318+
'zip', os.path.join('data', 'multibootusb', 'grub', 'menus'))
319+
313320
if platform.system() == 'Linux':
314321
print('Converting line ending to Linux for proper functioning.')
315322
os.system('dos2unix multibootusb')

scripts/gen.py

+7
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,13 @@ def copy_mbusb_dir_usb(usb_disk):
264264
if not os.path.exists(os.path.join(usb_mount_path, 'multibootusb', 'iso')):
265265
os.makedirs(os.path.join(usb_mount_path, 'multibootusb', 'iso'))
266266

267+
# Update the menu files from resource path to USB directory.
268+
try:
269+
with zipfile.ZipFile(resource_path(os.path.join('data', 'multibootusb', 'grub', 'menus.zip')), "r") as z:
270+
z.extractall(os.path.join(usb_mount_path, 'multibootusb', 'grub', 'menus'))
271+
except:
272+
log('Unable to extract menu files to USB disk.')
273+
267274
return result
268275

269276

setup.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#from setuptools import setup, find_packages
1111
import os
1212
from scripts.gen import mbusb_version
13+
import shutil
1314

1415

1516
Version = mbusb_version()
@@ -48,15 +49,17 @@ def root_files(_dir):
4849
version=Version,
4950
packages=['scripts', 'scripts.pyudev', 'scripts.pyudev.device', 'scripts.pyudev._ctypeslib', 'scripts.pyudev._os',
5051
'scripts.gui', 'scripts.progressbar'],
51-
#packages=find_packages(),
52+
# packages=find_packages(),
53+
include_package_data=True,
5254
scripts=['multibootusb', 'multibootusb-pkexec'],
5355
platforms=['Linux'],
5456
url='http://multibootusb.org/',
5557
license='General Public License (GPL)',
5658
author='Sundar',
5759
author_email='[email protected]',
5860
description='Create multi boot live Linux on a USB disk...',
59-
long_description='multibootusb is an advanced cross-platform application for installing/uninstalling Linux operating systems on to a single USB flash drives.',
61+
long_description='multibootusb is an advanced cross-platform application for installing/uninstalling Linux operating \
62+
systems on to a single USB flash drives.',
6063
data_files=[("/usr/share/applications", ["data/multibootusb.desktop"]),
6164
('/usr/share/pixmaps', ["data/tools/multibootusb.png"]),
6265
('/usr/share/polkit-1/actions/', ['org.debian.pkexec.run-multibootusb.policy']),
@@ -79,6 +82,5 @@ def root_files(_dir):
7982
('/usr/share/multibootusb/data/multibootusb/grub', root_files('data/multibootusb/grub')),
8083
('/usr/share/multibootusb/data/multibootusb/grub/i386-pc', get_data('data/multibootusb/grub/i386-pc')),
8184
('/usr/share/multibootusb/data/multibootusb/grub/x86_64-efi', get_data('data/multibootusb/grub/x86_64-efi')),
82-
('/usr/share/multibootusb/data/multibootusb/grub/menus', get_data('data/multibootusb/grub/menus')),
8385
('/usr/share/multibootusb/data/tools/syslinux', get_data('data/tools/syslinux'))]
8486
)

0 commit comments

Comments
 (0)