CityBEM-CityLayers-SaeedRay.../node_modules/@electron-forge/installer-rpm/dist/InstallerRpm.js

32 lines
1.8 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 InstallerRpm extends _installerLinux.default {
constructor(...args) {
super(...args);
_defineProperty(this, "name", 'rpm');
}
async install({
filePath
}) {
await this.sudo('RPM', 'dnf', `--assumeyes --nogpgcheck install ${filePath}`);
}
}
exports.default = InstallerRpm;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9JbnN0YWxsZXJScG0udHMiXSwibmFtZXMiOlsiSW5zdGFsbGVyUnBtIiwiSW5zdGFsbGVyTGludXgiLCJpbnN0YWxsIiwiZmlsZVBhdGgiLCJzdWRvIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTs7Ozs7O0FBRWUsTUFBTUEsWUFBTixTQUEyQkMsdUJBQTNCLENBQTBDO0FBQUE7QUFBQTs7QUFBQSxrQ0FDaEQsS0FEZ0Q7QUFBQTs7QUFHMUMsUUFBUEMsT0FBTyxDQUFDO0FBQ1pDLElBQUFBO0FBRFksR0FBRCxFQUVRO0FBQ25CLFVBQU0sS0FBS0MsSUFBTCxDQUFVLEtBQVYsRUFBaUIsS0FBakIsRUFBeUIsb0NBQW1DRCxRQUFTLEVBQXJFLENBQU47QUFDRDs7QUFQc0QiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgSW5zdGFsbGVyTGludXgsIHsgSW5zdGFsbGVyT3B0aW9ucyB9IGZyb20gJ0BlbGVjdHJvbi1mb3JnZS9pbnN0YWxsZXItbGludXgnO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBJbnN0YWxsZXJScG0gZXh0ZW5kcyBJbnN0YWxsZXJMaW51eCB7XG4gIG5hbWUgPSAncnBtJztcblxuICBhc3luYyBpbnN0YWxsKHtcbiAgICBmaWxlUGF0aCxcbiAgfTogSW5zdGFsbGVyT3B0aW9ucykge1xuICAgIGF3YWl0IHRoaXMuc3VkbygnUlBNJywgJ2RuZicsIGAtLWFzc3VtZXllcyAtLW5vZ3BnY2hlY2sgaW5zdGFsbCAke2ZpbGVQYXRofWApO1xuICB9XG59XG4iXX0=