Harden signed feeds and RelWithDebInfo releases
Modular container CI / release-build (push) Has been cancelled
Modular container CI / release-build (push) Has been cancelled
This commit is contained in:
21 files changed
+243
-40
No files matched your search
@@ -107,7 +107,9 @@ def collect_entries(root: Path) -> list[dict[str, object]]:
|
||||
return entries
|
||||
|
||||
|
||||
def write_manifest(root: Path, version: str, output: Path) -> None:
|
||||
def write_manifest(
|
||||
root: Path, version: str, build_type: str, output: Path
|
||||
) -> None:
|
||||
entries = collect_entries(root)
|
||||
regular_files = {
|
||||
str(entry["path"]) for entry in entries if entry["type"] == "file"
|
||||
@@ -141,6 +143,7 @@ def write_manifest(root: Path, version: str, output: Path) -> None:
|
||||
manifest = {
|
||||
"schemaVersion": 2,
|
||||
"version": version,
|
||||
"buildType": build_type,
|
||||
"executable": executable,
|
||||
"updater": updater,
|
||||
"core": core,
|
||||
@@ -168,6 +171,9 @@ def main() -> int:
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--root", required=True, type=Path)
|
||||
parser.add_argument("--version", required=True)
|
||||
parser.add_argument(
|
||||
"--build-type", choices=("RelWithDebInfo",), required=True
|
||||
)
|
||||
parser.add_argument("--output", type=Path)
|
||||
arguments = parser.parse_args()
|
||||
|
||||
@@ -175,7 +181,7 @@ def main() -> int:
|
||||
parser.error("version must contain only letters, digits, dot, underscore, or dash")
|
||||
root = arguments.root.resolve(strict=True)
|
||||
output = arguments.output or root / "manifest.json"
|
||||
write_manifest(root, arguments.version, output)
|
||||
write_manifest(root, arguments.version, arguments.build_type, output)
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user