From 8a1ef7dbd96da98219f2f24aaca3e3bc2642c01a Mon Sep 17 00:00:00 2001 From: Omkar Phansopkar Date: Mon, 22 Aug 2022 18:39:01 +0530 Subject: [PATCH] Build zip for windows (#2) * Powershell script in python t1 Signed-off-by: Omkar Phansopkar * Powershell script in python t2 Signed-off-by: Omkar Phansopkar * Removed comments Signed-off-by: Omkar Phansopkar * Removed residue Signed-off-by: Omkar Phansopkar Signed-off-by: Omkar Phansopkar --- archive_builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archive_builder.py b/archive_builder.py index eaf4ef8e..2a7b7b3e 100755 --- a/archive_builder.py +++ b/archive_builder.py @@ -61,8 +61,8 @@ # Prepare .zip file for windows if on_windows: - zip_command = f"Compress-Archive {PACKAGE_DIR}/* {ARCHIVE_DIR}/{archive_file_name}.zip" - print("Executing zip command:", zip_command) + zip_command = f"powershell Compress-Archive {PACKAGE_DIR}/* {ARCHIVE_DIR}/{archive_file_name}.zip" + print("Executing zip command on powershell:", zip_command) os.system(zip_command) print(f"Zip file ready in {ARCHIVE_DIR}/ !!")