Skip to content

Commit

Permalink
Replace CPU mode launch override with launch args
Browse files Browse the repository at this point in the history
  • Loading branch information
webfiltered committed Dec 14, 2024
1 parent 2422280 commit bfcf2e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/install/installWizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ export class InstallWizard {
'Comfy-Desktop.AutoUpdate': this.installOptions.autoUpdate,
'Comfy-Desktop.SendStatistics': this.installOptions.allowMetrics,
};

if (this.installOptions.device === 'cpu') {
settings['Comfy.Server.LaunchArgs'] ??= {};
settings['Comfy.Server.LaunchArgs']['cpu'] = '';
}

const settingsJson = JSON.stringify(settings, null, 2);
fs.writeFileSync(settingsPath, settingsJson);
log.info(`Wrote settings to ${settingsPath}: ${settingsJson}`);
Expand Down

0 comments on commit bfcf2e4

Please sign in to comment.