1 parent
639362fbf5
commit
bdd69f0aad
101 files changed
+22691
-531
No files matched your search
@@ -113,22 +113,36 @@ def write_manifest(root: Path, version: str, output: Path) -> None:
|
||||
str(entry["path"]) for entry in entries if entry["type"] == "file"
|
||||
}
|
||||
executable = "bin/echoiond"
|
||||
updater = "bin/echoion-updater"
|
||||
core = "lib/Echoion.ts"
|
||||
web_index = "share/echoion/web/index.html"
|
||||
required_support = (
|
||||
"share/echoion/config.example.json",
|
||||
"share/echoion/tools/validate-release-manifest.py",
|
||||
"service/echoion.service.in",
|
||||
"service/echoion-updater.service.in",
|
||||
"service/echoion-updater.timer.in",
|
||||
)
|
||||
for description, required in (
|
||||
("executable", executable),
|
||||
("updater", updater),
|
||||
("Core library", core),
|
||||
("web dashboard entry point", web_index),
|
||||
):
|
||||
if required not in regular_files:
|
||||
raise ValueError(f"manifest {description} is missing: {required}")
|
||||
if not os.access(root / executable, os.X_OK):
|
||||
raise ValueError(f"manifest executable is not executable: {executable}")
|
||||
for required in required_support:
|
||||
if required not in regular_files:
|
||||
raise ValueError(f"manifest installer support file is missing: {required}")
|
||||
for required in (executable, updater):
|
||||
if not os.access(root / required, os.X_OK):
|
||||
raise ValueError(f"manifest executable is not executable: {required}")
|
||||
|
||||
manifest = {
|
||||
"schemaVersion": 2,
|
||||
"version": version,
|
||||
"executable": executable,
|
||||
"updater": updater,
|
||||
"core": core,
|
||||
"files": entries,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user