From 0fbe518091d55d41d9894e8f6ec41299c3116d4e Mon Sep 17 00:00:00 2001 From: Robert Pengelly <55969885+robertapengelly@users.noreply.github.com> Date: Fri, 3 Feb 2023 12:42:11 +0000 Subject: [PATCH] Updated urls for latest VMware and VMware Tools --- gettools.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gettools.py b/gettools.py index 7ead41e..0817666 100755 --- a/gettools.py +++ b/gettools.py @@ -31,7 +31,7 @@ import zipfile import time -ARCH = 'x86' +ARCH = 'x86_x64' try: # For Python 3.0 and later @@ -129,7 +129,7 @@ def main(): parser.clean() - urlcoretar = url + lastVersion + '/' + ARCH + '/core/com.vmware.fusion.zip.tar' + urlcoretar = url + lastVersion + '/universal/core/com.vmware.fusion.zip.tar' # Get the main core file try: @@ -145,13 +145,13 @@ def main(): print('Extracting files from com.vmware.fusion.zip...') cdszip = zipfile.ZipFile(convertpath(dest + '/tools/com.vmware.fusion.zip'), 'r') - cdszip.extract('payload/VMware Fusion.app/Contents/Library/isoimages/darwin.iso', path=convertpath(dest + '/tools/')) - cdszip.extract('payload/VMware Fusion.app/Contents/Library/isoimages/darwinPre15.iso', path=convertpath(dest + '/tools/')) + cdszip.extract('payload/VMware Fusion.app/Contents/Library/isoimages/' + ARCH + '/darwin.iso', path=convertpath(dest + '/tools/')) + cdszip.extract('payload/VMware Fusion.app/Contents/Library/isoimages/' + ARCH + '/darwinPre15.iso', path=convertpath(dest + '/tools/')) cdszip.close() # Move the iso and sig files to tools folder - shutil.move(convertpath(dest + '/tools/payload/VMware Fusion.app/Contents/Library/isoimages/darwin.iso'), convertpath(dest + '/tools/darwin.iso')) - shutil.move(convertpath(dest + '/tools/payload/VMware Fusion.app/Contents/Library/isoimages/darwinPre15.iso'), convertpath(dest + '/tools/darwinPre15.iso')) + shutil.move(convertpath(dest + '/tools/payload/VMware Fusion.app/Contents/Library/isoimages/' + ARCH + '/darwin.iso'), convertpath(dest + '/tools/darwin.iso')) + shutil.move(convertpath(dest + '/tools/payload/VMware Fusion.app/Contents/Library/isoimages/' + ARCH + '/darwinPre15.iso'), convertpath(dest + '/tools/darwinPre15.iso')) # Cleanup working files and folders shutil.rmtree(convertpath(dest + '/tools/payload'), True)