import { LaunchContext, LaunchState, LaunchStateId } from './LaunchState'; export class CheckVersionState implements LaunchState { readonly id = LaunchStateId.CheckVersion; async enter(context: LaunchContext): Promise { context.progress({ state: this.id, title: '检查版本' }); await context.kernel.version.check(); context.progress({ state: this.id, progress: 0.25 }); return LaunchStateId.HotUpdate; } }