mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-20 19:25:56 +00:00
Plugin SDK per realm core, Dungeon Clear bundle, reliable incremental builds
- The host records its own ABI fingerprint (.coapl); the manager reads it from worldserver.exe instead of hardcoded fingerprints (solver, provenance, analyzer). - SDK store per realm: <realm>/.manager/sdk/<16 hex of fingerprint>/, chosen by the host fingerprint; install_realm_sdk refuses an SDK of another core. - Dungeon Clear is built into the SQUID DLL (bundle); persistent build cache. - Refuse layouts whose header paths exceed Ninja's Windows path limit (such headers counted as changed and every build became a full rebuild). - Compile jobs limited by free RAM; full build log kept in build.log; failures without an MSVC diagnostic report the failed step and the log tail. Bundle test: full build 1425 s, after a one-file change 9.7 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0a56bc7cf2
commit
e8ac3151a3
7 files changed
+649
-178
No files matched your search
@@ -176,6 +176,18 @@ pub fn cleanup_stale_staging(server: &Path) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// The ABI fingerprint an installed plugin's DLL was built with (from its .coapl section).
|
||||
pub fn installed_plugin_fingerprint(server: &Path, id: &str) -> Option<String> {
|
||||
let reg = load_registry(server).ok()?;
|
||||
let entry = reg.plugins.get(id)?;
|
||||
let dir = meta_dir(server).join(&entry.store_path);
|
||||
fs::read_dir(&dir).ok()?
|
||||
.flatten()
|
||||
.map(|e| e.path())
|
||||
.find(|p| p.extension().map(|x| x.eq_ignore_ascii_case("dll")).unwrap_or(false))
|
||||
.and_then(|dll| crate::provenance::file_abi_fingerprint(&dll))
|
||||
}
|
||||
|
||||
/// Load `.manager/plugins.json` directly without running recovery check.
|
||||
pub fn load_registry_direct(server: &Path) -> Result<PluginsRegistry> {
|
||||
let _ = cleanup_stale_staging(server);
|
||||
|
||||
Reference in new issue
Block a user