Include the numbered installer batch files in the Windows 11 seed ISO

The launcher also rebuilds the seed ISO when one of them changes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GuofangandClaude Sonnet 5.5 committed 2026-10-16 13:57:19 +08:00
1 parent 8e1907e567
commit ca716d2b61
2 files changed
+7 -2

No files matched your search

+3 -2
View File
@@ -250,8 +250,9 @@ if installing_from_iso:
if not tools_iso.is_file(): if not tools_iso.is_file():
die(f"downloader did not create: {tools_iso}") die(f"downloader did not create: {tools_iso}")
seed_sources = [script_dir / "seediso" / "windows11" / name seed_dir = script_dir / "seediso" / "windows11"
for name in ("Autounattend.xml", "Configure-Windows.ps1")] seed_sources = [seed_dir / "Autounattend.xml", seed_dir / "Configure-Windows.ps1",
*sorted(seed_dir.glob("[0-9][0-9]-*.bat"))]
def newer_than_seed(source): def newer_than_seed(source):
# Mirrors bash `-nt`: true if source exists and is newer than seed_iso. # Mirrors bash `-nt`: true if source exists and is newer than seed_iso.
+4
View File
@@ -7,6 +7,10 @@ seed_files=(
"$script_dir/Autounattend.xml" "$script_dir/Autounattend.xml"
"$script_dir/Configure-Windows.ps1" "$script_dir/Configure-Windows.ps1"
) )
# Numbered installer scripts (10-Install-Git.bat, 20-..., in install order).
shopt -s nullglob
seed_files+=("$script_dir"/[0-9][0-9]-*.bat)
shopt -u nullglob
mkdir -p "$(dirname -- "$output")" mkdir -p "$(dirname -- "$output")"
if command -v xorriso >/dev/null 2>&1; then if command -v xorriso >/dev/null 2>&1; then