Commit Graph

504 Commits

Author SHA1 Message Date
dmex 44a1665734 Update MC and RC and disable cvtres and coff conversions 2026-06-13 20:44:50 -06:00
dmex 63bf89ff78 Initial 2026-06-13 20:44:50 -06:00
dmex c0a4919a66 fixes 2026-06-13 20:44:26 -06:00
dmex f5cf831109 Initial 2026-06-13 20:44:19 -06:00
Johnny Shaw 446e3f80d8 cbt hacked fix for parallel builds 2026-06-02 21:48:01 -06:00
dmex fb554333e6 Update BuildConfig.cs 2026-06-01 04:05:18 +10:00
dmex 2fcaf8be1d Update Build.cs 2026-05-31 21:59:32 +10:00
dmex e6120caa36 Update CustomBuildTool 2026-05-31 14:13:33 +10:00
dmex 4c32374a63 Add msbuild graph support and update build commands 2026-05-28 04:17:48 +10:00
dmex 0b933cf2c6 Move SymCrypt wrapper into phlib
Move the SymCrypt wrapper sources into phlib while simplifying thirdparty project references.
2026-05-23 18:32:29 +10:00
dmex 6daced8532 Fix thirdparty build files 2026-05-22 15:08:31 +10:00
dmex ba067cca57 BuildTools: Cleanup 2026-05-18 09:44:24 +10:00
dmex 63500351de Apply suggested fix to tools/CustomBuildTool/Build.cs (#2912) 2026-05-13 15:07:04 +10:00
dmex d10402729e Add default PlatformToolset and mute verbose log 2026-05-12 13:33:58 +10:00
dmex 26b5034bb3 Fix msbuild arguments mangled by ArgumentList's quote-escaping 2026-05-12 13:07:26 +10:00
dmex a9bddfa53f Use raw string literals for MSBuild args 2026-05-12 10:21:29 +10:00
dmex 4d41fe4f70 Print msbuild command arguments 2026-05-12 08:56:21 +10:00
dmex 2954e60bcd Update Build.cs 2026-05-11 18:17:02 +10:00
dmex a9e5fe6bcc Improve Enterprise WDK detection and enhance console output 2026-05-11 04:43:23 +10:00
dmex 6debb84c88 Add Base64 encoder/decoder 2026-05-10 15:01:00 +10:00
dmex 5cba1074df Update CustomBuildTool.csproj 2026-05-09 17:20:40 +10:00
dmex ff5052e3f8 Add CMake builds x86/x64 and ARM64 2026-05-09 09:41:42 +10:00
dmex ed3ba215b7 Use VsDevCmd.bat and cmd.exe for CMake 2026-05-09 09:14:46 +10:00
dmex 2b7674bbdb Add PDB zip step and clean up pipeline formatting 2026-05-07 02:18:34 +10:00
dmex 40daecedfa Update Zip.cs 2026-05-06 16:44:08 +10:00
dmex 8120b7a78c Atomic staging/commit for setup extraction
Introduce an atomic two-phase extraction and commit flow for the setup tool: add staging (.new/.bak per-session) and commit/rollback/finalize helpers (SetupWriteFileAtomic, SetupCommitFile, SetupRollbackFile, SetupFinalizeFile, SetupGetSessionId) and use a staged list during extraction to commit files only after successful staging. Update SetupUseExistingKsi and SetupUpdateKsi to use file-size/content comparisons and safer rename semantics. Adjust progress reporting and skip/normalize architecture-specific paths during extraction.
2026-05-06 13:27:14 +10:00
dmex 2be94f99e6 Update Build.cs 2026-05-06 12:15:02 +10:00
dmex 6c16d4956b Remove unused usings and comment telemetry set 2026-05-06 12:04:54 +10:00
Johnny Shaw 7f44c16b33 Revert "cbt fix ambiguous reference"
This reverts commit 07d0eacd26.
2026-05-05 20:03:18 -06:00
dmex ef92b3f946 Use argument arrays for external tools
Convert command execution APIs to accept argument lists instead of single command strings . These changes improve argument separation/quoting safety and allow complex command invocations (including PowerShell-based CMake setup) to run in a single process session.
2026-05-06 12:01:45 +10:00
Johnny Shaw 07d0eacd26 cbt fix ambiguous reference 2026-05-05 20:00:44 -06:00
dmex 110b25394d CustomBuildTool: Modernize with Span/ArrayBufferWriter/Utf8JsonWriter for .NET 10 2026-05-06 10:47:26 +10:00
dmex 9c2fac0b5a CustomBuildTool: Optimize hashing, Add support for third-party update check
Major refactor and feature additions across CustomBuildTool:

- Replace synchronous JsonSerializer.Deserialize usages with JsonSerializer.DeserializeAsync (passing CancellationToken) for HTTP/KeyVault/NuGet/GitHub responses to avoid blocking and improve cancellation handling.
- Optimize ECDSA hashing: use ReadOnlySpan, static SHA{256,384,512}.HashData fast-paths and allocation-free IncrementalHash fallback; consolidate incremental helper.
- Add BuildThirdParty.cs: new utility to verify vendored third-party library versions against GitHub releases, with various helpers (version parsing, GitHub queries, regexes).
- Add CLI command -check-thirdparty and register it in Program.cs to run version checks.
- Harden BuildAzure.GetAzureADToken: build form body as bytes, zero secret memory, and send as ByteArrayContent.
- Revise Build logic and file handling: normalize Path.Join usage, normalize path separators in MSIX mapping, improve BuildChecksumsFile collection logic, validate exe presence before export checks, and dedupe file lists before checksum computation.
- Update BuildHttpClient.CreateHttpClient settings and use DeserializeAsync in SendMessage; adjust MaxAutomaticRedirections removal.
- Misc fixes: environment block parsing loop fix, safer registry value handling, reorder search-path logic, add Regex Using and GeneratedRegex helpers, add CA1416 platform-suppression, and small csproj cleanup.

These changes improve async/cancellation behavior, memory safety, hashing performance, and add a new third-party checking feature.
2026-04-26 13:57:20 +10:00
dmex fedc43b6a1 Fix typos and improve HTTP2 handling 2026-04-17 14:40:13 +10:00
dmex ad45c616e4 Fix error checking 2026-04-17 14:33:07 +10:00
dmex 05b46cfb6a Opt out dotnet telemetry; Add CLI aliases 2026-04-17 11:31:55 +10:00
Johnny Shaw 8325c84a34 cbt disable dyndata session key check 2026-04-16 19:02:47 -06:00
Johnny Shaw b8fc422953 cbt fix dyndata command 2026-04-16 18:59:40 -06:00
dmex 8526c189d1 CustomBuildTool: Add System.CommandLine support and tab completion 2026-04-17 03:58:37 +10:00
dmex d1708bc4b5 Update Build.cs 2026-04-08 10:24:51 +10:00
dmex 77b60a8138 Bump HTTP version to 3.0 for a release request, tidy MSIX packaging steps, and refactor CMake build
Add routines to download GitHub IP ranges and Azure service tags and return address prefixes Bump HTTP version to 3.0 for a release request, tidy MSIX packaging steps, and update author year.
2026-04-08 10:24:41 +10:00
dmex e72e027368 Update CustomBuildTool.csproj 2026-04-04 16:47:57 +11:00
dmex 0cc728c593 Update Program.cs 2026-04-04 16:47:56 +11:00
Copilot 536c5c5a2b Fix potential index out of bounds exception in Zip.cs (#2866) 2026-03-29 18:12:40 +11:00
dmex 364c33c410 CustomBuildTool: Update to latest SDK 2026-03-29 04:13:24 +11:00
dmex 3a6e971277 CustomBuildTool: Fix nuget warning 2026-03-22 12:20:21 +11:00
dmex 68604bf4b4 BuildTools: Add initial nuget versioning 2026-03-22 11:41:30 +11:00
dmex bae2ca3b41 Update comments and tidy up 2026-03-22 11:31:16 +11:00
Johnny Shaw 363b3dd152 cbt fix build warnings 2026-03-14 08:08:00 -06:00
dmex ffd18e8d65 Fix cmake, build tools 2026-03-14 16:27:43 +11:00