Commit b368b4ea authored by Umgak's avatar Umgak

fix for changed compression on nvenc dlls in installer archives

parent 699bbf40
......@@ -33,8 +33,8 @@ def parse_args():
parser.add_argument("-T", "--target",
nargs="+",
default=[
"Display.Driver/nvencodeapi64.dl_",
"Display.Driver/nvencodeapi.dl_",
"Display.Driver/nvencodeapi64.dll",
"Display.Driver/nvencodeapi.dll",
],
help="target location(s) in archive")
parser.add_argument("-N", "--target-name",
......@@ -156,7 +156,8 @@ def make_patch(archive, *,
tmpdir,
arch_tgt,
sevenzip=sevenzip) as tgt:
f = expand(tgt, sevenzip=sevenzip)
with open(tgt, 'rb') as fo:
f = fo.read()
offset = f.find(search)
if offset == -1:
raise PatternNotFoundException("Pattern not found.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment