Merge pull request #14 from robertapengelly/master

Updated urls for latest VMware and VMware Tools
This commit is contained in:
Paolo 2023-04-19 14:39:24 +02:00 committed by GitHub
commit 3fb15d6994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ import tarfile
import zipfile import zipfile
import time import time
ARCH = 'x86' ARCH = 'x86_x64'
try: try:
# For Python 3.0 and later # For Python 3.0 and later
@ -129,7 +129,7 @@ def main():
parser.clean() 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 # Get the main core file
try: try:
@ -145,13 +145,13 @@ def main():
print('Extracting files from com.vmware.fusion.zip...') print('Extracting files from com.vmware.fusion.zip...')
cdszip = zipfile.ZipFile(convertpath(dest + '/tools/com.vmware.fusion.zip'), 'r') 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/' + ARCH + '/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 + '/darwinPre15.iso', path=convertpath(dest + '/tools/'))
cdszip.close() cdszip.close()
# Move the iso and sig files to tools folder # 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/' + ARCH + '/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 + '/darwinPre15.iso'), convertpath(dest + '/tools/darwinPre15.iso'))
# Cleanup working files and folders # Cleanup working files and folders
shutil.rmtree(convertpath(dest + '/tools/payload'), True) shutil.rmtree(convertpath(dest + '/tools/payload'), True)