Upgrade electron (and lots of other packages) to fix letsencrypt

This commit is contained in:
Max Myers
2021-10-19 18:58:00 -04:00
parent aa862101f0
commit 3a73db2983
8 changed files with 2048 additions and 865 deletions
+2 -2
View File
@@ -74,8 +74,8 @@ export class AppService {
this.semver = (<any>window).require('semver');
this.crypto = (<any>window).require('crypto');
this.electron = (<any>window).require('electron');
this.remote = this.electron.remote;
this.nativeApp = this.electron.remote.app;
this.remote = (<any>window).require('@electron/remote');
this.nativeApp = this.remote.app;
this.appData = this.path.join(this.nativeApp.getPath('appData'), 'SideQuest');
this.exec = (<any>window).require('child_process').exec;
this.execSync = (<any>window).require('child_process').execSync;
+3 -3
View File
@@ -188,7 +188,7 @@ export class FilesComponent implements OnInit {
}
}
async uploadFiles() {
let res = await this.appService.electron.remote.dialog.showOpenDialog({
let res = await this.appService.remote.dialog.showOpenDialog({
properties: ['openFile', 'multiSelections'],
defaultPath: this.adbService.savePath,
});
@@ -281,7 +281,7 @@ export class FilesComponent implements OnInit {
});
}
async pickLocation() {
let res = await this.appService.electron.remote.dialog.showOpenDialog({
let res = await this.appService.remote.dialog.showOpenDialog({
properties: ['openDirectory'],
defaultPath: this.adbService.savePath,
});
@@ -338,7 +338,7 @@ export class FilesComponent implements OnInit {
});
}
openSaveLocation() {
this.appService.electron.remote.shell.openItem(this.adbService.savePath);
this.appService.remote.shell.openItem(this.adbService.savePath);
}
async readdir(path: string) {
let dirContents: FileFolderListing[];
@@ -232,7 +232,7 @@ export class HeaderComponent implements OnInit {
this.saveLogcatPath = null;
}
async selectLogcatOutput() {
const res = await this.appService.electron.remote.dialog.showOpenDialog({
const res = await this.appService.remote.dialog.showOpenDialog({
properties: ['openDirectory'],
defaultPath: this.adbService.savePath,
});
@@ -317,7 +317,7 @@ export class HeaderComponent implements OnInit {
this.appService.remote.getCurrentWindow().toggleDevTools();
}
async selectAppToInstall() {
let files = await this.appService.electron.remote.dialog.showOpenDialog({
let files = await this.appService.remote.dialog.showOpenDialog({
properties: ['openFile', 'multiSelections'],
defaultPath: this.adbService.savePath,
});
@@ -80,7 +80,7 @@ export class PackagesComponent implements OnInit {
}
async pickBackupLocation() {
const res = await this.appService.electron.remote.dialog.showOpenDialog({
const res = await this.appService.remote.dialog.showOpenDialog({
properties: ['openDirectory'],
defaultPath: this.appService.backupPath,
});