safing-portmaster/windows_kext/release
2024-10-28 08:35:02 +02:00
..
src [windows_kext] Add metadata to sys file 2024-05-28 10:43:43 +03:00
templates [windows_kext] Add metadata to sys file 2024-05-28 10:43:43 +03:00
Cargo.lock [windows_kext] Fix small bug, remove version form Cargo.toml files 2024-05-15 18:03:53 +03:00
Cargo.toml [windows_kext] Fix small bug, remove version form Cargo.toml files 2024-05-15 18:03:53 +03:00
README.md [windows_kext] Improve documentation (#1719) 2024-10-28 08:35:02 +02:00

Kext release tool

Generate the zip file

  • Make sure kextinterface/version.txt is up to date
  • Execute: cargo run
    • This will generate release kext_release_vX-X-X.zip file. Which contains all the necessary files to make the release.

Generate the cab file

  • Copy the zip and extract it on a windows machine.
    • Visual Studio 2022 and WDK need to be installed.
  • From VS Command Prompt / PowerShell run:
cd kext_release_v.../
./build_cab.bat

Script is written for VS $SDK_Version = "10.0.22621.0". If different version is used update the script.

  1. Sing the cab file

Let Microsoft Sign

  • Go to https://partner.microsoft.com/en-us/dashboard/hardware/driver/New
  • Enter "PortmasterKext vX.X.X #1" as the product name
  • Upload portmaster-kext_vX-X-X.cab
  • Select the Windows 10 versions that you compiled and tested on
    • Currently: Windows 11 Client, version 22H2 x64 (Ni)
  • Wait for the process to finish, download the .zip.

The zip will contain the release files.

Optionally sign the .sys file, with company certificate.