Updated
Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
parent
959dd4dea0
commit
732424ad2e
|
@ -47,7 +47,7 @@ class BuildXfce:
|
|||
""" Run and start the build process"""
|
||||
current_working_directory = os.getcwd()
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Sevond Live Build init")
|
||||
print("INFO: Start Building Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
|
@ -61,22 +61,22 @@ class BuildXfce:
|
|||
current_working_directory
|
||||
)
|
||||
os.system(run_cmd)
|
||||
exit
|
||||
|
||||
|
||||
print("INFO: ISO build has completed successfully")
|
||||
|
||||
|
||||
def debian_build(self):
|
||||
"""
|
||||
Used to build the Debian base XFCE ISO
|
||||
"""
|
||||
if self.sarch == '_64':
|
||||
# livebuild init
|
||||
current_working_directory = os.getcwd()
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Begin Live Build init")
|
||||
print("INFO: Building a Debian based 64 bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_deb64
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
|
@ -108,8 +108,18 @@ class BuildXfce:
|
|||
execute = i + '()'
|
||||
exec(execute)
|
||||
elif self.sarch == '_32':
|
||||
current_working_directory = os.getcwd()
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a Debian based 32 bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_deb32
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
# Start with the XFCE stuff
|
||||
cmd_list_32 = collections.deque(conf.build32_xfce_build)
|
||||
list_size_32 = len(cmd_list_32)
|
||||
for _ in range(list_size_32):
|
||||
|
@ -119,12 +129,36 @@ class BuildXfce:
|
|||
# Run the specific classes
|
||||
infra.ChrootFolders("deb", "_32")
|
||||
infra.BinaryFolders("deb", "_32")
|
||||
infra.ArchitectureFiles("deb", "_31")
|
||||
infra.ArchitectureFiles("deb", "_32")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print('=' * term_size.columns)
|
||||
self.run_build()
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
print('=' * term_size.columns)
|
||||
bld_list = collections.deque(conf.shared_run_build)
|
||||
list_size = len(bld_list)
|
||||
for _ in range(list_size):
|
||||
i = bld_list.popleft()
|
||||
execute = i + '()'
|
||||
exec(execute)
|
||||
elif self.sarch == '_arm':
|
||||
current_working_directory = os.getcwd()
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a Debian based ARM bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_debarm
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
# Start with the XFCE stuff
|
||||
cmd_list_arm = collections.deque(conf.buildarm_xfce_build)
|
||||
list_size_arm = len(cmd_list_arm)
|
||||
for _ in range(list_size_arm):
|
||||
|
@ -136,9 +170,23 @@ class BuildXfce:
|
|||
infra.BinaryFolders("deb", "_arm")
|
||||
infra.ArchitectureFiles("deb", "_arm")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print('=' * term_size.columns)
|
||||
self.run_build()
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
print('=' * term_size.columns)
|
||||
bld_list = collections.deque(conf.shared_run_build)
|
||||
list_size = len(bld_list)
|
||||
for _ in range(list_size):
|
||||
i = bld_list.popleft()
|
||||
execute = i + '()'
|
||||
exec(execute)
|
||||
else:
|
||||
print("No active build specified")
|
||||
print("WARNING: No active build specified")
|
||||
|
||||
def devuan_build(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue