def build_dev(release_name: str, version: str): with tempfile.TemporaryDirectory() as dir_temp: src = os.path.join(config.DIR_REPO, "Meshes - Oldrim") dst = os.path.join(dir_temp, "Meshes") shutil.copytree(src, dst) src = os.path.join(config.DIR_REPO, "Textures") dst = os.path.join(dir_temp, "Textures") shutil.copytree(src, dst) src = os.path.join(config.DIR_REPO, "Plugin - Oldrim") dst = dir_temp shutil.copytree(src, dst, dirs_exist_ok=True) dir_release = os.path.join(config.DIR_REPO, "Releases", "Oldrim") release.make_archive(release_name, version, dir_temp, dir_release)
def build_sse_unp(release_name: str, version: str): with tempfile.TemporaryDirectory() as dir_temp: src = os.path.join(config.DIR_REPO, "Meshes - SSE") dst = os.path.join(dir_temp, "Meshes") shutil.copytree(src, dst) src = os.path.join(config.DIR_REPO, "Textures") dst = os.path.join(dir_temp, "Textures") shutil.copytree(src, dst) dir_plugin = os.path.join(config.DIR_REPO, "Plugin - SSE") bsa_name = release.find_bsa_name(dir_plugin) src = dir_temp dst = os.path.join(dir_temp, bsa_name) release.build_bsa(src, dst, config.BSARCH, "sse", True) copy_and_check_plugins(dir_plugin, dir_temp, version) dir_release = os.path.join(config.DIR_REPO, "Releases", "SSE") release.make_archive(release_name, version, dir_temp, dir_release)