Reorganized the builder to as a python project, it allows for more, scalable processes and logging Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
222 lines
7.8 KiB
Python
222 lines
7.8 KiB
Python
"""
|
|
* SPDX-FileCopyrightText: 2023-2025 PeppermintOS Team
|
|
* (peppermintosteam@proton.me)
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
* This config file is the master configs used to build ISOs or arch
|
|
* and desktop as the need to scale the builds arises, you can add more
|
|
* settings to meet the need.
|
|
"""
|
|
|
|
from python_modules.inflate_modules import (
|
|
set_fusato_structure, set_fusato_installer_structure,
|
|
set_fusato_server_installer_structure, set_fusato_server_structure,
|
|
set_fusato_mini_installer_structure,
|
|
set_fusato_mini_structure, set_general_shared,
|
|
set_binary_shared, set_lightdm, set_specific_32_packages, set_xfce,
|
|
set_gfb, set_opb, set_kde, set_loaded, set_server, set_mini,
|
|
set_chroot_grub_64, set_chroot_grub_arm, set_chroot_grub_32,
|
|
set_binary_64, set_binary_arm, set_binary_32, set_firmware,
|
|
set_firmware_arm, set_grub_shared
|
|
)
|
|
|
|
from python_modules.infra_modules import (
|
|
add_web_profile, boostrap_shared, ensure_calamares_directories,
|
|
copy_multimedia_files, copy_binary_folders, copy_fusato_configs,
|
|
copy_server_config_files, copy_architecture_files,
|
|
copy_chroot_calamares_installer_files,copy_calamares_files_utility,
|
|
copy_debian_installer_files, gnome_flashback_configs,
|
|
get_id_build_type, icons_themes,kde_configs, loaded_folders,
|
|
mini_shared_installer_files, open_box_configs, set_symlinks,
|
|
setup_hooks, shared_files,shared_server_files, shared_folders,
|
|
server_configs, xfce_configs, xfce_loaded_configs,setup_hooks_minis)
|
|
|
|
from python_modules.paths_modules import (
|
|
BSTRING_ISO_CONFIGS, BSTRING_ISO_CONFIGS_FUSATO, HOME_FOLDER,
|
|
PACKAGE_LIST, WPCHROOT, CHROOT_FOLDER, INCLUDES_INSTALLER,
|
|
BOOTSTRAP_FOLDER, FUSATO_ROOT, DE_PATH, make_bootstrap_shared,
|
|
make_packages_shared, make_folders, make_chroot_fusato_structure,
|
|
make_chroot_installer_structure, make_chroot_fusato_server,
|
|
installer_server_dirs, installer_mini_dirs, nightly_paths,
|
|
copyfilesspecified, copyfolderfiles, osrelease,
|
|
mainlineidfile, BASE_DESTINATION, BASE_NAME,BINARYPTH,
|
|
FUSATOCONFIG, allowed_bases, calamreschrootinstaller, symlinks
|
|
)
|
|
|
|
|
|
|
|
##########################
|
|
# Functions to be ran
|
|
##########################
|
|
# inflate_bubble sets the configs files
|
|
# infra copies the needed configs
|
|
|
|
shared_setup_cmds = [
|
|
# Inflate Modules
|
|
set_fusato_structure,
|
|
set_fusato_installer_structure,
|
|
set_general_shared,
|
|
set_symlinks,
|
|
# Infra Modules
|
|
icons_themes,
|
|
shared_files,
|
|
boostrap_shared,
|
|
add_web_profile,
|
|
shared_folders,
|
|
set_lightdm
|
|
]
|
|
|
|
|
|
shared_setup_loaded_cmds = [
|
|
# Inflate Modules
|
|
set_fusato_structure,
|
|
set_fusato_installer_structure,
|
|
set_general_shared,
|
|
set_grub_shared,
|
|
set_binary_shared,
|
|
set_lightdm,
|
|
# Infra Modules
|
|
shared_folders,
|
|
icons_themes,
|
|
shared_files,
|
|
set_symlinks,
|
|
boostrap_shared
|
|
]
|
|
|
|
|
|
shared_setup_server_cmds = [set_fusato_server_installer_structure,
|
|
set_fusato_server_structure,
|
|
shared_server_files,
|
|
]
|
|
|
|
|
|
shared_setup_mini_cmds = [
|
|
set_fusato_mini_structure,
|
|
set_grub_shared,
|
|
set_binary_shared,
|
|
set_fusato_mini_installer_structure,
|
|
mini_shared_installer_files,
|
|
copy_debian_installer_files,
|
|
copy_architecture_files,
|
|
copy_binary_folders
|
|
]
|
|
|
|
|
|
flag_specific_setup_32_cmds = [set_specific_32_packages]
|
|
|
|
|
|
# Setup Desktop configs
|
|
# Add more as needed
|
|
setup_xfce_cmds = [set_xfce, xfce_configs]
|
|
setup_gfb_cmds = [set_gfb, gnome_flashback_configs]
|
|
setup_opb_cmds = [set_opb, open_box_configs]
|
|
setup_kde_cmds =[set_kde, kde_configs]
|
|
setup_loaded_cmds = [set_loaded, xfce_loaded_configs, loaded_folders]
|
|
setup_server_cmds = [set_server, server_configs]
|
|
setup_mini_cmds = [set_mini]
|
|
|
|
# Setup grub chroot
|
|
setup_chroot_grub_64 = [set_chroot_grub_64]
|
|
setup_chroot_grub_arm = [set_chroot_grub_arm]
|
|
setup_chroot_grub_32 = [set_chroot_grub_32]
|
|
|
|
# Setup grub binary
|
|
setup_binary_grub_64 = [set_binary_64]
|
|
setup_binary_grub_arm = [set_binary_arm]
|
|
setup_binary_grub_32 = [set_binary_32]
|
|
|
|
# Setup Firmware
|
|
setup_fw_64_32 = [set_firmware]
|
|
setup_fw_arm = [set_firmware_arm]
|
|
|
|
# Copy Installer files thisis for either the Debian or Devuan
|
|
copy_calamares = [copy_chroot_calamares_installer_files,
|
|
copy_calamares_files_utility]
|
|
copy_server_debian_installer = [copy_debian_installer_files]
|
|
copy_mini_debian_installer = [mini_shared_installer_files]
|
|
|
|
# Grub stuff
|
|
copy_core_grub_file = [copy_architecture_files, copy_binary_folders]
|
|
|
|
# Set hooks
|
|
copy_hooks = [setup_hooks]
|
|
|
|
copy_mini_hooks = [setup_hooks_minis]
|
|
|
|
# Combined lists for building
|
|
# Add more as the need arises Per Desktop
|
|
build64_xfce_build = [shared_setup_cmds + setup_xfce_cmds +
|
|
setup_chroot_grub_64 + setup_binary_grub_64 +
|
|
setup_fw_64_32 + copy_calamares +
|
|
copy_core_grub_file + copy_hooks
|
|
]
|
|
|
|
build32_xfce_build = [shared_setup_cmds + setup_xfce_cmds +
|
|
setup_chroot_grub_32 + setup_binary_grub_32 +
|
|
setup_fw_64_32 + flag_specific_setup_32_cmds +
|
|
copy_calamares +
|
|
copy_core_grub_file + copy_hooks
|
|
]
|
|
|
|
buildarm_xfce_build = [shared_setup_cmds + setup_xfce_cmds +
|
|
setup_chroot_grub_arm + setup_binary_grub_arm +
|
|
setup_fw_arm + copy_calamares +
|
|
copy_core_grub_file + copy_hooks
|
|
]
|
|
# KDE
|
|
build_64_kde_build = []
|
|
|
|
|
|
# Mate
|
|
build_64_mate_build = []
|
|
|
|
|
|
# Gnome_FlashBack
|
|
build64_gfb_build = [shared_setup_cmds + setup_gfb_cmds +
|
|
setup_chroot_grub_64 + setup_binary_grub_64 +
|
|
setup_fw_64_32 + copy_calamares +
|
|
copy_core_grub_file + copy_hooks
|
|
]
|
|
|
|
|
|
#Open_box
|
|
build64_opb_build = [shared_setup_cmds + setup_opb_cmds +
|
|
setup_chroot_grub_64 + setup_binary_grub_64 +
|
|
setup_fw_64_32 + copy_calamares +
|
|
copy_core_grub_file + copy_hooks
|
|
]
|
|
|
|
|
|
#Kde
|
|
build64_kde_build = [shared_setup_cmds + setup_kde_cmds +
|
|
setup_chroot_grub_64 + setup_binary_grub_64 +
|
|
setup_fw_64_32
|
|
]
|
|
|
|
|
|
|
|
#Xfce_loaded
|
|
build64_loaded_build = [shared_setup_loaded_cmds + setup_loaded_cmds +
|
|
setup_chroot_grub_64 + setup_binary_grub_64 +
|
|
setup_fw_64_32 + copy_calamares +
|
|
copy_core_grub_file + copy_hooks
|
|
]
|
|
|
|
|
|
build32_loaded_build = [shared_setup_loaded_cmds + setup_loaded_cmds +
|
|
setup_chroot_grub_32 + setup_binary_grub_32 +
|
|
setup_fw_64_32
|
|
]
|
|
|
|
#Server
|
|
build64_server_build = [shared_setup_server_cmds + setup_server_cmds +
|
|
setup_fw_64_32
|
|
]
|
|
|
|
|
|
#Mini
|
|
build64_mini_build = [shared_setup_mini_cmds + setup_mini_cmds +
|
|
setup_binary_grub_64 + setup_fw_64_32 +
|
|
copy_mini_hooks
|
|
]
|