Repository navigation
Conversation
The engine rejected every build below 22621, so 21H2 (22000) media could be inspected but never built. Lower the floor to the original Windows 11 release and keep the rest of the compatibility rules unchanged. - WindowsImage gains MinimumBuild/MinimumRelease constants and uses them in IsSupported and Validate, replacing the hard-coded 22621 in the error text. - IsLegacyRelease flags builds below the 22H2 baseline (22000-22620) so the older codebase is announced rather than implied to be certified: the engine logs it once at the start of a build and the app appends it to the inspect result (once per media, not per edition). - Sidebar compatibility line and the unsupported-edition notice now say 21H2; new en/zh-Hans keys replace the unreferenced 22H2 ones. - Tests cover the new floor: 22000 accepted on x64 and ARM64, 21999 and a Windows 10 build rejected, 21H2 legacy detection, an end-to-end 21H2 pipeline that asserts the notice, and a below-floor build that fails before mounting and leaves the source untouched. 22H2-and-newer behaviour is unchanged: preset targets missing from 21H2 media are still reported as not present, and the .NET 3.5 source-payload requirement still stops that option explicitly instead of guessing. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Older media, 21H2 in particular, may ship without sources\sxs. Until now the build only failed at the ".NET 3.5" stage, after media had been staged and the image mounted and serviced, which made a 21H2 build look like it could not be built at all. - MediaManifest.HasNetFx3Payload is the single rule for "can this source supply .NET 3.5 offline". - BuildAsync refuses before a job, staging copy or mount exists, naming the reason and telling the user to turn the option off or use other media. The in-build stage check uses the same helper and wording. - The image step detects the payload when the media is inspected, shows a note next to the .NET 3.5 toggle, and clears the toggle, so the limitation is visible where the choice is made instead of surfacing mid-build. - Tests cover media with and without the payload on 22000 and 22621, asserting the refusal happens before any mount or staging stage. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Bring the nano11.ps1 builder into the app and the engine so the GUI can make a nano11 image directly, instead of running the script. Model: BuildMode gains Nano11 before Custom (Custom stays last because the app maps a combo-box index onto the enum) and BuildFlavor gains Nano. Nano is held to the same acknowledgement as Core, and a fixed Nano11 recipe must carry Core's removal groups and exactly the Nano flavor. Engine: Nano11 is Core plus a plan, not a wider set of selectable groups. - Nano11Plan holds the script's identities: 39 provisioned-app fragments, 31 package/capability families (architecture-correct), 17 payloads, printer/ scanner/MFD driver classes, the font keep-list, five scheduled tasks, 14 services, the Defender services switched off, and the extra policies. - BuildEngine.Nano applies it as one stage inside the mounted image: reset the component base, remove apps one by one (a refusal is recorded, not fatal), remove matching packages/capabilities, delete payloads, fonts, drivers and tasks, delete the named services, then replace WinSxS with only the retained runtime and servicing families. - The store swap copies into a sibling folder and moves it in last, so a failure before the swap leaves WinSxS intact. Missing retained families stop the build before any payload is removed rather than yielding an unbootable image. Audio services are never removed. - Core's own paths are unchanged: Core still trims component payloads and keeps its store. Nano shares the reset, the legacy installer, the wizard-less boot.wim edit and Turbo's intermediate compression with Core. App: a fourth welcome card and component card, the Nano11 combo entry, mode description, card marks, review and resume warnings, and localized strings in both catalogs. Tests cover the mode contract, the plan (including that audio services are excluded), the pipeline order, the report flavor and the fixed-set refusal. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Nano11 exists to be smaller than Core, but four output settings still defaulted to larger values and three of them could not even be chosen outside Custom. - BuildRecipe.WithSmallestOutput is the one definition of "smallest": recovery ESD installation image, redundant offline data removed, no staged .NET 3.5 setup payload, and a rebuilt single-index boot.wim. - BuildAsync applies it to every Nano11 recipe, so a recipe that never passed through the app (a hand-written or imported JSON file) still builds the smallest ISO. The recipe written to the job and used for resume is the one that actually ran. - A shrunk boot.wim is now valid for Nano11 as well as Custom: it is what makes the ISO smaller, and Nano11 always wants it. - The app's CreateRecipe returns the same settings it will build, so review and validation stop describing a larger image than Nano11 produces. While Nano11 is selected the settings step shows those four values and locks them instead of letting them disagree. Every other mode keeps its own settings, so a Tiny11 or Core build can still be shrunk by hand. - Tests assert the smallest settings, that Nano11 ignores larger requested ones, and that a shrunk boot.wim stays invalid for Core. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
The Nano11 stage's file work ran inline against the real mount, so it could only ever be exercised by a real image build. Move it to Nano11Files, which takes a mount directory, mirroring how the Core and payload paths are tested. - Payloads, driver-store folders, fonts, scheduled tasks and the empty WinRE placeholder are now applied and asserted against a synthetic mount. - Service deletion stays with the offline registry and runs in the same tracked step, so the stage still reports one row for both halves. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Updated project name to reflect the new branding as Nano11 Builder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.