Skip to content

Commit

Permalink
Windows needs the file to exist before moving across
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwilliams committed Oct 29, 2023
1 parent 0781ab1 commit f028255
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/engines/boa.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Installer = require('../installer');
const assert = require('assert');''

Check failure on line 2 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 18)

Expected 1 empty line after require statement not followed by another require

Check failure on line 2 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 18)

Missing whitespace after semicolon

Check failure on line 2 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 18)

Expected an assignment or function call and instead saw an expression

Check failure on line 2 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 18)

Missing semicolon

Check failure on line 2 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 20)

Expected 1 empty line after require statement not followed by another require

Check failure on line 2 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 20)

Missing whitespace after semicolon

Check failure on line 2 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 20)

Expected an assignment or function call and instead saw an expression

Check failure on line 2 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 20)

Missing semicolon

Check failure on line 2 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 21)

Expected 1 empty line after require statement not followed by another require

Check failure on line 2 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 21)

Missing whitespace after semicolon

Check failure on line 2 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 21)

Expected an assignment or function call and instead saw an expression

Check failure on line 2 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 21)

Missing semicolon
const execa = require('execa');''

Check failure on line 3 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 18)

Expected 1 empty line after require statement not followed by another require

Check failure on line 3 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 18)

Missing whitespace after semicolon

Check failure on line 3 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 18)

Expected an assignment or function call and instead saw an expression

Check failure on line 3 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 18)

Missing semicolon

Check failure on line 3 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 20)

Expected 1 empty line after require statement not followed by another require

Check failure on line 3 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 20)

Missing whitespace after semicolon

Check failure on line 3 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 20)

Expected an assignment or function call and instead saw an expression

Check failure on line 3 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 20)

Missing semicolon

Check failure on line 3 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 21)

Expected 1 empty line after require statement not followed by another require

Check failure on line 3 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 21)

Missing whitespace after semicolon

Check failure on line 3 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 21)

Expected an assignment or function call and instead saw an expression

Check failure on line 3 in src/engines/boa.js

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 21)

Missing semicolon
const { platform } = require('../common');
const { copyFileSync, chmodSync } = require('fs');
const { copyFileSync, chmodSync, existsSync, mkdirSync } = require('fs');
const { join } = require('path');

function getFilename() {
Expand Down Expand Up @@ -41,6 +41,10 @@ class BoaInstaller extends Installer {
// The file is not zipped so we don't need to do any extraction here, instead just moving it to the extractedPath
// The file doesn't seem to be executable so we need to set it manually
chmodSync(this.downloadPath, '755');
// Windows will fail if the extractedPath doesn't exist
if (!existsSync(this.extractedPath)){
mkdirSync(this.extractedPath);
}
return copyFileSync(this.downloadPath, join(this.extractedPath, 'boa'));
}

Expand Down

0 comments on commit f028255

Please sign in to comment.