fixed some issues in the initial adb download
This commit is contained in:
Binary file not shown.
@@ -5,9 +5,6 @@ import { StatusBarService } from './status-bar.service';
|
|||||||
import { BeatOnService } from './beat-on.service';
|
import { BeatOnService } from './beat-on.service';
|
||||||
import { WebviewService } from './webview.service';
|
import { WebviewService } from './webview.service';
|
||||||
import { ProcessBucketService } from './process-bucket.service';
|
import { ProcessBucketService } from './process-bucket.service';
|
||||||
import { SafeSideService } from './safe-side.service';
|
|
||||||
|
|
||||||
type InstallDecision = 'DoInstall' | 'DontInstall';
|
|
||||||
|
|
||||||
declare const process;
|
declare const process;
|
||||||
export enum ConnectionStatus {
|
export enum ConnectionStatus {
|
||||||
|
|||||||
@@ -236,13 +236,13 @@ export class AppService {
|
|||||||
await this.mkdir(this.path.join(this.appData, 'platform-tools'));
|
await this.mkdir(this.path.join(this.appData, 'platform-tools'));
|
||||||
try {
|
try {
|
||||||
let files = this.fs.readdirSync(sourcesPath);
|
let files = this.fs.readdirSync(sourcesPath);
|
||||||
files.forEach(file => {
|
for (let i = 0; i < files.length; i++) {
|
||||||
this.fs
|
this.fs.copyFileSync(
|
||||||
.createReadStream(this.path.join(sourcesPath, file))
|
this.path.join(sourcesPath, files[i]),
|
||||||
.pipe(this.fs.createWriteStream(this.path.join(this.appData, 'platform-tools', file)));
|
this.path.join(this.appData, 'platform-tools', files[i])
|
||||||
});
|
);
|
||||||
|
}
|
||||||
if (this.os.platform() === 'darwin' || this.os.platform() === 'linux') {
|
if (this.os.platform() === 'darwin' || this.os.platform() === 'linux') {
|
||||||
console.log(this.path.join(this.appData, 'platform-tools', 'adb'));
|
|
||||||
this.setExecutable(this.path.join(this.appData, 'platform-tools', 'adb')).then(() =>
|
this.setExecutable(this.path.join(this.appData, 'platform-tools', 'adb')).then(() =>
|
||||||
setTimeout(() => resolve(), 5000)
|
setTimeout(() => resolve(), 5000)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user