update core: signed release.json (Ed25519) per channel, ETag check, resumable download with sha256, Auto/Ask/Off policy, appliers for the install.sh layout, AppImage, NSIS installer (keeps the replaced setup.exe for Restore) and .app, trial run with rollback.
Editor and launcher: banner, status bar, Help commands, Task Center download, install on restart.
CLI: aego update, aego release keygen|manifest, aego export --release-json.
Games: modules/update with update { url publicKey }, settings and the aego/update script API.
release.sh refuses to publish without AEGO_RELEASE_KEY and AEGO_UPDATE_KEY; install.sh lays out versions; make test-update runs a real v1 -> v2 update.
20 lines
256 B
Go
20 lines
256 B
Go
//go:build !aego_runtime
|
|
|
|
package update
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
|
|
"aego/engine/module"
|
|
)
|
|
|
|
//go:embed res/docs
|
|
var docFiles embed.FS
|
|
|
|
func registerDocs(r *module.Registry) {
|
|
if sub, err := fs.Sub(docFiles, "res/docs"); err == nil {
|
|
r.Docs(sub)
|
|
}
|
|
}
|