"""Build development archive.
Loose files are not packed into a bsa and version numbers are not added."""
import config
import logging
import release

logger = logging.getLogger(release.__name__)
logger.setLevel(logging.WARNING)
handler = logging.FileHandler("{}.log".format(release.__name__), "w")
logger.addHandler(handler)
try:
    release.build_release(config.DIR_REPO, warn_version=False)
except Exception as error:
    logger.exception(error)
Exemplo n.º 2
0
"""Build full release.
Loose files are packed into a bsa and version numbers are added."""
import config
import logging
import release
import shutil

logger = logging.getLogger(release.__name__)
logger.setLevel(logging.INFO)
formatter = logging.Formatter("%(asctime)s %(levelname)s %(message)s")
handler = logging.FileHandler("{}.log".format(release.__name__), "w")
handler.setFormatter(formatter)
logger.addHandler(handler)

shutil.copytree(config.DIR_SCRIPTS, config.DIR_BREEZEHOME_TNF_LE_SCRIPTS)
try:
    release.build_release(dir_src=config.DIR_BREEZEHOME_TNF_LE,
                          dir_ver=config.DIR_VER,
                          temp_alt=config.DIR_TEMP_ALT,
                          arch_exe=config.ARCH_EXE_LE,
                          trim_fomod=True,
                          warn_modgroups=False)
except Exception as error:
    logger.exception(error)
shutil.rmtree(config.DIR_BREEZEHOME_TNF_LE_SCRIPTS)
"""Build development archive.
Loose files are not packed into a bsa and version numbers are not added."""
import config
import logging
import release

logger = logging.getLogger(release.__name__)
logger.setLevel(logging.WARNING)
handler = logging.FileHandler("{}.log".format(release.__name__), "w")
logger.addHandler(handler)
try:
    release.build_release(config.DIR_REPO, warn_readmes=False)
except Exception as error:
    logger.exception(error)
"""Build development archive.
Loose files are not packed into a bsa and version numbers are not added."""
import config
import logging
import release

logger = logging.getLogger(release.__name__)
logger.setLevel(logging.WARNING)
handler = logging.FileHandler("{}.log".format(release.__name__), "w")
logger.addHandler(handler)
try:
    release.build_release(config.DIR_REPO_LE,
                          trim_fomod=True,
                          warn_readmes=False,
                          warn_version=False)
except Exception as error:
    logger.exception(error)
Exemplo n.º 5
0
"""Build full release.
Loose files are packed into a bsa."""
import config
import logging
import release

logger = logging.getLogger(release.__name__)
logger.setLevel(logging.INFO)
formatter = logging.Formatter("%(asctime)s %(levelname)s %(message)s")
handler = logging.FileHandler("{}.log".format(release.__name__), "w")
handler.setFormatter(formatter)
logger.addHandler(handler)
try:
    release.build_release(dir_src=config.DIR_REPO_LE,
                          bsarch=config.BSARCH,
                          bsa_format="tes5",
                          bsa_compress=True,
                          warn_readmes=False)
    release.build_release(dir_src=config.DIR_REPO_SE,
                          bsarch=config.BSARCH,
                          bsa_format="sse",
                          bsa_compress=True,
                          warn_readmes=False)
except Exception as error:
    logger.exception(error)
import release
import shutil

logger = logging.getLogger(release.__name__)
logger.setLevel(logging.INFO)
formatter = logging.Formatter("%(asctime)s %(levelname)s %(message)s")
handler = logging.FileHandler("{}.log".format(release.__name__), "w")
handler.setFormatter(formatter)
logger.addHandler(handler)
try:
    flags = release.ArchiveFlags()
    flags.check_misc = True
    flags.check_retain_directory_names = True
    flags.check_retain_file_names = True
    release.build_release(dir_src=config.DIR_REPO_LE,
                          temp_alt=config.DIR_TEMP_ALT,
                          arch_exe=config.ARCH_EXE_LE,
                          arch_flags=flags,
                          trim_fomod=True,
                          warn_readmes=False)
    shutil.copytree(config.DIR_SCRIPTS_LE, config.DIR_SCRIPTS_SE)
    release.build_release(dir_src=config.DIR_REPO_SE,
                          temp_alt=config.DIR_TEMP_ALT,
                          arch_exe=config.ARCH_EXE_SE,
                          arch_flags=flags,
                          trim_fomod=True,
                          warn_readmes=False)
    shutil.rmtree(config.DIR_SCRIPTS_SE)
except Exception as error:
    logger.exception(error)
Exemplo n.º 7
0
"""Build development archive.
Loose files are not packed into a bsa and version numbers are not added."""
import config
import logging
import release
import shutil

logger = logging.getLogger(release.__name__)
logger.setLevel(logging.WARNING)
handler = logging.FileHandler("{}.log".format(release.__name__), "w")
logger.addHandler(handler)

shutil.copytree(config.DIR_SCRIPTS, config.DIR_BREEZEHOME_TNF_LE_SCRIPTS)
try:
    release.build_release(dir_src=config.DIR_BREEZEHOME_TNF_LE,
                          trim_fomod=True,
                          warn_modgroups=False,
                          warn_version=False)
except Exception as error:
    logger.exception(error)
shutil.rmtree(config.DIR_BREEZEHOME_TNF_LE_SCRIPTS)