From 3728895239bce159ed347d9962547f784a86f4df Mon Sep 17 00:00:00 2001 From: zorn-v Date: Wed, 18 Sep 2024 01:33:32 +1000 Subject: [PATCH] Respect WINE_BINARY env var --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 3329eec0..75ce2f64 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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;