1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 15:04:50 +08:00

Update the old updater if present when running on the windows standalone.

This commit is contained in:
comfyanonymous
2024-02-26 13:32:14 -05:00
parent 36f7face37
commit e61755ead0
2 changed files with 42 additions and 0 deletions

View File

@@ -193,6 +193,13 @@ if __name__ == "__main__":
folder_paths.set_temp_directory(temp_dir)
cleanup_temp()
if args.windows_standalone_build:
try:
import new_updater
new_updater.update_windows_updater()
except:
pass
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
server = server.PromptServer(loop)