Skip to content

Commit 92ba36e

Browse files
authored
Fixed: Add ComfyUI desktop version environment variable. (#1054)
This value is relied on by Manager and downstream applications. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-1054-Fixed-Add-ComfyUI-desktop-version-environment-variable-1b46d73d36508111b49df8946c8eafdb) by [Unito](https://www.unito.io)
1 parent 703e372 commit 92ba36e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ function initalizeLogging() {
7171
log.transports.file.transforms.unshift(removeAnsiCodesTransform);
7272
replaceFileLoggingTransform(log.transports);
7373

74+
// Set the app version for the desktop app. Relied on by Manager and other sub-processes.
75+
process.env.__COMFYUI_DESKTOP_VERSION__ = app.getVersion();
7476
log.info(`Starting app v${app.getVersion()}`);
7577
}
7678

0 commit comments

Comments
 (0)