forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
39
electron/node_modules/electron-updater/out/ElectronAppAdapter.js
generated
vendored
Normal file
39
electron/node_modules/electron-updater/out/ElectronAppAdapter.js
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ElectronAppAdapter = void 0;
|
||||
const path = require("path");
|
||||
const AppAdapter_1 = require("./AppAdapter");
|
||||
class ElectronAppAdapter {
|
||||
constructor(app = require("electron").app) {
|
||||
this.app = app;
|
||||
}
|
||||
whenReady() {
|
||||
return this.app.whenReady();
|
||||
}
|
||||
get version() {
|
||||
return this.app.getVersion();
|
||||
}
|
||||
get name() {
|
||||
return this.app.getName();
|
||||
}
|
||||
get isPackaged() {
|
||||
return this.app.isPackaged === true;
|
||||
}
|
||||
get appUpdateConfigPath() {
|
||||
return this.isPackaged ? path.join(process.resourcesPath, "app-update.yml") : path.join(this.app.getAppPath(), "dev-app-update.yml");
|
||||
}
|
||||
get userDataPath() {
|
||||
return this.app.getPath("userData");
|
||||
}
|
||||
get baseCachePath() {
|
||||
return AppAdapter_1.getAppCacheDir();
|
||||
}
|
||||
quit() {
|
||||
this.app.quit();
|
||||
}
|
||||
onQuit(handler) {
|
||||
this.app.once("quit", (_, exitCode) => handler(exitCode));
|
||||
}
|
||||
}
|
||||
exports.ElectronAppAdapter = ElectronAppAdapter;
|
||||
//# sourceMappingURL=ElectronAppAdapter.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue