ci-platforms / darwin amd64 smoke (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
ci-platforms / windows amd64 smoke (push) Skipped
ci / checks (push) Successful in 10m24s
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 12m13s
ci / release (push) Successful in 8m57s
modules/update links aego/update (net/http, TLS, x509, archives) only off js; the web build gets a browser backend with the same section, settings and aego/update API, where Check and Apply fail and State stays idle. A test compares both builds' registrations. depcheck: wasm-runtime and wasm-try variants, update in wasmDenied, wasmDeniedStd (net/http, crypto/tls, crypto/x509, archive/*) with the wasm-reaches-std rule. wasmsize -prev: playground-size and try-size print the change since their last run. Loaders show the compressed download size: wasmGzip in an export's files.json, aego-*-gzip and data-wasm-gzip on the site; docstool writes the .wasm.gz copies. Demo game.wasm 33.9 -> 26.0 MB, gzip 8.07 -> 6.25 MB.
21 lines
484 B
Go
21 lines
484 B
Go
package update
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"aego/engine/module"
|
|
)
|
|
|
|
var errBrowser = errors.New("updates are not available in the browser")
|
|
|
|
// browser is the web build's backend: the page always serves the latest build, so State stays idle.
|
|
type browser struct{}
|
|
|
|
func (browser) init(*Module, *module.InitContext) error { return nil }
|
|
|
|
func (browser) check(*Module) error { return errBrowser }
|
|
|
|
func (browser) download(*Module) {}
|
|
|
|
func (browser) apply(*Module) error { return errBrowser }
|