This commit is contained in:
Shane Harris
2020-08-17 13:31:48 +01:00
committed by Your Name
parent 375d9040d2
commit 1f3dad667b
2 changed files with 2 additions and 2 deletions
Binary file not shown.
+2 -2
View File
@@ -227,11 +227,11 @@ export class AppService {
}
seedPlatformTools() {
if (!this.fs.existsSync(this.path.join(this.appData, 'platform-tools'))) {
let sourcesPath = this.path.join(__dirname, 'platform-tools');
let sourcesPath = this.path.join(__dirname, '..', 'platform-tools');
if (!this.fs.existsSync(sourcesPath)) {
sourcesPath = this.path.join(process.cwd(), 'build', 'platform-tools');
}
console.log(sourcesPath, process.cwd(), __dirname);
console.log(this.path.join(__dirname, '..', 'platform-tools'), process.cwd(), __dirname);
this.fs.readdir(sourcesPath, (err, files) => {
files.forEach(file => {
this.fs