|
|
@ -12,7 +12,6 @@ if __name__ == "__main__": |
|
|
|
parser = argparse.ArgumentParser(description="creates a casync release") |
|
|
|
parser = argparse.ArgumentParser(description="creates a casync release") |
|
|
|
parser.add_argument("target_dir", type=str, help="target directory to build channel from") |
|
|
|
parser.add_argument("target_dir", type=str, help="target directory to build channel from") |
|
|
|
parser.add_argument("output_dir", type=str, help="output directory for the channel") |
|
|
|
parser.add_argument("output_dir", type=str, help="output directory for the channel") |
|
|
|
parser.add_argument("channel", type=str, help="what channel this build is") |
|
|
|
|
|
|
|
args = parser.parse_args() |
|
|
|
args = parser.parse_args() |
|
|
|
|
|
|
|
|
|
|
|
target_dir = pathlib.Path(args.target_dir) |
|
|
|
target_dir = pathlib.Path(args.target_dir) |
|
|
@ -21,7 +20,7 @@ if __name__ == "__main__": |
|
|
|
build_metadata = get_build_metadata() |
|
|
|
build_metadata = get_build_metadata() |
|
|
|
build_metadata.openpilot.build_style = "release" if os.environ.get("RELEASE", None) is not None else "debug" |
|
|
|
build_metadata.openpilot.build_style = "release" if os.environ.get("RELEASE", None) is not None else "debug" |
|
|
|
|
|
|
|
|
|
|
|
create_build_metadata_file(target_dir, build_metadata, args.channel) |
|
|
|
create_build_metadata_file(target_dir, build_metadata) |
|
|
|
|
|
|
|
|
|
|
|
digest, caibx = create_casync_release(target_dir, output_dir, build_metadata.canonical) |
|
|
|
digest, caibx = create_casync_release(target_dir, output_dir, build_metadata.canonical) |
|
|
|
|
|
|
|
|
|
|
|