diff --git a/build-electron/app.jsc b/build-electron/app.jsc index 7407ba8..1781c4e 100644 Binary files a/build-electron/app.jsc and b/build-electron/app.jsc differ diff --git a/desktop-app/src/app/app.service.ts b/desktop-app/src/app/app.service.ts index 6153f50..ba3573e 100644 --- a/desktop-app/src/app/app.service.ts +++ b/desktop-app/src/app/app.service.ts @@ -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