diff --git a/build-electron/app.jsc b/build-electron/app.jsc index 1781c4e..1642796 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 ba3573e..ac4ff59 100644 --- a/desktop-app/src/app/app.service.ts +++ b/desktop-app/src/app/app.service.ts @@ -232,11 +232,13 @@ export class AppService { sourcesPath = this.path.join(process.cwd(), 'build', 'platform-tools'); } console.log(this.path.join(__dirname, '..', 'platform-tools'), process.cwd(), __dirname); - this.fs.readdir(sourcesPath, (err, files) => { - files.forEach(file => { - this.fs - .createReadStream(this.path.join(sourcesPath, file)) - .pipe(this.fs.createWriteStream(this.path.join(this.appData, file))); + this.fs.mkdir(this.path.join(this.appData, 'platform-tools'), () => { + this.fs.readdir(sourcesPath, (err, files) => { + files.forEach(file => { + this.fs + .createReadStream(this.path.join(sourcesPath, file)) + .pipe(this.fs.createWriteStream(this.path.join(this.appData, 'platform-tools', file))); + }); }); }); }