diff --git a/scripts/build_plugin_bundles.sh b/scripts/build_plugin_bundles.sh new file mode 100755 index 0000000..e9cac1f --- /dev/null +++ b/scripts/build_plugin_bundles.sh @@ -0,0 +1,130 @@ +#!/usr/bin/env bash +# 为 SDK 仓的 example 插件批量打 .hmap 包,产出可直接随 release 发布的插件包。 +# +# 背景:release 此前只发 homed/waiter 二进制与 hmapdev 工具链,**不发插件包**。 +# 用户要用某个插件,得自己装 Go 1.25、拉依赖、装 hmapdev、逐个 build —— 这是 +# 「开箱即用」名不副实的根源。本脚本把这一步前置到发布流程里。 +# +# 用法: +# ./build_plugin_bundles.sh # 全部 example +# ./build_plugin_bundles.sh weather qq memo # 指定插件 +# OUT=../dist/plugins ./build_plugin_bundles.sh +# +# 环境: +# HMAPDEV hmapdev 可执行文件(默认取 PATH 上的 hmapdev) +# OUT 产物目录(默认