feat: 完成 issue #85 [树脂] 树脂模板打包与版本发布
This commit is contained in:
@@ -72,11 +72,11 @@ def main() -> int:
|
||||
with open(path, "r", encoding="utf-8") as fh:
|
||||
yaml.safe_load(fh)
|
||||
|
||||
# 3) version.yaml assets 清单存在
|
||||
# 3) version.yaml assets 清单存在(支持文件与目录条目)
|
||||
with open(os.path.join(HERE, "version.yaml"), "r", encoding="utf-8") as fh:
|
||||
version = yaml.safe_load(fh)
|
||||
for rel in version.get("assets", []):
|
||||
if not os.path.isfile(os.path.join(HERE, rel)):
|
||||
if not os.path.exists(os.path.join(HERE, rel)):
|
||||
failures.append(f"version.yaml 声明资产缺失:{rel}")
|
||||
|
||||
# 4) 驾驶舱布局 widget 类型合法
|
||||
|
||||
Reference in New Issue
Block a user