Skip to content

Commit

Permalink
Set binary file path by environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kruplm committed Mar 29, 2023
1 parent 08cd613 commit 12c5bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shell/js/composeui-node-launcher/src/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";

export class Launcher {
private composeuiBinaryFileName = process.platform === 'win32' ? 'ComposeUI-Shell.exe' : 'ComposeUI-Shell';
private composeuiBinaryFilePath = fileURLToPath(new URL(`./../dist/${this.composeuiBinaryFileName}`, import.meta.url));
private composeuiBinaryFilePath = process.env.npm_config_composeui_binary_file_path || process.env.COMPOSEUI_BINARY_FILE_PATH || fileURLToPath(new URL(`./../dist/${this.composeuiBinaryFileName}`, import.meta.url));

private processArgs(config?: WindowConfig) {
let argsArray = [];
Expand Down

0 comments on commit 12c5bbd

Please sign in to comment.