mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
tools: build.bat: make cab file from unsigned drivers
This commit is contained in:
parent
619e41a18e
commit
52e8bedc56
@ -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`.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user