diff --git a/Changelog.md b/Changelog.md index 5f63b1d8..e3f27837 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,9 +1,9 @@ # Changelog -## v1.12.22335 (2022.2 Update1) +## v1.12.22339 (2022.2 Update1) -*Note: This release (`v1.12.22335`) is the same as the previous release (`v1.12`) except that release assets have been signed with SHA-256 only. Prior to this release, assets were signed with both SHA-256 and SHA-1. (This change was necessary to fix a problem in older versions of Windows such as Windows 7.)* +*Note: This release (`v1.12.22339`) is the same as the previous release (`v1.12`) except that: (1) the kernel-mode drivers are now digitally signed only with the Microsoft Attestation signature, and that: (2) no release assets are digitally signed with SHA-1. (This change was necessary to fix a problem in older versions of Windows such as Windows 7.)* - [NEW] WinFsp now supports mounting as directory using the Mount Manager. Use the syntax `\\.\C:\Path\To\Mount\Directory`. diff --git a/tools/build.bat b/tools/build.bat index a78b9cb5..05e61829 100755 --- a/tools/build.bat +++ b/tools/build.bat @@ -83,6 +83,14 @@ if X%SignedPackage%==X ( popd pushd build\%Configuration% + mkdir unsigned + for %%f in (!signfiles!) do ( + copy "%%f" unsigned >nul + ) + pushd unsigned + signtool remove /q /s !signfiles! + if errorlevel 1 set /a signfail=signfail+1 + popd echo .OPTION EXPLICIT >driver.ddf echo .Set CabinetFileCountThreshold=0 >>driver.ddf echo .Set FolderFileCountThreshold=0 >>driver.ddf @@ -97,13 +105,13 @@ if X%SignedPackage%==X ( echo .Set DiskDirectory1=. >>driver.ddf echo .Set DestinationDir=a64 >>driver.ddf echo driver-a64.inf >>driver.ddf - echo %MyProductFileName%-a64.sys >>driver.ddf + echo unsigned\%MyProductFileName%-a64.sys >>driver.ddf echo .Set DestinationDir=x64 >>driver.ddf echo driver-x64.inf >>driver.ddf - echo %MyProductFileName%-x64.sys >>driver.ddf + echo unsigned\%MyProductFileName%-x64.sys >>driver.ddf echo .Set DestinationDir=x86 >>driver.ddf echo driver-x86.inf >>driver.ddf - echo %MyProductFileName%-x86.sys >>driver.ddf + echo unsigned\%MyProductFileName%-x86.sys >>driver.ddf makecab /F driver.ddf signtool sign /ac %CrossCert% /i %Issuer% /n %Subject% /fd sha256 /tr http://timestamp.digicert.com /td sha256 driver.cab if errorlevel 1 set /a signfail=signfail+1