Index: infra/bots/assets/win_vulkan_sdk/create_and_upload.py |
diff --git a/infra/bots/assets/win_toolchain/create_and_upload.py b/infra/bots/assets/win_vulkan_sdk/create_and_upload.py |
old mode 100755 |
new mode 100644 |
similarity index 71% |
copy from infra/bots/assets/win_toolchain/create_and_upload.py |
copy to infra/bots/assets/win_vulkan_sdk/create_and_upload.py |
index d428ca4ef9df2352ea3627f1656e59fd27e6eef2..515aa3d3933d8a818191e6738158cda7e56f2b30 |
--- a/infra/bots/assets/win_toolchain/create_and_upload.py |
+++ b/infra/bots/assets/win_vulkan_sdk/create_and_upload.py |
@@ -18,10 +18,15 @@ import utils |
def main(): |
+ if sys.platform != 'win32': |
+ print >> sys.stderr, 'This script only runs on Windows.' |
+ sys.exit(1) |
parser = argparse.ArgumentParser() |
parser.add_argument('--gsutil') |
- parser.add_argument('--chrome_path') |
- parser.add_argument('--msvs_version', required=True) |
+ parser.add_argument('--sdk_path', '-s', required=True) |
+ parser.add_argument('--runtime_path', '-r', |
+ default=os.path.join("C:","System32","vulkan-1.dll"), |
+ required=True) |
args = parser.parse_args() |
with utils.tmp_dir(): |
@@ -32,9 +37,8 @@ def main(): |
try: |
cmd = ['python', create_script, |
'-t', cwd, |
- '--msvs_version', args.msvs_version] |
- if args.chrome_path: |
- cmd.extend(['--chrome_path', args.chrome_path]) |
+ '--sdk_path', args.sdk_path, |
+ '--runtime_path', args.runtime_path] |
subprocess.check_call(cmd) |
cmd = ['python', upload_script, '-t', cwd] |
if args.gsutil: |