dragonpilot - 基於 openpilot 的開源駕駛輔助系統
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
996 B

#!/usr/bin/env python
import argparse
import pathlib
from openpilot.system.updated.casync.common import create_caexclude_file, create_casync_release, create_build_metadata_file
from openpilot.system.version import get_build_metadata
if __name__ == "__main__":
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("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()
target_dir = pathlib.Path(args.target_dir)
output_dir = pathlib.Path(args.output_dir)
create_build_metadata_file(target_dir, get_build_metadata(), args.channel)
create_caexclude_file(target_dir)
digest, caidx = create_casync_release(target_dir, output_dir, args.channel)
print(f"Created casync release from {target_dir} to {caidx} with digest {digest}")