Commit Graph

233 Commits

Author SHA1 Message Date
dmex 9fcc24e52d Add SBOM, VEX, and build tooling updates 2026-09-29 21:02:02 +10:00
dmex 9443791b1b Copy settings schema during build 2026-07-17 07:40:28 +10:00
dmex 9898e214d1 Add build commands for ports and copyright
CustomBuildTool now adds `-portsgen` to regenerate NetworkTools port mappings from the IANA CSV and `-update-copyright` to update existing author year ranges from git history. It also vendors the IANA CSV, rewrites the generated block in `plugins/NetworkTools/ports.c`, and updates CLI help text.

The build pipeline was tightened by fixing `settings.schema.json` copy handling (source path + filename-only destination), and header generation now includes `ntnsi.h`. Author year headers in affected tool sources were updated to 2026 to match the new copyright updater behavior.
2026-07-02 20:16:06 +10:00
dmex 50405a5ba2 Gate WOW64 file copy on Build32bit flag
This makes the 32-bit build responsible for producing and staging x86 binaries into the sibling native output, preventing parallel read/write races (IO_SharingViolation_File) when a 32-bit link is still running.
2026-06-18 02:50:28 +10:00
dmex 7fedbc2fc1 Add V2 toast support, UI tweaks, settings schema
Introduce V2 toast notification support and a dedicated STA toast pump thread with synchronous marshalling, progress updates, hide/release helpers, and action callbacks. Add settings.schema.json for editor validation. UI and UX fixes: add advanced setting editor dialog, handle groupbox z-ordering/theming and remove WS_EX_TRANSPARENT, clear mini-info selections on left click, and pick initial mini-info section based on single enabled tray icon. Add DPI-aware process property buttons update (PhpUpdateProcessPropButtonsDpi) and export PhReferenceFont. Concurrency/listing changes: use NoFence variants for process list insertion/removal. Misc: add resource viewer, update headers and build/project files.
2026-06-17 12:15:26 +10:00
dmex a571c6bc19 Build and bug fixes 2026-06-15 05:33:51 +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 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 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 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
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 ad45c616e4 Fix error checking 2026-04-17 14:33:07 +10:00
Johnny Shaw 8325c84a34 cbt disable dyndata session key check 2026-04-16 19:02:47 -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 364c33c410 CustomBuildTool: Update to latest SDK 2026-03-29 04:13:24 +11:00
dmex bae2ca3b41 Update comments and tidy up 2026-03-22 11:31:16 +11:00
dmex ffd18e8d65 Fix cmake, build tools 2026-03-14 16:27:43 +11:00
dmex 1b49e19ec4 BuildTools: Update to latest SDK 2026-03-14 15:37:27 +11:00
dmex fd1f6d9077 Update plugin build from using sdk copies of phnt headers to the actual phnt directory 2026-03-13 02:33:55 +11:00
dmex 2527156546 Improve build toolchain, fix Azure cert cache bug 2026-02-23 10:32:27 +11:00
dmex c94761de4f CustomBuildTool: Add EWDK support, Add cmake and clang support, Add full async support 2026-02-22 09:43:22 +11:00
dmex c3637e71d2 CustomBuildTool: Improve cmake cleanup 2026-02-05 12:29:48 +11:00
Johnny Shaw 12f0b8db94 cbt fix release build 2026-02-01 18:29:32 -07:00
dmex 46bfca3804 Update Build.cs 2026-02-01 08:15:48 +11:00
dmex 748b081acb CustomBuildTool: Add ESDK and CMake 2026-02-01 06:39:35 +11:00
dmex 19b6cb3d0e CustomBuildTool: Add build time 2026-01-13 23:24:43 +11:00
dmex 0eced1e94e CustomBuildTool: Add Console.IsOutputRedirected 2026-01-11 12:49:35 +11:00
dmex 32d8d5458a CustomBuildTool: Add comments 2025-12-16 16:22:26 +11:00
dmex bd9effd7b0 Update documentation and types 2025-12-12 19:42:59 +11:00
Johnny Shaw 54d3699177 Revert "Visual Studio 2026"
This reverts commit 27efdef0a5.
2025-11-19 21:05:48 -07:00
dmex 27efdef0a5 Visual Studio 2026 2025-11-17 20:42:47 +11:00
dmex 0dd90d20e1 BuildTools: Add github highlighting, Remove version properties 2025-09-29 01:19:28 +10:00
dmex c7d6862001 BuildTools: Move TimeStart 2025-09-28 02:36:36 +10:00
dmex 499aec0e79 Add build_header.cmd script for building PHNT single header 2025-09-22 20:33:10 +10:00
dmex 653ed8788b BuildTools: Add Github release ID to update information 2025-09-20 11:58:11 +10:00