Skip to content

Commit

Permalink
fix: use wine64 on arm64 arch (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Nov 8, 2023
1 parent 6df0a19 commit 474d3e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/installer-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const fixtureAppDirectory = path.join(__dirname, 'fixtures/app');

function spawn7z(args: string[]): Promise<string> {
const sevenZipPath = path.join(__dirname, '..', 'vendor', '7z.exe');
const wineExe = process.arch === 'x64' ? 'wine64' : 'wine';
const wineExe = ['arm64', 'x64'].includes(process.arch) ? 'wine64' : 'wine';
return process.platform !== 'win32'
? spawn(wineExe, [sevenZipPath, ...args])
: spawn(sevenZipPath, args);
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function createWindowsInstaller(options: SquirrelWindowsOptions): P
let useMono = false;

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

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

0 comments on commit 474d3e2

Please sign in to comment.