Update: XFCE Build Class

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2023-12-12 13:36:18 +09:00
parent c7b541e2bd
commit b1479f9b5f
1 changed files with 15 additions and 7 deletions

View File

@ -123,7 +123,7 @@ class BuildXfce:
def build_system(self):
""" Builds the ISO XFCE Depedning on the Arch """
"""Builds the ISO XFCE Depending on the Arch"""
current_working_directory = os.getcwd()
dir_current = WRKING_DIR + current_working_directory
logger.info(f"Building a {self.sbase}{self.sarch[1:]} bit ISO")
@ -138,18 +138,26 @@ class BuildXfce:
logger.info(CFG_READY)
logger.info(START_LIVEBUILD)
logger.info(dir_current)
self.lb_helper()
# Build the ISO
self.run_iso_build()
# Cleanup after build
self.cleanup_helper()
def run_iso_build(self):
"""Run the ISO build process"""
run_cmd = 'sudo lb build'
current_working_directory = os.getcwd()
os.chdir(HOME_FOLDER + FUSATO_ROOT)
# Set the build inidcator
# Set the build indicator
inflate_bubble.make_bld_xfce(self.sbase, self.sarch[1:])
logger.info(dir_current)
logger.info(current_working_directory)
# Execute the build command
os.system(run_cmd)
logger.info(BUILD_COMPLETED)
logger.info(dir_current)
self.cleanup_helper()
logger.info(BUILD_COMPLETED)
logger.info(current_working_directory)