"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ElectronBuilderConfigHelper = void 0;
const path_1 = __importDefault(require("path"));
const file_1 = require("./file");
class ElectronBuilderConfigHelper {
    static configPath = path_1.default.resolve('config/electron-builder.json');
    static config = null;
    static getConfig() {
        if (this.config) {
            return this.config;
        }
        const fileContents = file_1.FileUtils.readJson(this.configPath);
        if (!fileContents) {
            throw new Error('electron-builder.json not found ');
        }
        this.config = fileContents;
        return this.config;
    }
}
exports.ElectronBuilderConfigHelper = ElectronBuilderConfigHelper;
//# sourceMappingURL=electron.builder.config.helper.js.map