mirror of
https://github.com/Shu-Ying/main_plugin_farm.git
synced 2026-10-29 21:59:58 +08:00
fixed # 新增本地部署脚本,一键生成对应平台的压缩包内容
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
"""从构建清单生成发布提交说明,不查询发布时的工作目录。"""
|
||||
|
||||
|
||||
def commit_message(manifest):
|
||||
source = manifest["source"]
|
||||
message = source.get("message")
|
||||
if not isinstance(message, str) or not message.strip():
|
||||
raise ValueError("Missing source commit message; rebuild the package")
|
||||
return (
|
||||
f"{message.rstrip()}\n\n"
|
||||
f"Farm-Source-Commit: {source['commit']}\n"
|
||||
f"Farm-Version: {manifest['version']}"
|
||||
)
|
||||
Reference in New Issue
Block a user