feat(apps): catalog.json + chromium configure + winget bootstrap + build staging
All checks were successful
Build SilverMetal Enhanced - Windows ISO / build (pull_request) Successful in 6m36s
All checks were successful
Build SilverMetal Enhanced - Windows ISO / build (pull_request) Successful in 6m36s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -172,6 +172,17 @@ function Copy-WelcomePayload {
|
||||
} else {
|
||||
Write-Warning " No *.json flavour files found in $flavoursDir -- image will ship with no flavours."
|
||||
}
|
||||
# Stage the app catalog + configure/bootstrap scripts next to the Welcome app
|
||||
# (mirrors the flavours copy above): catalog.json, configure\*.ps1, bootstrap-winget.ps1.
|
||||
$appsDest = Join-Path $dest 'apps'
|
||||
$null = New-Item -ItemType Directory -Force $appsDest
|
||||
$appsDir = Join-Path $WindowsDir 'apps'
|
||||
if (Test-Path $appsDir) {
|
||||
Copy-Item (Join-Path $appsDir '*') $appsDest -Recurse -Force
|
||||
Write-Host " Copied app catalog + scripts to $appsDest"
|
||||
} else {
|
||||
Write-Warning " No apps dir found at $appsDir -- image will ship with no app catalog."
|
||||
}
|
||||
# --- Guard: verify the payload actually landed in the mounted image -------
|
||||
$stagedExe = Join-Path $dest 'SilverOS.Welcome.App.exe'
|
||||
if (-not (Test-Path $stagedExe)) {
|
||||
@@ -181,6 +192,10 @@ function Copy-WelcomePayload {
|
||||
if (-not $stagedFlavours) {
|
||||
throw "Welcome bake failed: no flavour manifests staged in '$destFlavours'. Add *.json files under windows/flavours/ or the installed wizard will have no flavour choices."
|
||||
}
|
||||
$stagedCatalog = Join-Path $appsDest 'catalog.json'
|
||||
if (-not (Test-Path $stagedCatalog)) {
|
||||
throw "Welcome bake failed: app catalog.json missing from image (expected at '$stagedCatalog'). Add windows/apps/catalog.json or the wizard's Apps step will be empty."
|
||||
}
|
||||
Write-Host " Welcome payload staged at $dest"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user