Updates made as follows,
Added in the cleases functions, by desktop Also added in logger info. Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
parent
3d542c85d5
commit
1d414e75fa
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -9,6 +9,7 @@ import os
|
|||
from pathlib import Path
|
||||
import argparse
|
||||
import collections
|
||||
import logging
|
||||
import conf
|
||||
import infra
|
||||
import inflate_bubble
|
||||
|
@ -21,6 +22,22 @@ FUSATO_ROOT = '/fusato'
|
|||
WPCHROOT = '/fusato/config/includes.chroot'
|
||||
term_size = os.get_terminal_size()
|
||||
|
||||
# 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)
|
||||
|
||||
# Common Logging Messages
|
||||
CFG_TREE_READY = "Config tree ready!"
|
||||
CFG_READY = "Configs in place start the ISO build process"
|
||||
START_LIVEBUILD = "Start Live-Build Process"
|
||||
BUILD_COMPLETED = "ISO build has completed successfully"
|
||||
BUILD_COMPLETED = "ISO is ready for usage."
|
||||
|
||||
|
||||
class BuildXfce:
|
||||
"""
|
||||
|
@ -43,16 +60,15 @@ class BuildXfce:
|
|||
def build_deb_64(self):
|
||||
""" Builds the 64bit ISO XFCE"""
|
||||
current_working_directory = os.getcwd()
|
||||
dir_current = "Current working directory" + current_working_directory
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a Debian based 64 bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info("Building a Debian based 64 bit ISO")
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_deb64
|
||||
lbsetup = conf.LBSET_DEB64
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
logger.info(CFG_TREE_READY)
|
||||
# Start with the XFCE stuff
|
||||
cmd_list_64 = collections.deque(conf.build64_xfce_build)
|
||||
list_size_64 = len(cmd_list_64)
|
||||
|
@ -66,48 +82,43 @@ class BuildXfce:
|
|||
infra.ArchitectureFiles("deb", "_64")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print("INFO: Start Live-Build Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(CFG_READY)
|
||||
logger.info(START_LIVEBUILD)
|
||||
logger.info(dir_current)
|
||||
print('.' * term_size.columns)
|
||||
lbsetup = conf.lbset_deb64
|
||||
lbsetup = conf.LBSET_DEB64
|
||||
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
|
||||
)
|
||||
# Set the build inidcator
|
||||
inflate_bubble.make_bld_xfce("deb", "64")
|
||||
logger.info(dir_current)
|
||||
os.system(run_cmd)
|
||||
print("INFO: ISO build has completed successfully")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('.' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
finish_cleanup.make_check_sum()
|
||||
finish_cleanup.copy_iso_file_nightly_deb64()
|
||||
finish_cleanup.copy_debian_xfce_based()
|
||||
finish_cleanup.kill_old_iso()
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: ISO is ready for usage.")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('=' * term_size.columns)
|
||||
|
||||
|
||||
def build_deb_32(self):
|
||||
""" Builds the 32bit ISO XFCE"""
|
||||
current_working_directory = os.getcwd()
|
||||
dir_current = "Current working directory" + current_working_directory
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a Debian based 32 bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info("Building a Debian based 32 bit ISO")
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_deb32
|
||||
lbsetup = conf.LBSET_DEB32
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
logger.info(CFG_TREE_READY)
|
||||
# Start with the XFCE stuff
|
||||
cmd_list_32 = collections.deque(conf.build32_xfce_build)
|
||||
list_size_32 = len(cmd_list_32)
|
||||
|
@ -121,48 +132,43 @@ class BuildXfce:
|
|||
infra.ArchitectureFiles("deb", "_32")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print("INFO: Start Live-Build Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(CFG_READY)
|
||||
logger.info(START_LIVEBUILD)
|
||||
logger.info(dir_current)
|
||||
print('.' * term_size.columns)
|
||||
lbsetup = conf.lbset_deb32
|
||||
lbsetup = conf.LBSET_DEB32
|
||||
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
|
||||
)
|
||||
# Set the build inidcator
|
||||
inflate_bubble.make_bld_xfce("deb", "32")
|
||||
logger.info(dir_current)
|
||||
os.system(run_cmd)
|
||||
print("INFO: ISO build has completed successfully")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('.' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
finish_cleanup.make_check_sum()
|
||||
finish_cleanup.copy_iso_file_nightly_deb32()
|
||||
finish_cleanup.copy_debian_xfce_based()
|
||||
finish_cleanup.kill_old_iso()
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: ISO is ready for usage.")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('=' * term_size.columns)
|
||||
|
||||
|
||||
def build_deb_arm(self):
|
||||
""" Builds the arm ISO XFCE"""
|
||||
current_working_directory = os.getcwd()
|
||||
dir_current = "Current working directory" + current_working_directory
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a Debian based arm bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info("Building a Debian based arm bit ISO")
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_debarm
|
||||
lbsetup = conf.LBSET_DEBARM
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
logger.info(CFG_TREE_READY)
|
||||
# Start with the XFCE stuff
|
||||
cmd_list_arm = collections.deque(conf.buildarm_xfce_build)
|
||||
list_size_arm = len(cmd_list_arm)
|
||||
|
@ -176,32 +182,28 @@ class BuildXfce:
|
|||
infra.ArchitectureFiles("deb", "_arm")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print("INFO: Start Live-Build Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(CFG_READY)
|
||||
logger.info(START_LIVEBUILD)
|
||||
logger.info(dir_current)
|
||||
print('.' * term_size.columns)
|
||||
lbsetup = conf.lbset_debarm
|
||||
lbsetup = conf.LBSET_DEBARM
|
||||
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
|
||||
)
|
||||
# Set the build inidcator
|
||||
inflate_bubble.make_bld_xfce("deb", "arm")
|
||||
logger.info(dir_current)
|
||||
os.system(run_cmd)
|
||||
print("INFO: ISO build has completed successfully")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('.' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
finish_cleanup.make_check_sum()
|
||||
finish_cleanup.copy_iso_file_nightly_debarm()
|
||||
finish_cleanup.copy_debian_xfce_based()
|
||||
finish_cleanup.kill_old_iso()
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: ISO is ready for usage.")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('=' * term_size.columns)
|
||||
|
||||
|
||||
|
@ -216,22 +218,21 @@ class BuildXfce:
|
|||
elif self.sarch == '_arm':
|
||||
self.build_deb_arm()
|
||||
else:
|
||||
print("WARNING: No active build specified")
|
||||
logger.warning("No active build specified!")
|
||||
|
||||
|
||||
def build_dev_64(self):
|
||||
""" Builds the 64bit ISO XFCE"""
|
||||
current_working_directory = os.getcwd()
|
||||
dir_current = "Current working directory" + current_working_directory
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a devuan based 64 bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info("Building a devuan based 64 bit ISO")
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_dev64
|
||||
lbsetup = conf.LBSET_DEV64
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
logger.info(CFG_TREE_READY)
|
||||
# Start with the XFCE stuff
|
||||
cmd_list_64 = collections.deque(conf.build64_xfce_build)
|
||||
list_size_64 = len(cmd_list_64)
|
||||
|
@ -245,49 +246,44 @@ class BuildXfce:
|
|||
infra.ArchitectureFiles("dev", "_64")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print("INFO: Start Live-Build Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(CFG_READY)
|
||||
logger.info(START_LIVEBUILD)
|
||||
logger.info(dir_current)
|
||||
print('.' * term_size.columns)
|
||||
lbsetup = conf.lbset_dev64
|
||||
lbsetup = conf.LBSET_DEV64
|
||||
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
|
||||
)
|
||||
# Set the build inidcator
|
||||
inflate_bubble.make_bld_xfce("dev","64")
|
||||
logger.info(dir_current)
|
||||
os.system(run_cmd)
|
||||
print("INFO: ISO build has completed successfully")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('.' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
finish_cleanup.make_check_sum()
|
||||
finish_cleanup.copy_iso_file_nightly_dev64()
|
||||
finish_cleanup.copy_devuan_xfce_based()
|
||||
finish_cleanup.kill_old_iso()
|
||||
#'finish_cleanup.copy_iso_file_prod_deb64',
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: ISO is ready for usage.")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('=' * term_size.columns)
|
||||
|
||||
|
||||
def build_dev_32(self):
|
||||
""" Builds the 32bit ISO XFCE"""
|
||||
current_working_directory = os.getcwd()
|
||||
dir_current = "Current working directory" + current_working_directory
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a devuan based 32 bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info("Building a devuan based 32 bit ISO")
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_dev32
|
||||
lbsetup = conf.LBSET_DEV32
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
logger.info(CFG_TREE_READY)
|
||||
# Start with the XFCE stuff
|
||||
cmd_list_32 = collections.deque(conf.build32_xfce_build)
|
||||
list_size_32 = len(cmd_list_32)
|
||||
|
@ -301,48 +297,44 @@ class BuildXfce:
|
|||
infra.ArchitectureFiles("dev", "_32")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print("INFO: Start Live-Build Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(CFG_READY)
|
||||
logger.info(START_LIVEBUILD)
|
||||
logger.info(dir_current)
|
||||
print('.' * term_size.columns)
|
||||
lbsetup = conf.lbset_dev32
|
||||
lbsetup = conf.LBSET_DEV32
|
||||
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
|
||||
)
|
||||
# Set the build inidcator
|
||||
inflate_bubble.make_bld_xfce("dev","32")
|
||||
logger.info(dir_current)
|
||||
os.system(run_cmd)
|
||||
print("INFO: ISO build has completed successfully")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('.' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
finish_cleanup.make_check_sum()
|
||||
finish_cleanup.copy_iso_file_nightly_dev32()
|
||||
finish_cleanup.copy_devuan_xfce_based()
|
||||
finish_cleanup.kill_old_iso()
|
||||
#'finish_cleanup.copy_iso_file_prod_deb32',
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: ISO is ready for usage.")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('=' * term_size.columns)
|
||||
|
||||
|
||||
def build_dev_arm(self):
|
||||
""" Builds the arm ISO XFCE"""
|
||||
current_working_directory = os.getcwd()
|
||||
dir_current = "Current working directory" + current_working_directory
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a devuan based arm bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_devarm
|
||||
lbsetup = conf.LBSET_DEVARM
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
logger.info(CFG_TREE_READY)
|
||||
# Start with the XFCE stuff
|
||||
cmd_list_arm = collections.deque(conf.buildarm_xfce_build)
|
||||
list_size_arm = len(cmd_list_arm)
|
||||
|
@ -356,32 +348,29 @@ class BuildXfce:
|
|||
infra.ArchitectureFiles("dev", "_arm")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print("INFO: Start Live-Build Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(CFG_READY)
|
||||
logger.info(START_LIVEBUILD)
|
||||
logger.info(dir_current)
|
||||
print('.' * term_size.columns)
|
||||
lbsetup = conf.lbset_devarm
|
||||
lbsetup = conf.LBSET_DEVARM
|
||||
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
|
||||
)
|
||||
# Set the build inidcator
|
||||
inflate_bubble.make_bld_xfce("dev","arm")
|
||||
logger.info(dir_current)
|
||||
os.system(run_cmd)
|
||||
print("INFO: ISO build has completed successfully")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('.' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
finish_cleanup.make_check_sum()
|
||||
finish_cleanup.copy_iso_file_nightly_devarm()
|
||||
finish_cleanup.copy_devuan_xfce_based()
|
||||
finish_cleanup.kill_old_iso()
|
||||
#'finish_cleanup.copy_iso_file_prod_DEBARM',
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: ISO is ready for usage.")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('=' * term_size.columns)
|
||||
|
||||
|
||||
|
@ -420,16 +409,15 @@ class BuildGflashback:
|
|||
def build_deb_64(self):
|
||||
""" Builds the 64bit ISO GNOME FlashBack"""
|
||||
current_working_directory = os.getcwd()
|
||||
dir_current = "Current working directory" + current_working_directory
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a Debian based 64 bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info("Building a Debian based 64 bit ISO")
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_deb64
|
||||
lbsetup = conf.LBSET_DEB64
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
logger.info(CFG_TREE_READY)
|
||||
# Start with the GNOME FlashBack stuff
|
||||
cmd_list_64 = collections.deque(conf.build64_gfb_build)
|
||||
list_size_64 = len(cmd_list_64)
|
||||
|
@ -443,48 +431,43 @@ class BuildGflashback:
|
|||
infra.ArchitectureFiles("deb", "_64")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print("INFO: Start Live-Build Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(CFG_READY)
|
||||
logger.info(START_LIVEBUILD)
|
||||
logger.info(dir_current)
|
||||
print('.' * term_size.columns)
|
||||
lbsetup = conf.lbset_deb64
|
||||
lbsetup = conf.LBSET_DEB64
|
||||
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
|
||||
)
|
||||
# Set the build inidcator
|
||||
inflate_bubble.make_bld_gnomeflashback("deb","64")
|
||||
logger.info(dir_current)
|
||||
os.system(run_cmd)
|
||||
print("INFO: ISO build has completed successfully")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('.' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
finish_cleanup.make_check_sum()
|
||||
finish_cleanup.copy_iso_file_nightly_deb64()
|
||||
finish_cleanup.copy_debian_gfb_based()
|
||||
finish_cleanup.kill_old_iso()
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: ISO is ready for usage.")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('=' * term_size.columns)
|
||||
|
||||
|
||||
def build_deb_32(self):
|
||||
""" Builds the 32bit ISO GNOME FlashBack"""
|
||||
current_working_directory = os.getcwd()
|
||||
dir_current = "Current working directory" + current_working_directory
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a Debian based 32 bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_deb32
|
||||
lbsetup = conf.LBSET_DEB32
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
logger.info(CFG_TREE_READY)
|
||||
# Start with the GNOME FlashBack stuff
|
||||
cmd_list_32 = collections.deque(conf.build32_gfb_build)
|
||||
list_size_32 = len(cmd_list_32)
|
||||
|
@ -498,48 +481,43 @@ class BuildGflashback:
|
|||
infra.ArchitectureFiles("deb", "_32")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print("INFO: Start Live-Build Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(CFG_READY)
|
||||
logger.info(START_LIVEBUILD)
|
||||
logger.info(dir_current)
|
||||
print('.' * term_size.columns)
|
||||
lbsetup = conf.lbset_deb32
|
||||
lbsetup = conf.LBSET_DEB32
|
||||
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
|
||||
)
|
||||
# Set the build inidcator
|
||||
inflate_bubble.make_bld_gnomeflashback("deb","32")
|
||||
logger.info(dir_current)
|
||||
os.system(run_cmd)
|
||||
print("INFO: ISO build has completed successfully")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('.' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
finish_cleanup.make_check_sum()
|
||||
finish_cleanup.copy_iso_file_nightly_deb32()
|
||||
finish_cleanup.copy_debian_gfb_based()
|
||||
finish_cleanup.kill_old_iso()
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: ISO is ready for usage.")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('=' * term_size.columns)
|
||||
|
||||
|
||||
def build_deb_arm(self):
|
||||
""" Builds the arm ISO GNOME FlashBack"""
|
||||
current_working_directory = os.getcwd()
|
||||
dir_current = "Current working directory" + current_working_directory
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a Debian based arm bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_debarm
|
||||
lbsetup = conf.LBSET_DEBARM
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
logger.info(CFG_TREE_READY)
|
||||
# Start with the GNOME FlashBack stuff
|
||||
cmd_list_arm = collections.deque(conf.buildarm_gfb_build)
|
||||
list_size_arm = len(cmd_list_arm)
|
||||
|
@ -553,32 +531,28 @@ class BuildGflashback:
|
|||
infra.ArchitectureFiles("deb", "_arm")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print("INFO: Start Live-Build Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(CFG_READY)
|
||||
logger.info(START_LIVEBUILD)
|
||||
logger.info(dir_current)
|
||||
print('.' * term_size.columns)
|
||||
lbsetup = conf.lbset_debarm
|
||||
lbsetup = conf.LBSET_DEBARM
|
||||
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
|
||||
)
|
||||
# Set the build inidcator
|
||||
inflate_bubble.make_bld_gnomeflashback("deb","arm")
|
||||
logger.info(dir_current)
|
||||
os.system(run_cmd)
|
||||
print("INFO: ISO build has completed successfully")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('.' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
finish_cleanup.make_check_sum()
|
||||
finish_cleanup.copy_iso_file_nightly_debarm()
|
||||
finish_cleanup.copy_debian_gfb_based()
|
||||
finish_cleanup.kill_old_iso()
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: ISO is ready for usage.")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('=' * term_size.columns)
|
||||
|
||||
|
||||
|
@ -599,16 +573,15 @@ class BuildGflashback:
|
|||
def build_dev_64(self):
|
||||
""" Builds the 64bit ISO GNOME FlashBack"""
|
||||
current_working_directory = os.getcwd()
|
||||
dir_current = "Current working directory" + current_working_directory
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a devuan based 64 bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_dev64
|
||||
lbsetup = conf.LBSET_DEV64
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
logger.info(CFG_TREE_READY)
|
||||
# Start with the GNOME FlashBack stuff
|
||||
cmd_list_64 = collections.deque(conf.build64_gfb_build)
|
||||
list_size_64 = len(cmd_list_64)
|
||||
|
@ -622,49 +595,44 @@ class BuildGflashback:
|
|||
infra.ArchitectureFiles("dev", "_64")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print("INFO: Start Live-Build Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(CFG_READY)
|
||||
logger.info(START_LIVEBUILD)
|
||||
logger.info(dir_current)
|
||||
print('.' * term_size.columns)
|
||||
lbsetup = conf.lbset_dev64
|
||||
lbsetup = conf.LBSET_DEV64
|
||||
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
|
||||
)
|
||||
# Set the build inidcator
|
||||
inflate_bubble.make_bld_gnomeflashback("dev","64")
|
||||
logger.info(dir_current)
|
||||
os.system(run_cmd)
|
||||
print("INFO: ISO build has completed successfully")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('.' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
finish_cleanup.make_check_sum()
|
||||
finish_cleanup.copy_iso_file_nightly_dev64()
|
||||
finish_cleanup.copy_devuan_gfb_based()
|
||||
finish_cleanup.kill_old_iso()
|
||||
#'finish_cleanup.copy_iso_file_prod_deb64',
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: ISO is ready for usage.")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('=' * term_size.columns)
|
||||
|
||||
|
||||
def build_dev_32(self):
|
||||
""" Builds the 32bit ISO GNOME FlashBack"""
|
||||
current_working_directory = os.getcwd()
|
||||
dir_current = "Current working directory" + current_working_directory
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a devuan based 32 bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_dev32
|
||||
lbsetup = conf.LBSET_DEV32
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
logger.info(CFG_TREE_READY)
|
||||
# Start with the GNOME FlashBack stuff
|
||||
cmd_list_32 = collections.deque(conf.build32_gfb_build)
|
||||
list_size_32 = len(cmd_list_32)
|
||||
|
@ -678,48 +646,44 @@ class BuildGflashback:
|
|||
infra.ArchitectureFiles("dev", "_32")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print("INFO: Start Live-Build Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(CFG_READY)
|
||||
logger.info(START_LIVEBUILD)
|
||||
logger.info(dir_current)
|
||||
print('.' * term_size.columns)
|
||||
lbsetup = conf.lbset_dev32
|
||||
lbsetup = conf.LBSET_DEV32
|
||||
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
|
||||
)
|
||||
# Set the build inidcator
|
||||
inflate_bubble.make_bld_gnomeflashback("dev","32")
|
||||
logger.info(dir_current)
|
||||
os.system(run_cmd)
|
||||
print("INFO: ISO build has completed successfully")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('.' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
finish_cleanup.make_check_sum()
|
||||
finish_cleanup.copy_iso_file_nightly_dev32()
|
||||
finish_cleanup.copy_devuan_gfb_based()
|
||||
finish_cleanup.kill_old_iso()
|
||||
#'finish_cleanup.copy_iso_file_prod_deb32',
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: ISO is ready for usage.")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('=' * term_size.columns)
|
||||
|
||||
|
||||
def build_dev_arm(self):
|
||||
""" Builds the arm ISO GNOME FlashBack"""
|
||||
current_working_directory = os.getcwd()
|
||||
dir_current = "Current working directory" + current_working_directory
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Building a devuan based arm bit ISO")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
# Set the config tree
|
||||
lbsetup = conf.lbset_devarm
|
||||
lbsetup = conf.LBSET_DEVARM
|
||||
os.system(lbsetup)
|
||||
print("Config tree ready!")
|
||||
logger.info(CFG_TREE_READY)
|
||||
# Start with the GNOME FlashBack stuff
|
||||
cmd_list_arm = collections.deque(conf.buildarm_gfb_build)
|
||||
list_size_arm = len(cmd_list_arm)
|
||||
|
@ -733,32 +697,29 @@ class BuildGflashback:
|
|||
infra.ArchitectureFiles("dev", "_arm")
|
||||
# Run the Build
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: Configs in place start the ISO build process")
|
||||
print("INFO: Start Live-Build Process")
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(CFG_READY)
|
||||
logger.info(START_LIVEBUILD)
|
||||
logger.info(dir_current)
|
||||
print('.' * term_size.columns)
|
||||
lbsetup = conf.lbset_devarm
|
||||
lbsetup = conf.LBSET_DEVARM
|
||||
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
|
||||
)
|
||||
# Set the build inidcator
|
||||
inflate_bubble.make_bld_gnomeflashback("dev", "arm")
|
||||
logger.info(dir_current)
|
||||
os.system(run_cmd)
|
||||
print("INFO: ISO build has completed successfully")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('.' * term_size.columns)
|
||||
print("INFO: Current working directory" +
|
||||
current_working_directory
|
||||
)
|
||||
logger.info(dir_current)
|
||||
print('=' * term_size.columns)
|
||||
finish_cleanup.make_check_sum()
|
||||
finish_cleanup.copy_iso_file_nightly_devarm()
|
||||
finish_cleanup.copy_devuan_gfb_based()
|
||||
finish_cleanup.kill_old_iso()
|
||||
#'finish_cleanup.copy_iso_file_prod_DEBARM',
|
||||
print('=' * term_size.columns)
|
||||
print("INFO: ISO is ready for usage.")
|
||||
logger.info(BUILD_COMPLETED)
|
||||
print('=' * term_size.columns)
|
||||
|
||||
|
||||
|
@ -781,7 +742,7 @@ def readybuild():
|
|||
and recreate it, otherwise just make a new folder named
|
||||
fusato.
|
||||
"""
|
||||
print("INFO: Making ready the fusato build directory")
|
||||
logger.info("Making ready the fusato build directory")
|
||||
os.chdir(HOME_FOLDER)
|
||||
if os.path.exists('fusato'):
|
||||
rm_cmd = "sudo rm -r -f fusato"
|
||||
|
@ -845,9 +806,7 @@ class Decsions:
|
|||
readybuild()
|
||||
BuildXfce("dev", "_arm")
|
||||
else:
|
||||
print('You have not specified a valid '
|
||||
'build architecture!!'
|
||||
)
|
||||
logger.critical("You have not specified a build to process!")
|
||||
|
||||
def dgnomefb(self):
|
||||
""" Arguments for the gnomefb """
|
||||
|
@ -871,8 +830,7 @@ class Decsions:
|
|||
readybuild()
|
||||
BuildGflashback("dev", "_arm")
|
||||
else:
|
||||
print('You have not specified a valid '
|
||||
'build architecture!!')
|
||||
logger.critical("You have not specified a build to process!")
|
||||
|
||||
def dopenbox(self):
|
||||
""" Arguments for the openbox """
|
||||
|
@ -899,8 +857,8 @@ class Decsions:
|
|||
print('You have not specified a valid '
|
||||
'build architecture!!')
|
||||
else:
|
||||
print('You have not specified a valid '
|
||||
'desktop environment!!')
|
||||
logger.critical("You have not specified a valid "
|
||||
"desktop environment!!")
|
||||
|
||||
|
||||
Decsions()
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
import inflate_bubble
|
||||
import infra
|
||||
|
||||
|
||||
"""
|
||||
* Author: "PeppermintOS Team(peppermintosteam@proton.me)
|
||||
*
|
||||
* License: SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*
|
||||
* Config files used to manage bubbles
|
||||
"""
|
||||
|
||||
##########################
|
||||
# Commands to be run
|
||||
|
@ -47,43 +50,43 @@ setup_binary_grub_32 = ('inflate_bubble.set_binary_32',)
|
|||
|
||||
# Setup Firmware
|
||||
setup_fw_64_32 = ('inflate_bubble.set_firmware',)
|
||||
setup_fw_arm = ('inflate_bubble.set_firmware_arm',)
|
||||
setup_fw_arm = ('inflate_bubble.set_firmware_arm',)
|
||||
|
||||
# Deb 64 combined tuples for building
|
||||
build64_xfce_build = (shared_setup_cmds + setup_xfce_cmds +
|
||||
setup_chroot_grub_64 + setup_binary_grub_64 +
|
||||
build64_xfce_build = (shared_setup_cmds + setup_xfce_cmds +
|
||||
setup_chroot_grub_64 + setup_binary_grub_64 +
|
||||
setup_fw_64_32
|
||||
)
|
||||
|
||||
build32_xfce_build = (shared_setup_cmds + setup_xfce_cmds +
|
||||
setup_chroot_grub_32 + setup_binary_grub_32 +
|
||||
build32_xfce_build = (shared_setup_cmds + setup_xfce_cmds +
|
||||
setup_chroot_grub_32 + setup_binary_grub_32 +
|
||||
setup_fw_64_32
|
||||
)
|
||||
|
||||
buildarm_xfce_build = (shared_setup_cmds + setup_xfce_cmds +
|
||||
setup_chroot_grub_arm + setup_binary_grub_arm +
|
||||
buildarm_xfce_build = (shared_setup_cmds + setup_xfce_cmds +
|
||||
setup_chroot_grub_arm + setup_binary_grub_arm +
|
||||
setup_fw_arm
|
||||
)
|
||||
|
||||
build64_gfb_build = (shared_setup_cmds + setup_gfb_cmds +
|
||||
setup_chroot_grub_64 + setup_binary_grub_64 +
|
||||
build64_gfb_build = (shared_setup_cmds + setup_gfb_cmds +
|
||||
setup_chroot_grub_64 + setup_binary_grub_64 +
|
||||
setup_fw_64_32
|
||||
)
|
||||
|
||||
build32_gfb_build = (shared_setup_cmds + setup_gfb_cmds +
|
||||
setup_chroot_grub_32 + setup_binary_grub_32 +
|
||||
build32_gfb_build = (shared_setup_cmds + setup_gfb_cmds +
|
||||
setup_chroot_grub_32 + setup_binary_grub_32 +
|
||||
setup_fw_64_32
|
||||
)
|
||||
|
||||
buildarm_gfb_build = (shared_setup_cmds + setup_gfb_cmds +
|
||||
setup_chroot_grub_arm + setup_binary_grub_arm +
|
||||
buildarm_gfb_build = (shared_setup_cmds + setup_gfb_cmds +
|
||||
setup_chroot_grub_arm + setup_binary_grub_arm +
|
||||
setup_fw_arm
|
||||
)
|
||||
|
||||
|
||||
### Inflate bubble section
|
||||
|
||||
xfce_list = ('xfce4\n'
|
||||
XFCE_LIST = ('xfce4\n'
|
||||
'mousepad\n'
|
||||
'xfce4-battery-plugin\n'
|
||||
'xfce4-clipman-plugin\n'
|
||||
|
@ -103,7 +106,7 @@ xfce_list = ('xfce4\n'
|
|||
)
|
||||
|
||||
|
||||
gnome_flashback_list = ('alacarte\n'
|
||||
GNOME_FLASHBACK_LIST = ('alacarte\n'
|
||||
'eog\n'
|
||||
'evince\n'
|
||||
'file-roller\n'
|
||||
|
@ -120,13 +123,13 @@ gnome_flashback_list = ('alacarte\n'
|
|||
)
|
||||
|
||||
|
||||
light_dm_list = ('lightdm\n'
|
||||
LIGHT_DM_LIST = ('lightdm\n'
|
||||
'lightdm-gtk-greeter\n'
|
||||
'lightdm-gtk-greeter-settings\n'
|
||||
)
|
||||
|
||||
|
||||
general_shared_list = ('alsa-utils\n'
|
||||
GENERAL_SHARED_LIST = ('alsa-utils\n'
|
||||
'bluez\n'
|
||||
'calamares\n'
|
||||
'calamares-settings-debian\n'
|
||||
|
@ -171,7 +174,7 @@ general_shared_list = ('alsa-utils\n'
|
|||
)
|
||||
|
||||
|
||||
grub_list_shared = ('efibootmgr\n'
|
||||
GRUB_LIST_SHARED = ('efibootmgr\n'
|
||||
'grub-common\n'
|
||||
'grub2-common\n'
|
||||
'grub-efi\n'
|
||||
|
@ -186,7 +189,7 @@ grub_list_shared = ('efibootmgr\n'
|
|||
)
|
||||
|
||||
|
||||
grub_list_64 = ('grub-efi-amd64\n'
|
||||
GRUB_LIST_64 = ('grub-efi-amd64\n'
|
||||
'grub-efi-amd64-bin\n'
|
||||
'grub-efi-amd64-signed\n'
|
||||
'shim-helpers-amd64-signed\n'
|
||||
|
@ -194,14 +197,14 @@ grub_list_64 = ('grub-efi-amd64\n'
|
|||
)
|
||||
|
||||
|
||||
grub_list_arm64 = ('grub-efi-arm64\n'
|
||||
GRUB_LIST_ARM64 = ('grub-efi-arm64\n'
|
||||
'grub-efi-arm64-bin\n'
|
||||
'grub-efi-arm64-signed\n'
|
||||
'shim-helpers-arm64-signed\n'
|
||||
)
|
||||
|
||||
|
||||
grub_list_32 = ('efibootmgr\n'
|
||||
GRUB_LIST_32 = ('efibootmgr\n'
|
||||
'grub-common\n'
|
||||
'grub2-common\n'
|
||||
'grub-efi\n'
|
||||
|
@ -214,7 +217,7 @@ grub_list_32 = ('efibootmgr\n'
|
|||
)
|
||||
|
||||
|
||||
firmware_list_32_64 = ('atmel-firmware\n'
|
||||
FIRMWARE_LIST_32_64 = ('atmel-firmware\n'
|
||||
'bluez-firmware\n'
|
||||
'firmware-atheros\n'
|
||||
'firmware-amd-graphics\n'
|
||||
|
@ -243,7 +246,7 @@ firmware_list_32_64 = ('atmel-firmware\n'
|
|||
)
|
||||
|
||||
|
||||
firmware_list_arm = ('firmware-atheros\n'
|
||||
FIRMWARE_LIST_ARM = ('firmware-atheros\n'
|
||||
'firmware-bnx2\n'
|
||||
'firmware-bnx2x\n'
|
||||
'firmware-brcm80211\n'
|
||||
|
@ -259,7 +262,7 @@ firmware_list_arm = ('firmware-atheros\n'
|
|||
)
|
||||
|
||||
|
||||
binary_list_shared = ('efibootmgr\n'
|
||||
BINARY_LIST_SHARED = ('efibootmgr\n'
|
||||
'grub-common\n'
|
||||
'grub2-common\n'
|
||||
'grub-efi\n'
|
||||
|
@ -273,7 +276,7 @@ binary_list_shared = ('efibootmgr\n'
|
|||
)
|
||||
|
||||
|
||||
binary_list_64 = ('grub-efi-amd64\n'
|
||||
BINARY_LIST_64 = ('grub-efi-amd64\n'
|
||||
'grub-efi-amd64-bin\n'
|
||||
'grub-efi-amd64-signed\n'
|
||||
'shim-helpers-amd64-signed\n'
|
||||
|
@ -281,14 +284,14 @@ binary_list_64 = ('grub-efi-amd64\n'
|
|||
)
|
||||
|
||||
|
||||
binary_list_arm = ('grub-efi-arm64\n'
|
||||
BINARY_LIST_ARM = ('grub-efi-arm64\n'
|
||||
'grub-efi-arm64-bin\n'
|
||||
'grub-efi-arm64-signed\n'
|
||||
'shim-helpers-arm64-signed\n'
|
||||
)
|
||||
|
||||
|
||||
binary_list_32 = ('grub-efi-ia32\n'
|
||||
BINARY_LIST_32 = ('grub-efi-ia32\n'
|
||||
'grub-efi-ia32-bin\n'
|
||||
'grub-efi-ia32-signed\n'
|
||||
'grub-efi-ia32-bin\n'
|
||||
|
@ -299,7 +302,7 @@ binary_list_32 = ('grub-efi-ia32\n'
|
|||
|
||||
### Start Arch Specific
|
||||
# Set the LB configs
|
||||
lbset_deb32 = ('lb config --mode debian --distribution bookworm'
|
||||
LBSET_DEB32 = ('lb config --mode debian --distribution bookworm'
|
||||
' --archive-areas "main contrib non-free non-free-firmware"'
|
||||
' --architectures i386 --linux-flavours 686-pae'
|
||||
' --apt-recommends true --binary-images iso-hybrid'
|
||||
|
@ -315,7 +318,7 @@ lbset_deb32 = ('lb config --mode debian --distribution bookworm'
|
|||
)
|
||||
|
||||
|
||||
lbset_deb64 = ('lb config --mode debian --distribution bookworm'
|
||||
LBSET_DEB64 = ('lb config --mode debian --distribution bookworm'
|
||||
' --archive-areas "main contrib non-free non-free-firmware"'
|
||||
' --architectures amd64 --linux-flavours amd64'
|
||||
' --apt-recommends true --binary-images iso-hybrid'
|
||||
|
@ -339,7 +342,7 @@ lbset_deb64 = ('lb config --mode debian --distribution bookworm'
|
|||
)
|
||||
|
||||
|
||||
lbset_dev32 = ('lb config noauto --clean --color --quiet'
|
||||
LBSET_DEV32 = ('lb config noauto --clean --color --quiet'
|
||||
' --archive-areas "main contrib non-free non-free-firmware" --architectures i386'
|
||||
' --linux-flavours 686-pae --apt-recommends true'
|
||||
' --binary-images iso-hybrid --cache true --mode debian'
|
||||
|
@ -363,7 +366,7 @@ lbset_dev32 = ('lb config noauto --clean --color --quiet'
|
|||
)
|
||||
|
||||
|
||||
lbset_dev64 = ('lb config noauto --clean --color --quiet'
|
||||
LBSET_DEV64 = ('lb config noauto --clean --color --quiet'
|
||||
' --archive-areas "main contrib non-free non-free-firmware"'
|
||||
' --architectures amd64 --linux-flavours amd64'
|
||||
' --apt-recommends true'
|
||||
|
@ -388,7 +391,7 @@ lbset_dev64 = ('lb config noauto --clean --color --quiet'
|
|||
)
|
||||
|
||||
|
||||
lbset_devarm = ('lb config no auto --clean --color --quiet'
|
||||
LBSET_DEVARM = ('lb config no auto --clean --color --quiet'
|
||||
' --archive-areas "main contrib non-free non-free-firmware"'
|
||||
' --architectures arm64 --apt-recommends true'
|
||||
' --binary-images iso-hybrid --bootstrap-qemu-arch arm64'
|
||||
|
@ -416,7 +419,7 @@ lbset_devarm = ('lb config no auto --clean --color --quiet'
|
|||
)
|
||||
|
||||
|
||||
lbset_debarm = ('lb config noauto --clean --color --quiet'
|
||||
LBSET_DEBARM = ('lb config noauto --clean --color --quiet'
|
||||
' --archive-areas "main contrib non-free non-free-firmware"'
|
||||
' --architectures arm64 --apt-recommends true'
|
||||
' --binary-images iso-hybrid --bootstrap-qemu-arch arm64'
|
||||
|
@ -432,5 +435,3 @@ lbset_debarm = ('lb config noauto --clean --color --quiet'
|
|||
' --linux-flavours arm64 --security false --updates false'
|
||||
' --backports false --win32-loader false --checksums sha512'
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -10,20 +10,18 @@ import os
|
|||
import shutil
|
||||
from pathlib import Path
|
||||
from datetime import date
|
||||
import paths
|
||||
import time
|
||||
|
||||
|
||||
# Set the home path used regardless the user logged in
|
||||
bstring = '~/bubbles/iso_configs/fusato'
|
||||
home_folder = Path( bstring ).expanduser()
|
||||
string_home = str(home_folder)
|
||||
BSTRING_ISO_CONFIGS = '~/bubbles/iso_configs'
|
||||
HOME_FOLDER = str(Path(BSTRING_ISO_CONFIGS).expanduser())
|
||||
FUSATO_ROOT = '/fusato'
|
||||
|
||||
|
||||
def make_check_sum():
|
||||
""" Generate the check sum files """
|
||||
current_dir = os.getcwd().replace('/', '/')
|
||||
for root, dirs, files in os.walk(current_dir):
|
||||
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
||||
current_working_directory = os.getcwd()
|
||||
for files in os.walk(current_working_directory):
|
||||
for fiso in files:
|
||||
if fiso.endswith('.iso'):
|
||||
sha = "sha512sum "
|
||||
|
@ -32,186 +30,412 @@ def make_check_sum():
|
|||
os.system(gen_sum)
|
||||
|
||||
|
||||
def copy_iso_file_nightly_deb32():
|
||||
""" Copy the new ISO to the Nightly folder"""
|
||||
# Set the home path used regardless the user logged in
|
||||
bstring = '/home/pepadmin/bubbles/iso_configs/fusato'
|
||||
home_folder = Path( bstring ).expanduser()
|
||||
string_home = str(home_folder)
|
||||
def copy_debian_xfce_based():
|
||||
""" Copy the new ISO debian baseto its Nightly folder
|
||||
XFCE
|
||||
"""
|
||||
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
||||
current_working_directory = os.getcwd()
|
||||
today = str(date.today())
|
||||
os.chdir(home_folder)
|
||||
for root, dirs, files in os.walk(home_folder):
|
||||
for fiso in files:
|
||||
if fiso.endswith('.iso'):
|
||||
src_iso = string_home + '/' + fiso
|
||||
rdes = string_home + '/PeppermintOS-Debian_32_' + today + '.iso'
|
||||
des_iso = '/var/www/html/nightly/deb32'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
for fsum in files:
|
||||
if fsum.endswith('.checksum'):
|
||||
src_sum = string_home + '/' + fsum
|
||||
rdes_sum = string_home + '/PeppermintOS-Debian_32-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/deb32'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
for files in os.walk(current_working_directory):
|
||||
for f_v in files:
|
||||
if f_v.endswith('.64xfc'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Debian_64_xfce'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/deb64/xfce'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Debian_64-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/deb64/xfce'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.32xfc'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Debian_32_xfce'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/deb32/xfce'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Debian_32-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/deb32/xfce'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.armxfc'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Debian_arm_xfce'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/debarm/xfce'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Debian_arm-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/debarm/xfce'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
|
||||
|
||||
def copy_iso_file_nightly_deb64():
|
||||
""" Copy the new ISO to the Nightly folder"""
|
||||
# Set the home path used regardless the user logged in
|
||||
bstring = '/home/pepadmin/bubbles/iso_configs/fusato'
|
||||
home_folder = Path( bstring ).expanduser()
|
||||
string_home = str(home_folder)
|
||||
def copy_debian_gfb_based():
|
||||
""" Copy the new ISO debian base to its Nightly folder
|
||||
Gnome Flashback
|
||||
"""
|
||||
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
||||
current_working_directory = os.getcwd()
|
||||
today = str(date.today())
|
||||
os.chdir(home_folder)
|
||||
for root, dirs, files in os.walk(home_folder):
|
||||
for fiso in files:
|
||||
if fiso.endswith('.iso'):
|
||||
src_iso = string_home + '/' + fiso
|
||||
rdes = string_home + '/PeppermintOS-Debian_64_' + today + '.iso'
|
||||
des_iso = '/var/www/html/nightly/deb64'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
for fsum in files:
|
||||
if fsum.endswith('.checksum'):
|
||||
src_sum = string_home + '/' + fsum
|
||||
rdes_sum = string_home + '/PeppermintOS-Debian_64-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/deb64'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
for files in os.walk(current_working_directory):
|
||||
for f_v in files:
|
||||
if f_v.endswith('.64gfb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Debian_64_gfb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/deb64/gnome-flashback'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Debian_64-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/deb64/gnome-flashback'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.32gfb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Debian_32_gfb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/deb32/gnome-flashback'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Debian_32-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/deb32/gnome-flashback'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.armgfb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Debian_arm_gfb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/debarm/gnome-flashback'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Debian_arm-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/debarm/gnome-flashback'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
|
||||
|
||||
def copy_iso_file_nightly_dev32():
|
||||
""" Copy the new ISO to the Nightly folder"""
|
||||
# Set the home path used regardless the user logged in
|
||||
bstring = '/home/pepadmin/bubbles/iso_configs/fusato'
|
||||
home_folder = Path( bstring ).expanduser()
|
||||
string_home = str(home_folder)
|
||||
def copy_debian_opb_based():
|
||||
""" Copy the new ISO debian base to its Nightly folder
|
||||
OpenBox
|
||||
"""
|
||||
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
||||
current_working_directory = os.getcwd()
|
||||
today = str(date.today())
|
||||
os.chdir(home_folder)
|
||||
for root, dirs, files in os.walk(home_folder):
|
||||
for fiso in files:
|
||||
if fiso.endswith('.iso'):
|
||||
src_iso = string_home + '/' + fiso
|
||||
rdes = string_home + '/PeppermintOS-Devuan_32_' + today + '.iso'
|
||||
des_iso = '/var/www/html/nightly/dev32'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
for fsum in files:
|
||||
if fsum.endswith('.checksum'):
|
||||
src_sum = string_home + '/' + fsum
|
||||
rdes_sum = string_home + '/PeppermintOS-Devuan_32-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/dev32'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
for files in os.walk(current_working_directory):
|
||||
for f_v in files:
|
||||
if f_v.endswith('.64opb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Debian_64_opb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/deb64/openbox'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Debian_64-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/deb64/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.32opb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Debian_32_opb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/deb32/openbox'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Debian_32-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/deb32/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.armopb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Debian_arm_opb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/debarm/openbox'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Debian_arm-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/debarm/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
|
||||
|
||||
def copy_iso_file_nightly_dev64():
|
||||
""" Copy the new ISO to the Nightly folder"""
|
||||
# Set the home path used regardless the user logged in
|
||||
bstring = '/home/pepadmin/bubbles/iso_configs/fusato'
|
||||
home_folder = Path( bstring ).expanduser()
|
||||
string_home = str(home_folder)
|
||||
def copy_devuan_xfce_based():
|
||||
""" Copy the new ISO Devuan baseto its Nightly folder
|
||||
XFCE
|
||||
"""
|
||||
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
||||
current_working_directory = os.getcwd()
|
||||
today = str(date.today())
|
||||
os.chdir(home_folder)
|
||||
for root, dirs, files in os.walk(home_folder):
|
||||
for fiso in files:
|
||||
if fiso.endswith('.iso'):
|
||||
src_iso = string_home + '/' + fiso
|
||||
rdes = string_home + '/PeppermintOS-Devuan_64_' + today + '.iso'
|
||||
des_iso = '/var/www/html/nightly/dev64'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
for fsum in files:
|
||||
if fsum.endswith('.checksum'):
|
||||
src_sum = string_home + '/' + fsum
|
||||
rdes_sum = string_home + '/PeppermintOS-Devuan_64-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/dev64'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
for files in os.walk(current_working_directory):
|
||||
for f_v in files:
|
||||
if f_v.endswith('.64xfc'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_64_xfce'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev64/xfce'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_64-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/dev64/xfce'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.32xfc'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_32_xfce'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev32/xfce'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_32-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/dev32/xfce'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.armxfc'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_arm_xfce'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/devarm/xfce'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_arm-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/devarm/xfce'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
|
||||
def copy_iso_file_prod_deb64():
|
||||
""" Copy the pro nightly and prep it for production push"""
|
||||
|
||||
def copy_devuan_gfb_based():
|
||||
""" Copy the new ISO Devuan base to its Nightly folder
|
||||
Gnome Flashback
|
||||
"""
|
||||
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
||||
current_working_directory = os.getcwd()
|
||||
today = str(date.today())
|
||||
nstring = '/var/www/html/nightly/deb64'
|
||||
nightly_folder = Path( nstring ).expanduser()
|
||||
string_nightly = str(nightly_folder)
|
||||
pstring= '/var/www/html/prod'
|
||||
production_folder = Path( pstring ).expanduser()
|
||||
string_production = str(production_folder)
|
||||
|
||||
src_iso = string_nightly + '/PeppermintOS-Debian_64_' + today + '.iso'
|
||||
src_checksum = string_nightly + '/PeppermintOS-Debian_64-sha512.checksum'
|
||||
rdes = string_nightly + '/PeppermintOS-Debian-64.iso'
|
||||
des_iso = pstring
|
||||
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
shutil.copy(src_checksum, des_iso)
|
||||
os.remove(rdes)
|
||||
os.remove(src_checksum)
|
||||
for files in os.walk(current_working_directory):
|
||||
for f_v in files:
|
||||
if f_v.endswith('.64gfb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_64_gfb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev64/gnome-flashback'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_64-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/dev64/gnome-flashback'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.32gfb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_32_gfb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev32/gnome-flashback'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_32-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/dev32/gnome-flashback'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.armgfb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_arm_gfb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/devarm/gnome-flashback'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_arm-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/devarm/gnome-flashback'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
|
||||
|
||||
def copy_iso_file_nightly_debarm():
|
||||
""" Copy the new ISO to the Nightly folder"""
|
||||
# Set the home path used regardless the user logged in
|
||||
bstring = '/home/pepadmin/bubbles/iso_configs/fusato'
|
||||
home_folder = Path( bstring ).expanduser()
|
||||
string_home = str(home_folder)
|
||||
def copy_devuan_opb_based():
|
||||
""" Copy the new ISO Devuan base to its Nightly folder
|
||||
OpenBox
|
||||
"""
|
||||
os.chdir(HOME_FOLDER + FUSATO_ROOT)
|
||||
current_working_directory = os.getcwd()
|
||||
today = str(date.today())
|
||||
os.chdir(home_folder)
|
||||
for root, dirs, files in os.walk(home_folder):
|
||||
for fiso in files:
|
||||
if fiso.endswith('.iso'):
|
||||
src_iso = string_home + '/' + fiso
|
||||
rdes = string_home + '/PeppermintOS-Debian_arm_' + today + '.iso'
|
||||
des_iso = '/var/www/html/nightly/debarm'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
for fsum in files:
|
||||
if fsum.endswith('.checksum'):
|
||||
src_sum = string_home + '/' + fsum
|
||||
rdes_sum = string_home + '/PeppermintOS-Debian_arm-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/debarm'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
|
||||
|
||||
def copy_iso_file_nightly_devarm():
|
||||
""" Copy the new ISO to the Nightly folder"""
|
||||
# Set the home path used regardless the user logged in
|
||||
bstring = '/home/pepadmin/bubbles/iso_configs/fusato'
|
||||
home_folder = Path( bstring ).expanduser()
|
||||
string_home = str(home_folder)
|
||||
today = str(date.today())
|
||||
os.chdir(home_folder)
|
||||
for root, dirs, files in os.walk(home_folder):
|
||||
for fiso in files:
|
||||
if fiso.endswith('.iso'):
|
||||
src_iso = string_home + '/' + fiso
|
||||
rdes = string_home + '/PeppermintOS-Devuan_arm_' + today + '.iso'
|
||||
des_iso = '/var/www/html/nightly/devarm'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
for fsum in files:
|
||||
if fsum.endswith('.checksum'):
|
||||
src_sum = string_home + '/' + fsum
|
||||
rdes_sum = string_home + '/PeppermintOS-Devuan_arm-sha512.checksum'
|
||||
des_sum = '/var/www/html/nightly/devarm'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
|
||||
|
||||
def kill_fusato():
|
||||
""" Delete the fusato folder as it is no longer needed"""
|
||||
icstring ='~/bubbles/iso_configs/'
|
||||
ic_root = Path( icstring ).expanduser()
|
||||
os.chdir(ic_root)
|
||||
current_dir = os.getcwd().replace('/', '/')
|
||||
del_fldr = "fusato"
|
||||
del_path = os.path.join(current_dir, del_fldr)
|
||||
os.rmdir(del_path)
|
||||
for files in os.walk(current_working_directory):
|
||||
for f_v in files:
|
||||
if f_v.endswith('.64opb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_64_opb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev64/openbox'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_64-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/dev64/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.32opb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_32_opb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/dev32/openbox'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_32-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/dev32/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
elif f_v.endswith('.armopb'):
|
||||
if f_v.endswith('.iso'):
|
||||
src_iso = current_working_directory + '/' + f_v
|
||||
rdes = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_arm_opb'
|
||||
+ today +
|
||||
'.iso'
|
||||
)
|
||||
des_iso = '/var/www/html/nightly/devarm/openbox'
|
||||
os.rename(src_iso, rdes)
|
||||
shutil.copy(rdes, des_iso)
|
||||
if f_v.endswith('.checksum'):
|
||||
src_sum = current_working_directory + '/' + f_v
|
||||
rdes_sum = (current_working_directory +
|
||||
'/PeppermintOS-Devuan_arm-sha512.checksum'
|
||||
)
|
||||
des_sum = '/var/www/html/nightly/devarm/openbox'
|
||||
os.rename(src_sum, rdes_sum)
|
||||
shutil.copy(rdes_sum, des_sum)
|
||||
|
||||
|
||||
def kill_old_iso():
|
||||
|
|
|
@ -11,13 +11,14 @@ import os
|
|||
from pathlib import Path
|
||||
import conf
|
||||
|
||||
|
||||
# Set the home path used regardless the user logged in
|
||||
BSTRING_ISO_CONFIGS = '~/bubbles/iso_configs'
|
||||
HOME_FOLDER = str(Path(BSTRING_ISO_CONFIGS).expanduser())
|
||||
PACKAGE_LIST = "/fusato/config/package-lists/"
|
||||
CHROOT_FOLDER = "/fusato/config/includes.chroot/"
|
||||
BOOTSTRAP_FOLDER = '/fusato/config/includes.bootstrap/'
|
||||
|
||||
FUSATO_ROOT = '/fusato'
|
||||
|
||||
# Fusato base
|
||||
def set_fusato_structure():
|
||||
|
@ -46,19 +47,14 @@ def set_fusato_structure():
|
|||
rm_cmd = "sudo rm -r -f config"
|
||||
os.system(rm_cmd)
|
||||
os.makedirs('config')
|
||||
|
||||
|
||||
else:
|
||||
pass
|
||||
|
||||
make_bootstrap = ['etc/apt']
|
||||
make_packages = ['package-lists/']
|
||||
make_chfldrs = make_chroot
|
||||
|
||||
|
||||
for f_f in make_chfldrs:
|
||||
os.makedirs(HOME_FOLDER + CHROOT_FOLDER + f_f)
|
||||
make_bsfldrs = make_bootstrap
|
||||
for f_f in make_bootstrap:
|
||||
os.makedirs(HOME_FOLDER + BOOTSTRAP_FOLDER + f_f)
|
||||
for f_f in make_packages:
|
||||
|
@ -66,32 +62,53 @@ def set_fusato_structure():
|
|||
|
||||
|
||||
# Commonly Shared
|
||||
|
||||
def make_bld_xfce(base,arch):
|
||||
"""Write the build file"""
|
||||
with open(HOME_FOLDER + FUSATO_ROOT + '/' + base + '.' + arch + 'xfc',
|
||||
'w', encoding='UTF-8') as f_p:
|
||||
f_p.write('XFCE Build')
|
||||
|
||||
|
||||
def make_bld_gnomeflashback(base,arch):
|
||||
"""Write the build file"""
|
||||
with open(HOME_FOLDER + FUSATO_ROOT + '/' + base + '.' + arch + 'gfb',
|
||||
'w', encoding='UTF-8') as f_p:
|
||||
f_p.write('Gnome Flash Back Build')
|
||||
|
||||
|
||||
def make_bld_openbox(base,arch):
|
||||
"""Write the build file"""
|
||||
with open(HOME_FOLDER + FUSATO_ROOT+ '/' + base + '.' + arch + 'opb',
|
||||
'w', encoding='UTF-8') as f_p:
|
||||
f_p.write('OpenBox Build')
|
||||
|
||||
def set_general_shared():
|
||||
""" Create the list for general shared list"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'genshared.list.chroot', 'x',
|
||||
encoding='UTF-8') as general_file:
|
||||
general_file.write(conf.general_shared_list)
|
||||
general_file.write(conf.GENERAL_SHARED_LIST)
|
||||
|
||||
|
||||
def set_grub_shared():
|
||||
""" Create the list for shared grub list"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'grub.list.chroot', 'x',
|
||||
encoding='UTF-8') as system_file:
|
||||
system_file.write(conf.grub_list_shared)
|
||||
system_file.write(conf.GRUB_LIST_SHARED)
|
||||
|
||||
|
||||
def set_binary_shared():
|
||||
""" Create the shared list for grub binary"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'installer.list.binary', 'x',
|
||||
encoding='UTF-8') as binary_file:
|
||||
binary_file.write(conf.binary_list_shared)
|
||||
binary_file.write(conf.BINARY_LIST_SHARED)
|
||||
|
||||
|
||||
def set_lightdm():
|
||||
""" Create the list for the light dm list """
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'lightdm.list.chroot', 'x',
|
||||
encoding='UTF-8') as lightdm_file:
|
||||
lightdm_file.write(conf.light_dm_list)
|
||||
lightdm_file.write(conf.LIGHT_DM_LIST)
|
||||
|
||||
|
||||
# Desktop Environments
|
||||
|
@ -99,13 +116,13 @@ def set_xfce():
|
|||
""" Create the list for the xfce xfce list"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'xfce.list.chroot', 'x',
|
||||
encoding='UTF-8') as xfce_file:
|
||||
xfce_file.write(conf.xfce_list)
|
||||
xfce_file.write(conf.XFCE_LIST)
|
||||
|
||||
def set_gfb():
|
||||
""" Create the list for the xfce xfce list"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'gfb.list.chroot', 'x',
|
||||
encoding='UTF-8') as gfb_file:
|
||||
gfb_file.write(conf.gnome_flashback_list)
|
||||
gfb_file.write(conf.GNOME_FLASHBACK_LIST)
|
||||
|
||||
|
||||
# CHROOT Specific
|
||||
|
@ -113,21 +130,21 @@ def set_chroot_grub_64():
|
|||
""" Append the grub list for 64 bit grub"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'grub.list.chroot', 'a',
|
||||
encoding='UTF-8') as system_file:
|
||||
system_file.write(conf.grub_list_64)
|
||||
system_file.write(conf.GRUB_LIST_64)
|
||||
|
||||
|
||||
def set_chroot_grub_arm():
|
||||
""" Append the grub list for the ARM grub"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'grub.list.chroot', 'a',
|
||||
encoding='UTF-8') as system_file:
|
||||
system_file.write(conf.grub_list_arm64)
|
||||
system_file.write(conf.GRUB_LIST_ARM64)
|
||||
|
||||
|
||||
def set_chroot_grub_32():
|
||||
""" Append the grub list for the 32 bit grub"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'grub.list.chroot', 'a',
|
||||
encoding='UTF-8') as system_file:
|
||||
system_file.write(conf.grub_list_32)
|
||||
system_file.write(conf.GRUB_LIST_32)
|
||||
|
||||
|
||||
# Binary Specific
|
||||
|
@ -135,21 +152,21 @@ def set_binary_64():
|
|||
""" Create the list for grub binary packages for 64 bit"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'installer.list.binary', 'a',
|
||||
encoding='UTF-8') as binary_file:
|
||||
binary_file.write(conf.binary_list_64)
|
||||
binary_file.write(conf.BINARY_LIST_64)
|
||||
|
||||
|
||||
def set_binary_arm():
|
||||
""" Create the list for grub binary packages for 64 bit"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'installer.list.binary', 'a',
|
||||
encoding='UTF-8') as binary_file:
|
||||
binary_file.write(conf.binary_list_arm)
|
||||
binary_file.write(conf.BINARY_LIST_ARM)
|
||||
|
||||
|
||||
def set_binary_32():
|
||||
""" Create the list for grub binary packages for 32 bit"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'installer.list.binary', 'a',
|
||||
encoding='UTF-8') as binary_file:
|
||||
binary_file.write(conf.binary_list_32)
|
||||
binary_file.write(conf.BINARY_LIST_32)
|
||||
|
||||
|
||||
# Firmware Specific
|
||||
|
@ -157,11 +174,11 @@ def set_firmware():
|
|||
""" Create the list for the firmware support for genral ISOs"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'firmware.list.chroot', 'x',
|
||||
encoding='UTF-8') as firmware_file:
|
||||
firmware_file.write(conf.firmware_list_32_64)
|
||||
firmware_file.write(conf.FIRMWARE_LIST_32_64)
|
||||
|
||||
|
||||
def set_firmware_arm():
|
||||
""" Create the list for the firmware support for arm ISOs"""
|
||||
with open(HOME_FOLDER + PACKAGE_LIST + 'firmware.list.chroot', 'x',
|
||||
encoding='UTF-8') as firmware_file:
|
||||
firmware_file.write(conf.firmware_list_arm)
|
||||
firmware_file.write(conf.FIRMWARE_LIST_ARM)
|
||||
|
|
|
@ -8,11 +8,10 @@
|
|||
* locations, based o the build base and architecture
|
||||
"""
|
||||
import os
|
||||
import sys
|
||||
import collections
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
import paths
|
||||
|
||||
|
||||
|
||||
# Public Variables used in the classes
|
||||
|
@ -38,7 +37,7 @@ class ChrootFolders:
|
|||
src_chroot = ('/osrelease/' + self.sbase + self.sarch,
|
||||
'/osrelease/' + self.sbase + self.sarch,
|
||||
'/grub/'+ self.sbase + self.sarch,
|
||||
'/calamares_settings/' + self.sbase + self.sarch +
|
||||
'/calamares_settings/' + self.sbase + self.sarch +
|
||||
'/calamares/modules',
|
||||
'/grub/' + self.sbase + '_themes'
|
||||
)
|
||||
|
@ -61,7 +60,7 @@ class ChrootFolders:
|
|||
dirs_exist_ok = True
|
||||
)
|
||||
print("INFO: Finished - " + HOME_FOLDER + WPCHROOT + des)
|
||||
|
||||
|
||||
|
||||
|
||||
class BinaryFolders:
|
||||
|
@ -164,11 +163,9 @@ def set_symlinks():
|
|||
print("INFO: Making - " + HOME_FOLDER + WPCHROOT + pep_info)
|
||||
os.symlink('Debian.info', HOME_FOLDER + WPCHROOT + pep_info)
|
||||
print("INFO: Finished - " + HOME_FOLDER + WPCHROOT + pep_info)
|
||||
|
||||
print("INFO: Making - " + HOME_FOLDER + WPCHROOT + pep_mirror)
|
||||
os.symlink('Debian.mirrors', HOME_FOLDER + WPCHROOT + pep_mirror)
|
||||
print("INFO: Finished - " + HOME_FOLDER + WPCHROOT + pep_mirror)
|
||||
|
||||
print("INFO: Making - " + HOME_FOLDER + WPCHROOT + pep_csv)
|
||||
os.symlink('debian.csv', HOME_FOLDER + WPCHROOT + pep_csv)
|
||||
print("INFO: Finished - " + HOME_FOLDER + WPCHROOT + pep_csv)
|
||||
|
@ -256,17 +253,17 @@ def icons_themes():
|
|||
'/icons/Tela-circle-red/',
|
||||
'/icons/Tela-circle/'
|
||||
)
|
||||
des_paths = ('/usr/share/themes/Marwaita Dark Debian/',
|
||||
des_paths = ('/usr/share/themes/Marwaita Dark Debian/',
|
||||
'/usr/share/themes/Marwaita Dark Manjaro/',
|
||||
'/usr/share/themes/Marwaita Dark Peppermint/',
|
||||
'/usr/share/themes/Marwaita Dark Peppermint/',
|
||||
'/usr/share/themes/Marwaita Debian/',
|
||||
'/usr/share/themes/Marwaita Manjaro/',
|
||||
'/usr/share/themes/Marwaita Manjaro/',
|
||||
'/usr/share/themes/Marwaita Peppermint/',
|
||||
'/usr/share/icons/Tela-circle-blue-dark/',
|
||||
'/usr/share/icons/Tela-circle-blue-dark/',
|
||||
'/usr/share/icons/Tela-circle-green-dark/',
|
||||
'/usr/share/icons/Tela-circle-red-dark/',
|
||||
'/usr/share/icons/Tela-circle-red-dark/',
|
||||
'/usr/share/icons/Tela-circle-blue/',
|
||||
'/usr/share/icons/Tela-circle-green/',
|
||||
'/usr/share/icons/Tela-circle-green/',
|
||||
'/usr/share/icons/Tela-circle-red/',
|
||||
'/usr/share/icons/Tela-circle/'
|
||||
)
|
||||
|
@ -292,7 +289,7 @@ def shared_files():
|
|||
"""
|
||||
This silll copy all specific files that a used for all
|
||||
builds.
|
||||
"""
|
||||
"""
|
||||
print('=' * term_size.columns)
|
||||
print("Copy Shared Files")
|
||||
print('=' * term_size.columns)
|
||||
|
@ -316,7 +313,6 @@ def shared_files():
|
|||
'/etc/lightdm/lightdm.conf',
|
||||
'/etc/lightdm/lightdm-gtk-greeter.conf',
|
||||
'/usr/share/plymouthd.conf',
|
||||
|
||||
)
|
||||
# copy files to thier CHROOT Location
|
||||
src_q = collections.deque(src_paths)
|
||||
|
@ -359,7 +355,6 @@ def boostrap_shared():
|
|||
"""
|
||||
Copy specific folders in the boostrap location
|
||||
"""
|
||||
term_size = os.get_terminal_size()
|
||||
print('=' * term_size.columns)
|
||||
print("Copy Shared BootStrap")
|
||||
print('=' * term_size.columns)
|
||||
|
@ -418,5 +413,3 @@ def gnome_flahsbak_configs():
|
|||
dirs_exist_ok = True
|
||||
)
|
||||
print("INFO: Finished - " + HOME_FOLDER + WPCHROOT + des_gnomef)
|
||||
|
||||
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
##########################################
|
||||
## Associated to inflate_bubble.py paths
|
||||
|
||||
# fusato folders to create
|
||||
make_folders = [
|
||||
'/config/includes.chroot/usr/share/distro-info/',
|
||||
'/config/includes.chroot/usr/share/python-apt/templates/',
|
||||
'/config/includes.chroot/usr/share/icons/default',
|
||||
'/config/includes.chroot/usr/share/peppermint/',
|
||||
'/config/includes.chroot/usr/share/themes/',
|
||||
'/config/includes.chroot/usr/local/bin/',
|
||||
'/config/includes.chroot/usr/bin/',
|
||||
'/config/includes.chroot/usr/sbin',
|
||||
'/config/includes.chroot/etc/lightdm',
|
||||
'/config/includes.bootstrap/etc/apt',
|
||||
'/config/includes.chroot/etc/default',
|
||||
'/config/includes.chroot/etc/apt',
|
||||
'/config/includes.chroot/etc/apt/preferences.d',
|
||||
'/config/includes.chroot/etc/apt/sources.list.d',
|
||||
'/config/includes.chroot/etc/skel/Desktop',
|
||||
'/config/includes.chroot/etc/skel/.local/share',
|
||||
'/config/includes.chroot/etc/skel/.config/autostart/',
|
||||
'/config/package-lists/'
|
||||
|
||||
]
|
||||
# End Inflate Bubble Paths
|
||||
|
||||
# Nightly paths
|
||||
|
||||
nightly_paths = [
|
||||
'/var/www/html/nightly/deb32',
|
||||
'/var/www/html/nightly/dev32',
|
||||
'/var/www/html/nightly/deb64',
|
||||
'/var/www/html/nightly/dev64',
|
||||
'/var/www/html/nightly/devarm',
|
||||
'/var/www/html/nightly/debarm'
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue