Skip to content

Commit 2c1b53a

Browse files
committed
use boa.exe for windows
1 parent abc592b commit 2c1b53a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/engines/boa.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const { copyFileSync, chmodSync, existsSync, mkdirSync } = require('fs');
88
const Installer = require('../installer');
99
const { platform } = require('../common');
1010

11+
const binaryName = platform.startsWith('win') ? 'boa.exe' : 'boa';
12+
1113
function getFilename() {
1214
switch (platform) {
1315
case 'darwin-x64':
@@ -48,11 +50,11 @@ class BoaInstaller extends Installer {
4850
if (!existsSync(this.extractedPath)) {
4951
mkdirSync(this.extractedPath);
5052
}
51-
return copyFileSync(this.downloadPath, join(this.extractedPath, 'boa'));
53+
return copyFileSync(this.downloadPath, join(this.extractedPath, binaryName));
5254
}
5355

5456
async install() {
55-
this.binPath = await this.registerBinary('boa');
57+
this.binPath = await this.registerBinary(binaryName);
5658
}
5759

5860
async test() {

0 commit comments

Comments
 (0)