Bugfix
* TreeSizeFree downloads and extracts correctly again * Compressing tools will skip 7-Zip archives
This commit is contained in:
parent
c47d88aad8
commit
52684ebb4a
2 changed files with 15 additions and 11 deletions
|
|
@ -661,7 +661,6 @@ def update_treesizefree():
|
|||
# Extract files
|
||||
## NOTE: When downloaded using requests it is a .zip.gz?
|
||||
source = r'{}\treesizefree.zip.gz'.format(global_vars['TmpDir'])
|
||||
download_to_temp(name, url)
|
||||
extract_generic(source, global_vars['TmpDir'])
|
||||
extract_temp_to_cbin('treesizefree.zip', 'TreeSizeFree-Portable')
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ if __name__ == '__main__':
|
|||
os.system('cls')
|
||||
|
||||
## Download ##
|
||||
print_info('Downloading tools')
|
||||
print_success('Downloading tools')
|
||||
|
||||
# Data Recovery
|
||||
print_info(' Data Recovery')
|
||||
|
|
@ -87,10 +87,15 @@ if __name__ == '__main__':
|
|||
print_info(' Uninstallers')
|
||||
try_and_print(message='IObit Uninstaller...', function=update_iobit_uninstaller, other_results=other_results, width=40)
|
||||
|
||||
## Review ##
|
||||
print_standard('Please review the results and download/extract any missing items to .cbin')
|
||||
pause('Press Enter to compress the .cbin items')
|
||||
|
||||
## Compress ##
|
||||
print_info('Compressing tools')
|
||||
print_success('Compressing tools')
|
||||
print_info(' _Drivers')
|
||||
for item in os.scandir(r'{}\_Drivers'.format(global_vars['CBinDir'])):
|
||||
if not re.search(r'^(_Drivers|.*7z)$', item.name, re.IGNORECASE):
|
||||
try_and_print(
|
||||
message='{}...'.format(item.name),
|
||||
function=compress_and_remove_item,
|
||||
|
|
@ -99,7 +104,7 @@ if __name__ == '__main__':
|
|||
item = item)
|
||||
print_info(' .cbin')
|
||||
for item in os.scandir(global_vars['CBinDir']):
|
||||
if not re.search(r'^_(Drivers|include)$', item.name, re.IGNORECASE):
|
||||
if not re.search(r'^(_Drivers|_include|.*7z)$', item.name, re.IGNORECASE):
|
||||
try_and_print(
|
||||
message='{}...'.format(item.name),
|
||||
function=compress_and_remove_item,
|
||||
|
|
|
|||
Loading…
Reference in a new issue