Skip to content

Commit

Permalink
use boa.exe for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwilliams committed Oct 29, 2023
1 parent abc592b commit 2c1b53a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/engines/boa.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const { copyFileSync, chmodSync, existsSync, mkdirSync } = require('fs');
const Installer = require('../installer');
const { platform } = require('../common');

const binaryName = platform.startsWith('win') ? 'boa.exe' : 'boa';

function getFilename() {
switch (platform) {
case 'darwin-x64':
Expand Down Expand Up @@ -48,11 +50,11 @@ class BoaInstaller extends Installer {
if (!existsSync(this.extractedPath)) {
mkdirSync(this.extractedPath);
}
return copyFileSync(this.downloadPath, join(this.extractedPath, 'boa'));
return copyFileSync(this.downloadPath, join(this.extractedPath, binaryName));
}

async install() {
this.binPath = await this.registerBinary('boa');
this.binPath = await this.registerBinary(binaryName);
}

async test() {
Expand Down

0 comments on commit 2c1b53a

Please sign in to comment.