diff --git a/src/index.ts b/src/index.ts index 3329eec..75ce2f6 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;