feat: refresh runtime images at startup

This commit is contained in:
reaper
2026-08-14 14:00:07 -05:00
parent 7b59a1cd90
commit 3d99489c7d
2 changed files with 58 additions and 0 deletions
+8
View File
@@ -5,6 +5,7 @@ import {
getModuleRegistry,
installModulePackage
} from './moduleRegistry'
import { refreshRuntimeImages } from './auroraEngine'
function updater(): AppUpdater {
// electron-updater is CommonJS; destructuring its default import keeps the
@@ -43,6 +44,13 @@ export function startAutomaticUpdates(): void {
})
.catch((error) => console.warn('Aurora module update check failed:', error))
void refreshRuntimeImages()
.then(({ checkedProjects, refreshedProjects, failures }) => {
console.info(`Aurora runtime update check refreshed ${refreshedProjects}/${checkedProjects} projects`)
if (failures.length) console.warn('Some Aurora runtime images could not be refreshed:', failures)
})
.catch((error) => console.warn('Aurora runtime update check failed:', error))
// electron-updater needs a packaged application and release metadata. The
// extracted development build intentionally skips the remote app check.
if (!app.isPackaged || process.env.AURORA_DISABLE_AUTO_UPDATE === '1') return