mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-20 11:25:56 +00:00
Derive the Modules Preview update from a signed stable update
coa-release derive-preview verifies the stable update package, unpacks it, replaces the core binaries with the plugin host build (same core commit), adds Core/plugin-sdk.zip and Core/plugins/recommended.json, and repacks it with the stable migrations, configuration and scripts unchanged. The result is signed with the preview key by coa-release sign. Tried on server-0.261104.94 and a CI plugin host: 37256 files, 3417 migrations, signature/archive/schema contract verified; the stable key rejects the package (env-driven test). New servers in the preview Manager are installed from the stable image; the preview core arrives as the first update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
df4a97bff2
commit
53789b9bdd
3 files changed
+133
-1
No files matched your search
+11
-1
@@ -309,7 +309,17 @@ fn installation_source(custom: Option<String>) -> Result<Source> {
|
||||
.ok()
|
||||
.filter(|value| !value.trim().is_empty())
|
||||
});
|
||||
select_installation_source(custom, || update_source(None))
|
||||
// A new server is installed from the qualified stable image; the preview channel publishes updates only,
|
||||
// so the preview core arrives as the first update (the same path every existing server takes).
|
||||
select_installation_source(custom, stable_update_source)
|
||||
}
|
||||
|
||||
fn stable_update_source() -> Result<Source> {
|
||||
match coa_core::channels::resolve("stable") {
|
||||
Ok(source) => Ok(source),
|
||||
Err(Error::PackageNotPublished(_)) => Ok(Source::Url(DEFAULT_UPDATE_URL.into())),
|
||||
Err(error) => Err(error),
|
||||
}
|
||||
}
|
||||
|
||||
fn select_installation_source(
|
||||
|
||||
Reference in new issue
Block a user