Skip to content

Commit

Permalink
Respect WINE_BINARY env var
Browse files Browse the repository at this point in the history
  • Loading branch information
zorn-v authored Sep 17, 2024
1 parent c34e15a commit 3728895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function createWindowsInstaller(options: SquirrelWindowsOptions): P
let useMono = false;

const monoExe = 'mono';
const wineExe = ['arm64', 'x64'].includes(process.arch) ? 'wine64' : 'wine';
const wineExe = process.env.WINE_BINARY || ['arm64', 'x64'].includes(process.arch) ? 'wine64' : 'wine';

if (process.platform !== 'win32') {
useMono = true;
Expand Down

0 comments on commit 3728895

Please sign in to comment.