File tree Expand file tree Collapse file tree
src/main/sources/standalone Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ vi.mock('electron', () => ({
1010import { writeComfyEnvironment } from './envPaths'
1111
1212const ENV_FILENAME = '.comfy_environment'
13- const EXPECTED_CONTENT = 'local_desktop2_standalone \n'
13+ const EXPECTED_CONTENT = 'local-desktop2-standalone \n'
1414
1515describe ( 'writeComfyEnvironment' , ( ) => {
1616 let tmpDir : string
@@ -23,7 +23,7 @@ describe('writeComfyEnvironment', () => {
2323 try { fs . rmSync ( tmpDir , { recursive : true , force : true } ) } catch { }
2424 } )
2525
26- it ( 'writes the marker file with local_desktop2_standalone content + trailing newline' , async ( ) => {
26+ it ( 'writes the marker file with local-desktop2-standalone content + trailing newline' , async ( ) => {
2727 await writeComfyEnvironment ( tmpDir )
2828 const written = fs . readFileSync ( path . join ( tmpDir , ENV_FILENAME ) , 'utf-8' )
2929 expect ( written ) . toBe ( EXPECTED_CONTENT )
Original file line number Diff line number Diff line change @@ -56,13 +56,13 @@ export function getMasterPythonPath(installPath: string): string {
5656}
5757
5858const COMFY_ENVIRONMENT_FILE = '.comfy_environment'
59- const COMFY_ENVIRONMENT_VALUE = 'local_desktop2_standalone '
59+ const COMFY_ENVIRONMENT_VALUE = 'local-desktop2-standalone '
6060const COMFY_ENVIRONMENT_CONTENT = COMFY_ENVIRONMENT_VALUE + '\n'
6161
6262/**
6363 * Write the `.comfy_environment` marker file consumed by ComfyUI core
6464 * (see Comfy-Org/ComfyUI#13425) so partner-node API requests carry the
65- * `X-Comfy-Env: local_desktop2_standalone ` header. Idempotent: if the file already
65+ * `X-Comfy-Env: local-desktop2-standalone ` header. Idempotent: if the file already
6666 * has the expected content, this is a no-op. Skips silently when the
6767 * target directory does not exist (older installs not yet migrated).
6868 * Errors are swallowed with a warning — this marker is non-critical and
You can’t perform that action at this time.
0 commit comments