2023-08-24 06:16:56 +00:00
|
|
|
"""
|
|
|
|
* Author: "PeppermintOS Team(peppermintosteam@proton.me)
|
|
|
|
*
|
|
|
|
* License: SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*
|
2023-12-12 04:47:22 -01:00
|
|
|
* Build the ISOs for the system to be deployed
|
2023-08-24 06:16:56 +00:00
|
|
|
"""
|
|
|
|
import os
|
|
|
|
from pathlib import Path
|
|
|
|
import argparse
|
|
|
|
import collections
|
2023-12-12 04:47:22 -01:00
|
|
|
import logging
|
2023-08-24 06:16:56 +00:00
|
|
|
import conf
|
|
|
|
import infra
|
2023-08-30 03:19:40 +00:00
|
|
|
import inflate_bubble
|
2023-08-30 03:49:56 +00:00
|
|
|
import finish_cleanup
|
2023-08-24 06:16:56 +00:00
|
|
|
|
|
|
|
# Set the home path used regardless the user logged in
|
|
|
|
BSTRING_ISO_CONFIGS = '~/bubbles/iso_configs'
|
|
|
|
HOME_FOLDER = str(Path(BSTRING_ISO_CONFIGS).expanduser())
|
|
|
|
FUSATO_ROOT = '/fusato'
|
|
|
|
WPCHROOT = '/fusato/config/includes.chroot'
|
2024-04-12 11:23:24 +00:00
|
|
|
WPINSTALLER = '/fusato/config/includes.installer'
|
2023-09-11 11:54:37 +00:00
|
|
|
|
2023-09-23 15:19:18 +00:00
|
|
|
|
2023-09-05 14:38:55 +00:00
|
|
|
# Set up the logging format
|
|
|
|
logger = logging.getLogger()
|
|
|
|
handler = logging.StreamHandler()
|
|
|
|
formatter = logging.Formatter(
|
|
|
|
'%(asctime)s %(name)-12s %(levelname)-8s %(message)s')
|
|
|
|
handler.setFormatter(formatter)
|
|
|
|
logger.addHandler(handler)
|
|
|
|
logger.setLevel(logging.DEBUG)
|
|
|
|
|
2024-05-12 23:15:35 +00:00
|
|
|
# Common logger Messages
|
2023-10-01 03:26:08 +00:00
|
|
|
WRKING_DIR = "Current working directory"
|
2023-09-05 14:38:55 +00:00
|
|
|
CFG_TREE_READY = "Config tree ready!"
|
|
|
|
CFG_READY = "Configs in place start the ISO build process"
|
|
|
|
START_LIVEBUILD = "Start Live-Build Process"
|
2023-12-13 05:21:29 -01:00
|
|
|
BUILD_COMPILED = "ISO build has compiled successfully"
|
|
|
|
BUILD_COMPLETED = "ISO is ready for usage. Begin copy to Nightly for QA testing"
|
2023-09-05 14:38:55 +00:00
|
|
|
|
2023-12-13 09:19:08 -01:00
|
|
|
class BuildBase:
|
2023-12-12 04:47:22 -01:00
|
|
|
"""
|
2023-12-13 09:19:08 -01:00
|
|
|
Base class for building ISOs.
|
2023-12-12 04:47:22 -01:00
|
|
|
"""
|
2023-12-13 09:19:08 -01:00
|
|
|
def __init__(self, sbase, sarch, desktop_helper):
|
2023-12-13 09:33:36 -01:00
|
|
|
""" init the building process"""
|
2023-08-24 06:16:56 +00:00
|
|
|
self.sbase = sbase
|
|
|
|
self.sarch = sarch
|
2023-12-13 09:19:08 -01:00
|
|
|
self.change_to_fusato_root_and_build(desktop_helper)
|
2023-12-12 09:58:39 -01:00
|
|
|
|
2023-12-13 09:19:08 -01:00
|
|
|
def change_to_fusato_root_and_build(self, desktop_helper):
|
2023-12-13 09:33:36 -01:00
|
|
|
""" Change to the fusato root and build the ISO """
|
2023-08-24 06:16:56 +00:00
|
|
|
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
2023-12-13 09:19:08 -01:00
|
|
|
self.build_system(desktop_helper)
|
2023-12-12 04:47:22 -01:00
|
|
|
|
2023-09-29 12:15:47 +00:00
|
|
|
def lb_helper(self):
|
2023-12-13 12:13:51 -01:00
|
|
|
""" Helper to set the lb commands for live-build"""
|
2023-12-12 09:46:53 -01:00
|
|
|
lbsetup = None
|
2024-05-12 23:15:35 +00:00
|
|
|
if self.sbase in ["deb", "dev", "debmin", "devmin", "debsrv", "devsrv", "debld", "devld"]:
|
2023-12-12 09:46:53 -01:00
|
|
|
arch_suffix = self.sarch[1:]
|
2024-05-12 23:15:35 +00:00
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2023-12-13 09:33:36 -01:00
|
|
|
lbsetup = getattr(
|
|
|
|
conf, f"LBSET_{self.sbase.upper()}{arch_suffix}"
|
|
|
|
)
|
2023-12-12 04:47:22 -01:00
|
|
|
os.system(lbsetup)
|
2023-12-12 09:46:53 -01:00
|
|
|
return lbsetup
|
2023-12-12 04:10:56 -01:00
|
|
|
|
2023-09-29 12:15:47 +00:00
|
|
|
def infra_helper(self):
|
2023-12-13 09:33:36 -01:00
|
|
|
""" Get the build infrastucture ready """
|
2024-05-26 17:34:18 +00:00
|
|
|
infra_methods = [infra.BinaryFolders, infra.ChrootInstallerFiles,
|
2024-05-09 13:10:35 +00:00
|
|
|
infra.ArchitectureFiles, infra.Archive,
|
2024-05-25 11:06:14 +00:00
|
|
|
infra.InstallerFiles, infra.FusatoConfigs,
|
2023-12-13 09:33:36 -01:00
|
|
|
]
|
2023-12-12 09:58:39 -01:00
|
|
|
for method in infra_methods:
|
|
|
|
method(self.sbase, self.sarch)
|
2023-12-12 04:47:22 -01:00
|
|
|
|
2023-09-30 13:01:56 +00:00
|
|
|
def cleanup_helper(self):
|
2023-12-13 09:33:36 -01:00
|
|
|
""" Clean and Move the comleted ISO """
|
2023-10-19 12:41:18 +00:00
|
|
|
finish_cleanup.make_check_sum()
|
2023-12-13 02:27:09 -01:00
|
|
|
finish_cleanup.check_build_type()
|
2023-10-19 12:41:18 +00:00
|
|
|
finish_cleanup.kill_old_iso()
|
2023-12-12 11:26:34 -01:00
|
|
|
|
2023-12-13 09:19:08 -01:00
|
|
|
def build_system(self, desktop_helper):
|
2023-12-13 09:33:36 -01:00
|
|
|
""" The actual building process """
|
2023-12-12 11:45:09 -01:00
|
|
|
current_working_directory = os.getcwd()
|
2023-10-01 03:26:08 +00:00
|
|
|
dir_current = WRKING_DIR + current_working_directory
|
2023-12-13 09:19:08 -01:00
|
|
|
logger.info(f"Building a {self.sbase}{self.sarch[1:]} bit ISO")
|
2023-09-29 12:15:47 +00:00
|
|
|
logger.info(dir_current)
|
2023-09-30 11:30:29 +00:00
|
|
|
self.lb_helper()
|
2023-12-13 09:19:08 -01:00
|
|
|
desktop_helper()
|
2023-09-30 11:30:29 +00:00
|
|
|
self.infra_helper()
|
2023-09-05 14:38:55 +00:00
|
|
|
logger.info(CFG_READY)
|
|
|
|
logger.info(START_LIVEBUILD)
|
|
|
|
logger.info(dir_current)
|
2023-12-12 11:39:15 -01:00
|
|
|
self.lb_helper()
|
2023-08-30 05:23:03 +00:00
|
|
|
run_cmd = 'sudo lb build'
|
|
|
|
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
2023-12-13 09:19:08 -01:00
|
|
|
desktop_name = desktop_helper.__name__.split('_')[-1]
|
2023-12-13 09:33:36 -01:00
|
|
|
if desktop_name == 'xfce':
|
|
|
|
inflate_bubble.make_bld_xfce(self.sbase, self.sarch[1:])
|
|
|
|
elif desktop_name == 'gfb':
|
|
|
|
inflate_bubble.make_bld_gnomeflashback(self.sbase, self.sarch[1:])
|
2023-12-12 11:44:18 -01:00
|
|
|
logger.info(dir_current)
|
2023-08-30 05:23:03 +00:00
|
|
|
os.system(run_cmd)
|
2023-12-13 09:19:08 -01:00
|
|
|
logger.info(BUILD_COMPLETED)
|
2023-09-05 14:38:55 +00:00
|
|
|
logger.info(dir_current)
|
2023-09-30 13:01:56 +00:00
|
|
|
self.cleanup_helper()
|
2023-09-05 14:38:55 +00:00
|
|
|
logger.info(BUILD_COMPLETED)
|
2023-09-11 11:54:37 +00:00
|
|
|
|
2023-08-30 05:23:03 +00:00
|
|
|
|
2023-12-13 09:19:08 -01:00
|
|
|
class BuildXfce(BuildBase):
|
2023-12-13 09:33:36 -01:00
|
|
|
""" This class will ensure the xfce builds are built """
|
2023-12-12 04:47:22 -01:00
|
|
|
def __init__(self, sbase, sarch):
|
2023-12-14 01:54:40 -01:00
|
|
|
"""
|
|
|
|
init the building, super will
|
2023-12-13 09:33:36 -01:00
|
|
|
ensure that the method resolution order (MRO) is followed
|
|
|
|
correctly, allowing for a smooth inheritance hierarchy.
|
|
|
|
"""
|
2023-12-13 09:19:08 -01:00
|
|
|
super().__init__(sbase, sarch, self.xfce_helper)
|
2023-12-12 11:11:09 -01:00
|
|
|
|
2023-12-13 09:19:08 -01:00
|
|
|
def xfce_helper(self):
|
2023-12-13 09:33:36 -01:00
|
|
|
""" The helper functions to ensure the xfce requirements are used """
|
2023-12-13 09:19:08 -01:00
|
|
|
arch_suffix = self.sarch[1:]
|
|
|
|
cmd_list = None
|
2024-05-12 23:15:35 +00:00
|
|
|
if self.sbase in ["deb", "dev", "debmin", "devmin", "debsrv", "devsrv", "debld", "devld"]:
|
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2023-12-14 01:54:40 -01:00
|
|
|
os.system(f'touch {self.sbase.upper()}.{arch_suffix}xfc')
|
2024-05-12 23:15:35 +00:00
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2023-12-13 09:19:08 -01:00
|
|
|
cmd_list = getattr(conf, f"build{arch_suffix}_xfce_build", [])
|
|
|
|
for command in cmd_list:
|
|
|
|
execute = command + '()'
|
|
|
|
exec(execute)
|
|
|
|
return cmd_list
|
2023-12-12 11:11:09 -01:00
|
|
|
|
2024-01-05 02:40:40 -01:00
|
|
|
|
2023-12-13 09:19:08 -01:00
|
|
|
class BuildGflashback(BuildBase):
|
2023-12-13 09:33:36 -01:00
|
|
|
""" This class will ensure the gnomeflashback builds are built """
|
2023-12-13 09:19:08 -01:00
|
|
|
def __init__(self, sbase, sarch):
|
2023-12-13 09:33:36 -01:00
|
|
|
"""
|
|
|
|
init the building, super will
|
|
|
|
ensure that the method resolution order (MRO) is followed
|
|
|
|
correctly, allowing for a smooth inheritance hierarchy
|
|
|
|
"""
|
2023-12-13 09:19:08 -01:00
|
|
|
super().__init__(sbase, sarch, self.gfb_helper)
|
2023-12-12 04:47:22 -01:00
|
|
|
|
|
|
|
def gfb_helper(self):
|
2023-12-13 09:33:36 -01:00
|
|
|
"""
|
|
|
|
The helper functions to ensure the gnome flashback requirements
|
|
|
|
are used
|
|
|
|
"""
|
2023-12-12 11:11:09 -01:00
|
|
|
arch_suffix = self.sarch[1:]
|
|
|
|
cmd_list = None
|
2024-05-12 23:15:35 +00:00
|
|
|
if self.sbase in ["deb", "dev", "debmin", "devmin", "debsrv", "devsrv", "debld", "devld"]:
|
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2023-12-14 02:53:21 -01:00
|
|
|
os.system(f'touch {self.sbase.upper()}.{arch_suffix}gfb')
|
2024-05-12 23:15:35 +00:00
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2023-12-12 11:11:09 -01:00
|
|
|
cmd_list = getattr(conf, f"build{arch_suffix}_gfb_build", [])
|
|
|
|
for command in cmd_list:
|
|
|
|
execute = command + '()'
|
2023-12-12 04:47:22 -01:00
|
|
|
exec(execute)
|
2023-12-12 11:11:09 -01:00
|
|
|
return cmd_list
|
2023-12-12 04:47:22 -01:00
|
|
|
|
|
|
|
|
2024-01-09 02:44:47 -01:00
|
|
|
class BuildOpenbox(BuildBase):
|
|
|
|
""" This class will ensure the openbox builds are built """
|
|
|
|
def __init__(self, sbase, sarch):
|
|
|
|
"""
|
|
|
|
init the building, super will
|
|
|
|
ensure that the method resolution order (MRO) is followed
|
|
|
|
correctly, allowing for a smooth inheritance hierarchy
|
|
|
|
"""
|
|
|
|
super().__init__(sbase, sarch, self.opb_helper)
|
|
|
|
|
|
|
|
def opb_helper(self):
|
|
|
|
"""
|
|
|
|
The helper functions to ensure the openbox requirements are
|
|
|
|
used
|
|
|
|
"""
|
|
|
|
arch_suffix = self.sarch[1:]
|
|
|
|
cmd_list = None
|
2024-05-12 23:15:35 +00:00
|
|
|
if self.sbase in ["deb", "dev", "debmin", "devmin", "debsrv", "devsrv", "debld", "devld"]:
|
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2024-01-09 02:44:47 -01:00
|
|
|
os.system(f'touch {self.sbase.upper()}.{arch_suffix}opb')
|
2024-05-12 23:15:35 +00:00
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2024-01-09 02:44:47 -01:00
|
|
|
cmd_list = getattr(conf, f"build{arch_suffix}_opb_build", [])
|
|
|
|
for command in cmd_list:
|
|
|
|
execute = command + '()'
|
|
|
|
exec(execute)
|
|
|
|
return cmd_list
|
2024-05-09 13:10:35 +00:00
|
|
|
|
|
|
|
|
2024-03-20 11:53:53 -01:00
|
|
|
class BuildLoaded(BuildBase):
|
2024-03-11 12:57:59 -01:00
|
|
|
""" This class will ensure the loaded xfce builds are built """
|
|
|
|
def __init__(self, sbase, sarch):
|
|
|
|
"""
|
|
|
|
init the building, super will
|
|
|
|
ensure that the method resolution order (MRO) is followed
|
|
|
|
correctly, allowing for a smooth inheritance hierarchy
|
|
|
|
"""
|
2024-03-20 11:53:53 -01:00
|
|
|
super().__init__(sbase, sarch, self.loaded_helper)
|
2024-03-11 12:57:59 -01:00
|
|
|
|
2024-03-20 11:53:53 -01:00
|
|
|
def loaded_helper(self):
|
2024-03-11 12:57:59 -01:00
|
|
|
"""
|
|
|
|
The helper functions to ensure the loaded xfce requirements are
|
|
|
|
used
|
|
|
|
"""
|
|
|
|
arch_suffix = self.sarch[1:]
|
|
|
|
cmd_list = None
|
2024-05-12 23:15:35 +00:00
|
|
|
if self.sbase in ["deb", "dev", "debmin", "devmin", "debsrv", "devsrv", "debld", "devld"]:
|
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2024-03-21 12:22:42 -01:00
|
|
|
os.system(f'touch {self.sbase.upper()}.{arch_suffix}loaded')
|
2024-05-12 23:15:35 +00:00
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2024-03-20 11:53:53 -01:00
|
|
|
cmd_list = getattr(conf, f"build{arch_suffix}_loaded_build", [])
|
2024-03-11 12:57:59 -01:00
|
|
|
for command in cmd_list:
|
|
|
|
execute = command + '()'
|
|
|
|
exec(execute)
|
|
|
|
return cmd_list
|
2024-01-09 02:44:47 -01:00
|
|
|
|
|
|
|
|
2024-04-12 11:23:24 +00:00
|
|
|
class BuildServer(BuildBase):
|
|
|
|
""" This class will ensure the Server builds are built """
|
|
|
|
def __init__(self, sbase, sarch):
|
|
|
|
"""
|
|
|
|
init the building, super will
|
|
|
|
ensure that the method resolution order (MRO) is followed
|
|
|
|
correctly, allowing for a smooth inheritance hierarchy
|
|
|
|
"""
|
|
|
|
super().__init__(sbase, sarch, self.server_helper)
|
|
|
|
|
|
|
|
def server_helper(self):
|
|
|
|
"""
|
|
|
|
The helper functions to ensure the server requirements are
|
|
|
|
used
|
|
|
|
"""
|
|
|
|
arch_suffix = self.sarch[1:]
|
|
|
|
cmd_list = None
|
2024-05-12 23:15:35 +00:00
|
|
|
if self.sbase in ["deb", "dev", "debmin", "devmin", "debsrv", "devsrv", "debld", "devld"]:
|
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2024-04-12 11:23:24 +00:00
|
|
|
os.system(f'touch {self.sbase.upper()}.{arch_suffix}server')
|
2024-05-12 23:15:35 +00:00
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2024-04-12 11:23:24 +00:00
|
|
|
cmd_list = getattr(conf, f"build{arch_suffix}_server_build", [])
|
|
|
|
for command in cmd_list:
|
|
|
|
execute = command + '()'
|
|
|
|
exec(execute)
|
|
|
|
return cmd_list
|
|
|
|
|
2024-05-13 08:40:02 +00:00
|
|
|
|
2024-05-09 13:10:35 +00:00
|
|
|
class BuildMini(BuildBase):
|
2024-05-12 23:15:35 +00:00
|
|
|
""" This class will ensure the Mini builds are built """
|
2024-05-09 13:10:35 +00:00
|
|
|
def __init__(self, sbase, sarch):
|
|
|
|
"""
|
|
|
|
init the building, super will
|
|
|
|
ensure that the method resolution order (MRO) is followed
|
|
|
|
correctly, allowing for a smooth inheritance hierarchy
|
|
|
|
"""
|
2024-05-12 00:17:42 +00:00
|
|
|
super().__init__(sbase, sarch, self.mini_helper)
|
2024-04-12 11:23:24 +00:00
|
|
|
|
2024-05-12 00:17:42 +00:00
|
|
|
def mini_helper(self):
|
2024-05-09 13:10:35 +00:00
|
|
|
"""
|
2024-05-12 23:15:35 +00:00
|
|
|
The helper functions to ensure the Mini requirements are
|
2024-05-09 13:10:35 +00:00
|
|
|
used
|
|
|
|
"""
|
|
|
|
arch_suffix = self.sarch[1:]
|
|
|
|
cmd_list = None
|
2024-05-12 23:15:35 +00:00
|
|
|
if self.sbase in ["deb", "dev", "debmin", "devmin", "debsrv", "devsrv", "debld", "devld"]:
|
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2024-05-12 00:17:42 +00:00
|
|
|
os.system(f'touch {self.sbase.upper()}.{arch_suffix}mini')
|
2024-05-12 23:15:35 +00:00
|
|
|
if arch_suffix in ["64", "32", "arm"]:
|
2024-05-09 13:10:35 +00:00
|
|
|
cmd_list = getattr(conf, f"build{arch_suffix}_mini_build", [])
|
|
|
|
for command in cmd_list:
|
|
|
|
execute = command + '()'
|
|
|
|
exec(execute)
|
|
|
|
return cmd_list
|
2024-04-12 11:23:24 +00:00
|
|
|
|
2024-05-12 23:15:35 +00:00
|
|
|
|
2023-08-24 06:16:56 +00:00
|
|
|
def readybuild():
|
|
|
|
"""" Make Ready the bld structure If fusato exists remove it.
|
|
|
|
and recreate it, otherwise just make a new folder named
|
|
|
|
fusato.
|
|
|
|
"""
|
2023-09-05 14:38:55 +00:00
|
|
|
logger.info("Making ready the fusato build directory")
|
2023-08-24 06:16:56 +00:00
|
|
|
os.chdir(HOME_FOLDER)
|
|
|
|
if os.path.exists('fusato'):
|
2023-12-12 10:42:15 -01:00
|
|
|
os.system("sudo rm -r -f fusato")
|
|
|
|
os.makedirs('fusato')
|
2023-08-24 06:16:56 +00:00
|
|
|
|
|
|
|
|
2024-05-09 13:10:35 +00:00
|
|
|
class Decisions:
|
2023-08-24 06:16:56 +00:00
|
|
|
"""
|
2023-12-12 04:47:22 -01:00
|
|
|
Aguments used to tell the application what to build
|
2023-08-24 06:16:56 +00:00
|
|
|
"""
|
2023-12-12 04:47:22 -01:00
|
|
|
def __init__(self):
|
2024-05-09 13:10:35 +00:00
|
|
|
""" init the Decisions """
|
2023-12-12 04:47:22 -01:00
|
|
|
# Set up the terminal arguments
|
2023-08-24 06:16:56 +00:00
|
|
|
self.argument_parser = argparse.ArgumentParser()
|
2023-12-12 04:47:22 -01:00
|
|
|
self.argument_parser.add_argument("set",
|
|
|
|
help="set what build to start",
|
|
|
|
type=str
|
|
|
|
)
|
|
|
|
self.argument_parser.add_argument("e",
|
|
|
|
help="identify the desktop"
|
|
|
|
" environment for example"
|
|
|
|
" e-xfce",
|
|
|
|
type=str
|
|
|
|
)
|
|
|
|
self.argument_parser.add_argument("b",
|
|
|
|
help="identify the ISO to"
|
|
|
|
"build for example"
|
|
|
|
" b-deb64",
|
|
|
|
type=str
|
|
|
|
)
|
2023-08-24 06:16:56 +00:00
|
|
|
self.arguments = self.argument_parser.parse_args()
|
2023-12-12 04:47:22 -01:00
|
|
|
# Then determine what desktop build to look for
|
2023-12-12 10:33:47 -01:00
|
|
|
desktop_build_function = getattr(self, f'd{self.arguments.e[2:]}', None)
|
|
|
|
if desktop_build_function:
|
|
|
|
desktop_build_function()
|
2023-12-12 04:47:22 -01:00
|
|
|
|
2023-08-24 06:16:56 +00:00
|
|
|
def dxfce(self):
|
|
|
|
""" Arguments for the XFCE """
|
2023-12-12 10:33:47 -01:00
|
|
|
build_type_mapping = {
|
|
|
|
'b-deb64': ("deb", "_64"),
|
|
|
|
'b-deb32': ("deb", "_32"),
|
|
|
|
'b-dev64': ("dev", "_64"),
|
|
|
|
'b-dev32': ("dev", "_32"),
|
|
|
|
'b-debarm': ("deb", "_arm"),
|
|
|
|
'b-devarm': ("dev", "_arm"),
|
|
|
|
}
|
2024-03-19 11:18:31 -01:00
|
|
|
|
2024-01-05 02:40:40 -01:00
|
|
|
build_type_mapping_oem = {
|
|
|
|
'b-deb64o': ("debo", "_64"),
|
|
|
|
'b-deb32o': ("debo", "_32"),
|
|
|
|
'b-dev64o': ("devo", "_64"),
|
|
|
|
'b-dev32o': ("devo", "_32"),
|
|
|
|
'b-debarmo': ("debo", "_arm"),
|
|
|
|
'b-devarmo': ("devo", "_arm"),
|
|
|
|
}
|
2023-12-12 10:33:47 -01:00
|
|
|
|
|
|
|
build_argument = self.arguments.b
|
|
|
|
if build_argument in build_type_mapping:
|
|
|
|
readybuild()
|
|
|
|
BuildXfce(*build_type_mapping[build_argument])
|
|
|
|
else:
|
|
|
|
logger.critical("You have not specified a build to process!")
|
2024-01-05 02:40:40 -01:00
|
|
|
build_argument_oem = self.arguments.b
|
|
|
|
if build_argument_oem in build_type_mapping_oem:
|
|
|
|
readybuild()
|
|
|
|
BuildXfce(*build_type_mapping[build_argument])
|
|
|
|
else:
|
|
|
|
logger.critical("You have not specified a build to process!")
|
2023-12-12 04:47:22 -01:00
|
|
|
|
2023-08-24 06:16:56 +00:00
|
|
|
def dgnomefb(self):
|
|
|
|
""" Arguments for the gnomefb """
|
2023-12-12 11:11:09 -01:00
|
|
|
build_type_mapping = {
|
|
|
|
'b-deb64': ("deb", "_64"),
|
|
|
|
'b-deb32': ("deb", "_32"),
|
|
|
|
'b-dev64': ("dev", "_64"),
|
|
|
|
'b-dev32': ("dev", "_32"),
|
|
|
|
'b-debarm': ("deb", "_arm"),
|
|
|
|
'b-devarm': ("dev", "_arm"),
|
|
|
|
}
|
|
|
|
|
|
|
|
build_argument = self.arguments.b
|
|
|
|
if build_argument in build_type_mapping:
|
|
|
|
readybuild()
|
|
|
|
BuildGflashback(*build_type_mapping[build_argument])
|
|
|
|
else:
|
|
|
|
logger.critical("You have not specified a build to process!")
|
2023-12-12 04:03:12 -01:00
|
|
|
|
|
|
|
|
2023-12-12 04:47:22 -01:00
|
|
|
def dopenbox(self):
|
|
|
|
""" Arguments for the openbox """
|
2023-12-12 11:11:09 -01:00
|
|
|
build_type_mapping = {
|
|
|
|
'b-deb64': ("deb", "_64"),
|
|
|
|
'b-deb32': ("deb", "_32"),
|
|
|
|
'b-dev64': ("dev", "_64"),
|
|
|
|
'b-dev32': ("dev", "_32"),
|
|
|
|
'b-debarm': ("deb", "_arm"),
|
|
|
|
'b-devarm': ("dev", "_arm"),
|
|
|
|
}
|
|
|
|
|
|
|
|
build_argument = self.arguments.b
|
|
|
|
if build_argument in build_type_mapping:
|
|
|
|
pass
|
2024-01-09 02:44:47 -01:00
|
|
|
readybuild()
|
|
|
|
BuildOpenbox(*build_type_mapping[build_argument])
|
2023-12-12 04:47:22 -01:00
|
|
|
else:
|
2023-12-12 11:11:09 -01:00
|
|
|
logger.critical("You have not specified a build to process!")
|
2024-03-19 11:01:13 -01:00
|
|
|
|
|
|
|
|
2024-03-19 11:34:20 -01:00
|
|
|
def dloadxf(self):
|
2024-03-11 12:57:59 -01:00
|
|
|
""" Arguments for the loaded xfce """
|
|
|
|
build_type_mapping = {
|
2024-05-12 23:15:35 +00:00
|
|
|
'b-deb64': ("debld", "_64"),
|
|
|
|
'b-dev64': ("devld", "_64"),
|
2024-03-11 12:57:59 -01:00
|
|
|
}
|
|
|
|
|
|
|
|
build_argument = self.arguments.b
|
|
|
|
if build_argument in build_type_mapping:
|
|
|
|
pass
|
|
|
|
readybuild()
|
2024-03-20 11:53:53 -01:00
|
|
|
BuildLoaded(*build_type_mapping[build_argument])
|
2024-03-11 12:57:59 -01:00
|
|
|
else:
|
|
|
|
logger.critical("You have not specified a build to process!")
|
2023-12-12 11:11:09 -01:00
|
|
|
|
2023-08-24 06:16:56 +00:00
|
|
|
|
2024-04-12 11:23:24 +00:00
|
|
|
def dserver(self):
|
|
|
|
""" Arguments for the Server """
|
|
|
|
build_type_mapping = {
|
2024-05-12 23:15:35 +00:00
|
|
|
'b-deb64': ("debsrv", "_64"),
|
|
|
|
'b-dev64': ("devsrv", "_64"),
|
2024-04-12 11:23:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build_argument = self.arguments.b
|
|
|
|
if build_argument in build_type_mapping:
|
|
|
|
pass
|
|
|
|
readybuild()
|
|
|
|
BuildServer(*build_type_mapping[build_argument])
|
|
|
|
else:
|
|
|
|
logger.critical("You have not specified a build to process!")
|
|
|
|
|
2024-05-12 23:15:35 +00:00
|
|
|
|
2024-05-09 13:10:35 +00:00
|
|
|
def dmini(self):
|
2024-05-12 00:17:42 +00:00
|
|
|
""" Arguments for the Mini """
|
2024-05-09 13:10:35 +00:00
|
|
|
build_type_mapping = {
|
2024-05-12 23:15:35 +00:00
|
|
|
'b-deb64': ("debmin", "_64"),
|
2024-05-12 23:30:57 +00:00
|
|
|
'b-deb32': ("debmin", "_32"),
|
2024-05-12 23:15:35 +00:00
|
|
|
'b-dev64': ("devmin", "_64"),
|
|
|
|
'b-dev32': ("devmin", "_32"),
|
2024-05-09 13:10:35 +00:00
|
|
|
}
|
2024-04-12 11:23:24 +00:00
|
|
|
|
2024-05-09 13:10:35 +00:00
|
|
|
build_argument = self.arguments.b
|
|
|
|
if build_argument in build_type_mapping:
|
|
|
|
pass
|
|
|
|
readybuild()
|
2024-05-12 23:15:35 +00:00
|
|
|
BuildMini(*build_type_mapping[build_argument])
|
2024-05-09 13:10:35 +00:00
|
|
|
else:
|
|
|
|
logger.critical("You have not specified a build to process!")
|
2024-04-12 11:23:24 +00:00
|
|
|
|
2024-05-12 23:15:35 +00:00
|
|
|
|
2024-05-09 13:10:35 +00:00
|
|
|
Decisions()
|