nvidia-patch/tools/readme-autogen
ramhaidar 405ccf7a7f win: Update windows readme-autogen template to reference new forked patch tools and new PowerShell script
- Updated the link to the `Win_1337_Apply_Patch` tool to point to updated forked repository, which includes improvements and bug fixes.
- Added an alternative option for users to apply patches using a new PowerShell script (`Win_1337_Apply_Patch_Powershell`), also linked in the README.
- Maintained the original instructions while providing users with multiple options for patch application.
2024-10-08 05:39:23 +05:30
..
templates win: Update windows readme-autogen template to reference new forked patch tools and new PowerShell script 2024-10-08 05:39:23 +05:30
.gitignore autogen: change directory naming; add docs 2019-11-15 03:25:40 +02:00
add_driver.py Fix README and add urls for Tesla drivers 2023-10-08 13:32:36 +05:30
constants.py readme_autogen: add constants for DCH (Hotfix) 2023-11-09 14:19:38 +05:30
migrate_patches.py fbc: update driver db structure 2019-12-01 17:15:26 +02:00
readme_autogen.py add win11 in readme autogeneration templates 2022-09-27 18:19:08 +02:00
README.md Fix README and add urls for Tesla drivers 2023-10-08 13:32:36 +05:30
utils.py autogen: refactor common parts into separate modules 2019-11-18 18:16:15 +02:00

readme-autogen

readme-autogen is a tool for internal usage, which purpose is to simplify maintenance of fresh and correct README files for this project.

It rebuilds README files from templates located in templates directory and driver data specified in drivers.json file.

Requirements

  • Python 3.4+

Usage

Just run script. It will update files in your repo working copy.

add_driver

add_driver is a tool for internal usage, which purpose is to simplify proper introduction of new driver records into drivers.json file.

Requirements

  • Python 3.4+

Usage

Just run script. It will update files in your repo working copy.

Examples

Here is real commands used for Windows driver 441.28 and 512.95 series:

./add_driver.py -W --variant "Studio Driver" 441.28
./add_driver.py -W -P Quadro -w win10 441.28
./add_driver.py -W -P Quadro -w win7 441.28
./add_driver.py -W -P Quadro -w ws2012 441.28
./add_driver.py -W -P Quadro -w ws2016 441.28
./add_driver.py -W -P GeForce --variant "DCH" -w win10 512.95

Variant DCH: Microsoft DCH (Declarative Componentized Hardware supported apps) drivers refers to a new universal Windows 10 driver package. NVIDIA FAQ

Synopsis

$ ./add_driver.py --help
usage: add_driver.py [-h] (-L | -W) [--variant VARIANT] [-P {GeForce,Quadro}] [-w {win10,win7,ws2012,ws2016}] [--patch32 PATCH32] [--patch64 PATCH64] [--skip-patch-check] [-U URL]
                     [--skip-url-check] [--no-fbc] [--no-enc]
                     version

Adds new Nvidia driver into drivers.json file of in your repo working copy

positional arguments:
  version               driver version

options:
  -h, --help            show this help message and exit
  -U URL, --url URL     override driver link (default: None)
  --skip-url-check      skip driver URL check (default: False)
  --no-fbc              add driver w/o NvFBC patch (default: True)
  --no-enc              add driver w/o NVENC patch (default: True)

OS options:
  -L, --linux           add Linux driver (default: None)
  -W, --win             add Windows driver (default: None)

Windows-specific options:
  --variant VARIANT     driver variant (use for special cases like "Studio Driver") (default: )
  -P {GeForce,Quadro}, --product {GeForce,Quadro}
                        product type (default: GeForce)
  -w {win10,win7,ws2012,ws2016}, --winseries {win10,win7,ws2012,ws2016}
                        Windows series (default: win10)
  --patch32 PATCH32     template for Windows 32bit patch URL (default: ${winseries}_x64/${drvprefix}${version}/nvencodeapi.1337)
  --patch64 PATCH64     template for Windows 64bit patch URL (default: ${winseries}_x64/${drvprefix}${version}/nvencodeapi64.1337)
  --skip-patch-check    skip patch files presense test (default: False)