Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2023-08-29 16:01:12 +09:00
parent 44258d78aa
commit 1ad01a50d7
1 changed files with 97 additions and 23 deletions

View File

@ -138,22 +138,7 @@ class BuildXfce:
print('=' * term_size.columns)
print("INFO: Configs in place start the ISO build process")
print('=' * term_size.columns)
current_working_directory = os.getcwd()
print('.' * term_size.columns)
print("INFO: Start Live-Build Process")
print("INFO: Current working directory" +
current_working_directory
)
print('.' * term_size.columns)
os.system(lbsetup)
run_cmd = 'sudo lb build'
current_working_directory = os.getcwd()
os.chdir(HOME_FOLDER + FUSATO_ROOT)
print("INFO: Current working directory" +
current_working_directory
)
os.system(run_cmd)
print("INFO: ISO build has completed successfully")
self.run_build()
print('=' * term_size.columns)
print("INFO: Current working directory" +
current_working_directory
@ -165,10 +150,13 @@ class BuildXfce:
i = bld_list.popleft()
execute = i + '()'
exec(execute)
print('=' * term_size.columns)
print("INFO: ISO is ready for usage.")
print('=' * term_size.columns)
elif self.sarch == '_arm':
current_working_directory = os.getcwd()
print('=' * term_size.columns)
print("INFO: Building a Debian based ARM bit ISO")
print("INFO: Building a Debian based arm bit ISO")
print("INFO: Current working directory" +
current_working_directory
)
@ -204,17 +192,29 @@ class BuildXfce:
i = bld_list.popleft()
execute = i + '()'
exec(execute)
print('=' * term_size.columns)
print("INFO: ISO is ready for usage.")
print('=' * term_size.columns)
else:
print("WARNING: No active build specified")
def devuan_build(self):
"""
Used to build the Devuan base xfce ISO
Used to build the devuan base XFCE ISO
"""
if self.sarch == '_64':
current_working_directory = os.getcwd()
print('=' * term_size.columns)
print("INFO: Building a devuan based 64 bit ISO")
print("INFO: Current working directory" +
current_working_directory
)
print('=' * term_size.columns)
# Set the config tree
lbsetup = conf.lbset_dev64
os.system(lbsetup)
# Loop though commands
print("Config tree ready!")
# Start with the XFCE stuff
cmd_list_64 = collections.deque(conf.build64_xfce_build)
list_size_64 = len(cmd_list_64)
for _ in range(list_size_64):
@ -226,10 +226,38 @@ class BuildXfce:
infra.BinaryFolders("dev", "_64")
infra.ArchitectureFiles("dev", "_64")
# 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_finish_build)
list_size = len(bld_list)
for _ in range(list_size):
i = bld_list.popleft()
execute = i + '()'
exec(execute)
print('=' * term_size.columns)
print("INFO: ISO is ready for usage.")
print('=' * term_size.columns)
elif self.sarch == '_32':
current_working_directory = os.getcwd()
print('=' * term_size.columns)
print("INFO: Building a devuan based 32 bit ISO")
print("INFO: Current working directory" +
current_working_directory
)
print('=' * term_size.columns)
# Set the config tree
lbsetup = conf.lbset_dev32
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):
@ -239,15 +267,42 @@ class BuildXfce:
# Run the specific classes
infra.ChrootFolders("dev", "_32")
infra.BinaryFolders("dev", "_32")
infra.ArchitectureFiles("dev", "_31")
# Run the build
infra.ArchitectureFiles("dev", "_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()
else:
print('=' * term_size.columns)
print("INFO: Current working directory" +
current_working_directory
)
print('=' * term_size.columns)
bld_list = collections.deque(conf.shared_finish_build)
list_size = len(bld_list)
for _ in range(list_size):
i = bld_list.popleft()
execute = i + '()'
exec(execute)
print('=' * term_size.columns)
print("INFO: ISO is ready for usage.")
print('=' * term_size.columns)
elif self.sarch == '_arm':
current_working_directory = os.getcwd()
print('=' * term_size.columns)
print("INFO: Building a devuan based arm bit ISO")
print("INFO: Current working directory" +
current_working_directory
)
print('=' * term_size.columns)
# Set the config tree
lbsetup = conf.lbset_devarm
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 list_size in range(list_size_arm):
for _ in range(list_size_arm):
i = cmd_list_arm.popleft()
execute = i + '()'
exec(execute)
@ -256,7 +311,26 @@ class BuildXfce:
infra.BinaryFolders("dev", "_arm")
infra.ArchitectureFiles("dev", "_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_finish_build)
list_size = len(bld_list)
for _ in range(list_size):
i = bld_list.popleft()
execute = i + '()'
exec(execute)
print('=' * term_size.columns)
print("INFO: ISO is ready for usage.")
print('=' * term_size.columns)
else:
print("WARNING: No active build specified")
def readybuild():