INNER CODE UNIT · Python

move_build_artifacts

stratumauth/app · extra/build.py:99

def move_build_artifacts(args: argparse.Namespace, build_dir: str, output_dir: str):
    publish_dir = "publish" if args.runtime is None else args.runtime
    framework = PROJECT_FRAMEWORKS[args.project]

    artifact_dir = os.path.join(
        build_dir,
        PROJECT_NAMES[args.project],
        "bin",
        CONFIGURATION,
        framework,
        publish_dir,
    )

    files = os.listdir(artifact_dir)

    for file in filter(lambda f: "Signed" in f and f[-3:] == args.package, files):
        artifact_path = os.path.join(artifact_dir, file)
        output_file = PACKAGE_NAME

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…