|
|
014870a0e0
|
fix: 兼容旧 ABI 插件 + 移除 plugin.Open 致命 fallback
- CABINumMin 恢复为 1: 旧工具链编译的插件写入整数 version=1/2,
与新版内核结构体兼容(仅缺 stage 写回能力), 应允许加载而非拒绝
- tryLoadSO 移除 Go plugin.Open fallback: 本项目插件统一为 c-shared,
对 c-shared .so 调用 plugin.Open 会 fatal (no plugin module data) 不可恢复,
直接返回 cabi.Load 错误避免启动崩溃
|
2026-08-15 16:31:51 +08:00 |
|
|
|
4da2ad5376
|
feat: multi-platform .hmap bundle + platform auto-selection
- PluginManifest: add platforms field declaring supported OS
- validatePackage: accept bundle .hmap with platform-aware binary check
- extractPackage: extract only current OS binary, skip others (macOS renames .dylib → .so)
- installFromPath/installFromURL: path install keeps source, URL install auto-cleanup
- cabi/loader.go + dynamic.go: add linux/darwin build constraints for Windows cross-compile
- dynamic_loader_unix/windows: split SO loading with proper build tags
- package/build.sh: enable windows/amd64 for homed, add CXX export for arm64
- tryLoadSO: fallback to plugin.dylib on macOS
- docs: update PLUGIN_DEV.md for bundle format and install methods
|
2026-07-19 12:01:35 +08:00 |
|