Update: XFCE Build Class
Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
parent
c7b541e2bd
commit
b1479f9b5f
|
@ -123,7 +123,7 @@ class BuildXfce:
|
||||||
|
|
||||||
|
|
||||||
def build_system(self):
|
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()
|
current_working_directory = os.getcwd()
|
||||||
dir_current = WRKING_DIR + current_working_directory
|
dir_current = WRKING_DIR + current_working_directory
|
||||||
logger.info(f"Building a {self.sbase}{self.sarch[1:]} bit ISO")
|
logger.info(f"Building a {self.sbase}{self.sarch[1:]} bit ISO")
|
||||||
|
@ -138,18 +138,26 @@ class BuildXfce:
|
||||||
logger.info(CFG_READY)
|
logger.info(CFG_READY)
|
||||||
logger.info(START_LIVEBUILD)
|
logger.info(START_LIVEBUILD)
|
||||||
logger.info(dir_current)
|
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'
|
run_cmd = 'sudo lb build'
|
||||||
current_working_directory = os.getcwd()
|
current_working_directory = os.getcwd()
|
||||||
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
||||||
# Set the build inidcator
|
|
||||||
|
# Set the build indicator
|
||||||
inflate_bubble.make_bld_xfce(self.sbase, self.sarch[1:])
|
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)
|
os.system(run_cmd)
|
||||||
|
|
||||||
logger.info(BUILD_COMPLETED)
|
logger.info(BUILD_COMPLETED)
|
||||||
logger.info(dir_current)
|
logger.info(current_working_directory)
|
||||||
self.cleanup_helper()
|
|
||||||
logger.info(BUILD_COMPLETED)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue