Skip to content

Commit

Permalink
Merge branch 'main' into custom-window
Browse files Browse the repository at this point in the history
  • Loading branch information
webfiltered authored Dec 28, 2024
2 parents 791d741 + e6c1263 commit 1222b5e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"productName": "ComfyUI",
"repository": "github:comfy-org/electron",
"copyright": "Copyright © 2024 Comfy Org",
"version": "0.4.3",
"version": "0.4.5",
"homepage": "https://comfy.org",
"description": "The best modular GUI to run AI diffusion models.",
"main": ".vite/build/main.cjs",
"packageManager": "[email protected]",
"type": "module",
"config": {
"frontendVersion": "1.6.6",
"comfyVersion": "0.3.9",
"comfyVersion": "0.3.10",
"managerCommit": "b4e52e65ec87978fc6294e82d55e1b91c5b02d55",
"uvVersion": "0.5.8"
},
Expand Down Expand Up @@ -113,4 +113,4 @@
"lint-staged": {
"./**/*.{js,ts,tsx}": "prettier --write"
}
}
}
4 changes: 3 additions & 1 deletion src/install/installationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ export class InstallationManager {
useDesktopConfig().set('migrateCustomNodesFrom', installWizard.migrationSource);
}

return new ComfyInstallation('installed', installWizard.basePath);
const installation = new ComfyInstallation('installed', installWizard.basePath);
installation.setState('installed');
return installation;
}

/**
Expand Down
15 changes: 3 additions & 12 deletions src/virtualEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class VirtualEnvironment {
return this.uvPty;
}

constructor(venvPath: string, selectedDevice: TorchDeviceType | undefined, pythonVersion: string = '3.12.4') {
constructor(venvPath: string, selectedDevice: TorchDeviceType | undefined, pythonVersion: string = '3.12.8') {
this.venvRootPath = venvPath;
this.pythonVersion = pythonVersion;
this.selectedDevice = selectedDevice;
Expand Down Expand Up @@ -108,17 +108,8 @@ export class VirtualEnvironment {
try {
await this.createEnvironment(callbacks);
} finally {
if (this.uvPty) {
// If we have a pty instance then we need to kill it on a delay
// else you may get an EPIPE error on reading the stream if it is
// reading/writing as you kill it
const pty = this.uvPty;
this.uvPty = undefined;
pty.pause();
setTimeout(() => {
this.uvPty?.kill();
}, 100);
}
const pid = this.uvPty?.pid;
if (pid) process.kill(pid);
}
}

Expand Down

0 comments on commit 1222b5e

Please sign in to comment.