Commit 0d0f9c8b authored by Vladislav Yarmak's avatar Vladislav Yarmak

ap: add support for WS2016-2019

parent df6b2279
...@@ -168,9 +168,13 @@ def main(): ...@@ -168,9 +168,13 @@ def main():
"300": "", "300": "",
"301": "nsd_", "301": "nsd_",
} }
installer_basename = os.path.basename(args.installer_file) installer_name = os.path.basename(args.installer_file).lower()
os_prefix = ('ws2012_x64' if 'winserv' in installer_basename.lower() if 'winserv2008' in installer_name:
else 'win10_x64') os_prefix = 'ws2012_x64'
elif 'winserv-2016' in installer_name:
os_prefix = 'ws2016_x64'
else:
os_prefix = 'win10_x64'
driver_name = drv_prefix[product_type] + version driver_name = drv_prefix[product_type] + version
out_dir = os.path.join( out_dir = os.path.join(
os.path.dirname( os.path.dirname(
......
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