117 Commits

Author SHA1 Message Date
dmex 48d11f1d8f CustomBuildTool: FIx MSBuild -mt switch by version 2026-11-05 00:53:48 +11:00
dmex 16ed916415 Refactor netsup into header; add 7z BCJ2 packaging
SystemInformer: move NSI/NETIO declarations, types and enums from netsup.c into new include/netsup.h (added to vcxproj and filters) prefixed macros/types to Ph*, and make helpers like PhNetioGetAddress, PhNsiDeviceIoControl and PhNsiFillRouteEntry public.

Convert ICMP, RPC connect, adapter order map and compartment scope APIs to return NTSTATUS with out parameters instead of last-error/NULL. Use RtlSIZETMult/RtlULongAdd for overflow checks, PhAllocateZeroSafe with NO_MEMORY handling, and RtlZeroMemory. Add NSI object security SDDL dump. Update netprv.h signatures: Bound TCP table functions now take only an output pointer.

CustomBuildTool: 7z archives now use 7-Zip (BCJ2 for x86/x64 PE images) when available, falling back to archiveint.dll libarchive (LZMA), then SharpCompress (LZMA). Minor cleanups in Utils.cs.
2026-11-02 21:04:42 +11:00
Johnny Shaw 0086efd841 build use native arm64 toolset when possible 2026-10-17 14:25:15 -06:00
dmex 6960ed0933 Add setup delta tooling and SIMD build options
This change adds setup delta/patch generation commands, rotation helpers for setup payloads, and native SIMD detection for AVX/AVX2/AVX512 builds. It also standardizes error reporting via Program.PrintErrorMessage, suppresses ANSI escape codes when output is redirected, and updates the HTTP client helpers and build paths required for the new tooling.
2026-10-08 16:41:29 +11:00
dmex 9fcc24e52d Add SBOM, VEX, and build tooling updates 2026-09-29 21:02:02 +10:00
dmex a571c6bc19 Build and bug fixes 2026-06-15 05:33:51 +10:00
dmex e6120caa36 Update CustomBuildTool 2026-05-31 14:13:33 +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 26b5034bb3 Fix msbuild arguments mangled by ArgumentList's quote-escaping 2026-05-12 13:07:26 +10:00
dmex a9e5fe6bcc Improve Enterprise WDK detection and enhance console output 2026-05-11 04:43:23 +10:00
dmex ed3ba215b7 Use VsDevCmd.bat and cmd.exe for CMake 2026-05-09 09:14:46 +10:00
dmex 6c16d4956b Remove unused usings and comment telemetry set 2026-05-06 12:04:54 +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 8526c189d1 CustomBuildTool: Add System.CommandLine support and tab completion 2026-04-17 03:58:37 +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 1b49e19ec4 BuildTools: Update to latest SDK 2026-03-14 15:37:27 +11:00
dmex 2521ec49d6 CustomBuildTool: Add CMake SDK linking, vcvars fix, and -cmake flag
CMake: set ARCHIVE_OUTPUT_DIRECTORY for targets and add SDK/thirdparty linking for plugin targets; expose SI_PLATFORM_SDK_LIB for platform-specific SDK lib paths. Tools: pass a -cmake flag from si_sdkbuild and handle -cmake in CustomBuildTool. CustomBuildTool: only show build stats when verbose and improve ExecuteCMakeCommand vcvarsall detection by preferring VCINSTALLDIR, falling back to a VS instance, and returning an error if vcvarsall is not found. Zip: simplify compression column output and mark the file parameter as unused.
2026-02-23 16:59:44 +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 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 c59764f37b Update Utils.cs 2025-12-26 23:29:18 +11:00
dmex bd9effd7b0 Update documentation and types 2025-12-12 19:42:59 +11:00
Johnny Shaw 81f5c5c5c9 fix cbt on arm64 2025-12-01 20:02:38 -07: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
dmex a406b5bae1 BuildTools: Add delay for github release check 2025-09-19 23:54:23 +10:00
dmex 5982ef136f Add symstore check for github runners 2025-09-19 23:10:09 +10:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
dmex 44b5e27c15 BuildTools: Add SimdOptions, Tidy up 2025-06-18 12:25:40 +10:00
dmex 9ccd5eda48 BuildTools: Updates for breaking .NET changes 2025-06-17 08:40:48 +10:00
dmex 7483a42cec BuildTools: Msix cleanup 2025-05-22 15:18:32 +10:00
Johnny Shaw c130e283f3 consolidate build products 2025-05-09 21:09:41 -06:00
dmex 6317244ea6 Restructured common code 2025-05-07 08:29:22 +10:00
dmex cc931ddaf7 BuildTools: Add terminal logger support 2025-03-21 16:19:46 +11:00
dmex 7d8b1cdb85 BuildTools: Improve ToolsId hash, Add ValidateImageExports debug 2025-03-11 05:57:39 +11:00
dmex 99b2212a82 BuildTools: Fix azsign exclude 2025-02-03 19:12:03 +11:00
dmex 8566b1e440 BuildTools: Add exclude signing 2025-01-30 05:28:51 +11:00
dmex 950d28e781 CustomBuildTool: Add workaround for Directory.EnumerateFiles 2025-01-26 11:03:15 +11:00
dmex 01762e7980 BuildTools: Fix some warnings and improve updating 2025-01-14 22:26:16 +11:00
dmex b20716fd96 Update BuildTools to .NET 9.0 2024-11-30 05:31:57 +11:00
pedoc 27ab2b9dc0 Fix environment variable parsing error for CustomBuildTool (#2121) 2024-07-05 14:24:09 +10:00
Johnny Shaw 9b2b014d6a CustomBuildTool fix JsonSerializable codegen 2024-07-01 13:09:34 -06:00
dmex 02f41049b7 BuildTools: Add binlog support 2024-06-29 09:33:24 +10:00
dmex b608b68a23 BuildTools: Update versioning 2024-06-25 05:36:14 +10:00