CityBEM-CityLayers-SaeedRay.../node_modules/@electron-forge/installer-deb/dist/InstallerDeb.js

32 lines
1.7 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("source-map-support/register");
var _installerLinux = _interopRequireDefault(require("@electron-forge/installer-linux"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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 InstallerDeb extends _installerLinux.default {
constructor(...args) {
super(...args);
_defineProperty(this, "name", 'deb');
}
async install({
filePath
}) {
await this.sudo('Debian', 'gdebi', `-n ${filePath}`);
}
}
exports.default = InstallerDeb;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9JbnN0YWxsZXJEZWIudHMiXSwibmFtZXMiOlsiSW5zdGFsbGVyRGViIiwiSW5zdGFsbGVyTGludXgiLCJpbnN0YWxsIiwiZmlsZVBhdGgiLCJzdWRvIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTs7Ozs7O0FBRWUsTUFBTUEsWUFBTixTQUEyQkMsdUJBQTNCLENBQTBDO0FBQUE7QUFBQTs7QUFBQSxrQ0FDaEQsS0FEZ0Q7QUFBQTs7QUFHMUMsUUFBUEMsT0FBTyxDQUFDO0FBQ1pDLElBQUFBO0FBRFksR0FBRCxFQUVRO0FBQ25CLFVBQU0sS0FBS0MsSUFBTCxDQUFVLFFBQVYsRUFBb0IsT0FBcEIsRUFBOEIsTUFBS0QsUUFBUyxFQUE1QyxDQUFOO0FBQ0Q7O0FBUHNEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IEluc3RhbGxlckxpbnV4LCB7IEluc3RhbGxlck9wdGlvbnMgfSBmcm9tICdAZWxlY3Ryb24tZm9yZ2UvaW5zdGFsbGVyLWxpbnV4JztcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgSW5zdGFsbGVyRGViIGV4dGVuZHMgSW5zdGFsbGVyTGludXgge1xuICBuYW1lID0gJ2RlYic7XG5cbiAgYXN5bmMgaW5zdGFsbCh7XG4gICAgZmlsZVBhdGgsXG4gIH06IEluc3RhbGxlck9wdGlvbnMpIHtcbiAgICBhd2FpdCB0aGlzLnN1ZG8oJ0RlYmlhbicsICdnZGViaScsIGAtbiAke2ZpbGVQYXRofWApO1xuICB9XG59XG4iXX0=