Update to version v0.1.2.a.7 and implement auto-update feature in install.sh
- Updated index.html and version.txt to reflect the new release version v0.1.2.a.7. - Added an auto-update option in install.sh to streamline the update process without user prompts. - Modified terminal.py to support the new auto-update flag during updates.
This commit is contained in:
@@ -1877,12 +1877,15 @@ ZDTT Terminal v{self.version}
|
||||
'install.sh'
|
||||
)
|
||||
|
||||
# Add --auto flag to enable auto-update (skip prompt)
|
||||
update_args = ['update', '--auto'] + args
|
||||
|
||||
if zdtt_wrapper:
|
||||
subprocess.run([zdtt_wrapper, 'update'] + args)
|
||||
subprocess.run([zdtt_wrapper] + update_args)
|
||||
return
|
||||
|
||||
if os.path.isfile(installer_script):
|
||||
subprocess.run(['bash', installer_script, 'update'] + args)
|
||||
subprocess.run(['bash', installer_script] + update_args)
|
||||
return
|
||||
|
||||
print("Unable to locate the ZDTT updater.")
|
||||
|
||||
Reference in New Issue
Block a user