Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2023-08-28 15:51:46 +09:00
parent 959dd4dea0
commit 732424ad2e
1 changed files with 56 additions and 8 deletions

View File

@ -47,7 +47,7 @@ class BuildXfce:
""" Run and start the build process""" """ Run and start the build process"""
current_working_directory = os.getcwd() current_working_directory = os.getcwd()
print('=' * term_size.columns) print('=' * term_size.columns)
print("INFO: Sevond Live Build init") print("INFO: Start Building Process")
print("INFO: Current working directory" + print("INFO: Current working directory" +
current_working_directory current_working_directory
) )
@ -61,7 +61,7 @@ class BuildXfce:
current_working_directory current_working_directory
) )
os.system(run_cmd) os.system(run_cmd)
exit print("INFO: ISO build has completed successfully")
def debian_build(self): def debian_build(self):
@ -69,14 +69,14 @@ class BuildXfce:
Used to build the Debian base XFCE ISO Used to build the Debian base XFCE ISO
""" """
if self.sarch == '_64': if self.sarch == '_64':
# livebuild init
current_working_directory = os.getcwd() current_working_directory = os.getcwd()
print('=' * term_size.columns) print('=' * term_size.columns)
print("INFO: Begin Live Build init") print("INFO: Building a Debian based 64 bit ISO")
print("INFO: Current working directory" + print("INFO: Current working directory" +
current_working_directory current_working_directory
) )
print('=' * term_size.columns) print('=' * term_size.columns)
# Set the config tree
lbsetup = conf.lbset_deb64 lbsetup = conf.lbset_deb64
os.system(lbsetup) os.system(lbsetup)
print("Config tree ready!") print("Config tree ready!")
@ -108,8 +108,18 @@ class BuildXfce:
execute = i + '()' execute = i + '()'
exec(execute) exec(execute)
elif self.sarch == '_32': 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 lbsetup = conf.lbset_deb32
os.system(lbsetup) os.system(lbsetup)
print("Config tree ready!")
# Start with the XFCE stuff
cmd_list_32 = collections.deque(conf.build32_xfce_build) cmd_list_32 = collections.deque(conf.build32_xfce_build)
list_size_32 = len(cmd_list_32) list_size_32 = len(cmd_list_32)
for _ in range(list_size_32): for _ in range(list_size_32):
@ -119,12 +129,36 @@ class BuildXfce:
# Run the specific classes # Run the specific classes
infra.ChrootFolders("deb", "_32") infra.ChrootFolders("deb", "_32")
infra.BinaryFolders("deb", "_32") infra.BinaryFolders("deb", "_32")
infra.ArchitectureFiles("deb", "_31") infra.ArchitectureFiles("deb", "_32")
# Run the Build # Run the Build
print('=' * term_size.columns)
print("INFO: Configs in place start the ISO build process")
print('=' * term_size.columns)
self.run_build() 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': 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 lbsetup = conf.lbset_debarm
os.system(lbsetup) os.system(lbsetup)
print("Config tree ready!")
# Start with the XFCE stuff
cmd_list_arm = collections.deque(conf.buildarm_xfce_build) cmd_list_arm = collections.deque(conf.buildarm_xfce_build)
list_size_arm = len(cmd_list_arm) list_size_arm = len(cmd_list_arm)
for _ in range(list_size_arm): for _ in range(list_size_arm):
@ -136,9 +170,23 @@ class BuildXfce:
infra.BinaryFolders("deb", "_arm") infra.BinaryFolders("deb", "_arm")
infra.ArchitectureFiles("deb", "_arm") infra.ArchitectureFiles("deb", "_arm")
# Run the Build # Run the Build
print('=' * term_size.columns)
print("INFO: Configs in place start the ISO build process")
print('=' * term_size.columns)
self.run_build() 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: else:
print("No active build specified") print("WARNING: No active build specified")
def devuan_build(self): def devuan_build(self):
""" """