fix: lint errors
Signed-off-by: Tiago Costa <tdcosta100@gmail.com>
This commit is contained in:
parent
45ff99375c
commit
72427f9f88
1 changed files with 15 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
"use strict";
|
'use strict';
|
||||||
|
|
||||||
import * as process from 'process';
|
import * as process from 'process';
|
||||||
import * as child_process from 'child_process';
|
import * as child_process from 'child_process';
|
||||||
|
|
@ -7,10 +7,21 @@ import * as path from 'path';
|
||||||
|
|
||||||
const originalPath = process.cwd();
|
const originalPath = process.cwd();
|
||||||
|
|
||||||
process.chdir(path.resolve(path.dirname(url.fileURLToPath(import.meta.url)), '..'))
|
process.chdir(
|
||||||
|
path.resolve(path.dirname(url.fileURLToPath(import.meta.url)), '..'),
|
||||||
|
);
|
||||||
|
|
||||||
if (process.platform == 'win32' && (process.arch == 'ia32' || process.arch == 'x64')) {
|
if (
|
||||||
child_process.spawn('powershell.exe', [ '-ExecutionPolicy', 'Bypass', '-File', 'install\\win32.ps1', process.arch ])
|
process.platform == 'win32' &&
|
||||||
|
(process.arch == 'ia32' || process.arch == 'x64')
|
||||||
|
) {
|
||||||
|
child_process.spawn('powershell.exe', [
|
||||||
|
'-ExecutionPolicy',
|
||||||
|
'Bypass',
|
||||||
|
'-File',
|
||||||
|
'install\\win32.ps1',
|
||||||
|
process.arch,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
process.chdir(originalPath);
|
process.chdir(originalPath);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue