Skip to content

Commit

Permalink
Merge pull request #14 from robertapengelly/master
Browse files Browse the repository at this point in the history
Updated urls for latest VMware and VMware Tools
  • Loading branch information
paolo-projects authored Apr 19, 2023
2 parents 25fd6b4 + 0fbe518 commit 3fb15d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gettools.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import zipfile
import time

ARCH = 'x86'
ARCH = 'x86_x64'

try:
# For Python 3.0 and later
Expand Down Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 3fb15d6

Please sign in to comment.