37 lines
2.6 KiB
JavaScript
37 lines
2.6 KiB
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
require("source-map-support/register");
|
|
|
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
|
|
class Installer {
|
|
constructor() {
|
|
_defineProperty(this, "name", void 0);
|
|
|
|
_defineProperty(this, "__isElectronForgeInstaller", void 0);
|
|
|
|
Object.defineProperty(this, '__isElectronForgeInstaller', {
|
|
value: true,
|
|
enumerable: false,
|
|
configurable: false
|
|
});
|
|
}
|
|
/**
|
|
* Installers must implement this method and install the given filePath
|
|
* when called. This method must return a promise
|
|
*/
|
|
|
|
|
|
async install(_opts) {
|
|
throw new Error(`Installer ${this.name} did not implement the install method`);
|
|
}
|
|
|
|
}
|
|
|
|
exports.default = Installer;
|
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9JbnN0YWxsZXIudHMiXSwibmFtZXMiOlsiSW5zdGFsbGVyIiwiY29uc3RydWN0b3IiLCJPYmplY3QiLCJkZWZpbmVQcm9wZXJ0eSIsInZhbHVlIiwiZW51bWVyYWJsZSIsImNvbmZpZ3VyYWJsZSIsImluc3RhbGwiLCJfb3B0cyIsIkVycm9yIiwibmFtZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFPZSxNQUFlQSxTQUFmLENBQXlCO0FBS3RDQyxFQUFBQSxXQUFXLEdBQUc7QUFBQTs7QUFBQTs7QUFDWkMsSUFBQUEsTUFBTSxDQUFDQyxjQUFQLENBQXNCLElBQXRCLEVBQTRCLDRCQUE1QixFQUEwRDtBQUN4REMsTUFBQUEsS0FBSyxFQUFFLElBRGlEO0FBRXhEQyxNQUFBQSxVQUFVLEVBQUUsS0FGNEM7Q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