import { LaunchContext, LaunchState, LaunchStateId } from './LaunchState'; export class CheckVersionState implements LaunchState { readonly id = LaunchStateId.CheckVersion; async enter(context: LaunchContext): Promise { const i18n = context.kernel.i18n; context.progress({ state: this.id, title: i18n.t('launch.check_app_version'), progress: 0 }); await context.kernel.version.check(); return LaunchStateId.HotUpdate; } }