Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@electron-forge/core

Package Overview
Dependencies
Maintainers
2
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron-forge/core - npm Package Compare versions

Comparing version 6.0.0-beta.61 to 6.0.0-beta.62

21

dist/api/import.js

@@ -10,4 +10,2 @@ "use strict";

var _lodash = require("lodash");
var _asyncOra = require("@electron-forge/async-ora");

@@ -17,2 +15,4 @@

var _chalk = _interopRequireDefault(require("chalk"));
var _debug = _interopRequireDefault(require("debug"));

@@ -22,2 +22,4 @@

var _lodash = require("lodash");
var _path = _interopRequireDefault(require("path"));

@@ -69,2 +71,4 @@

if (!(await confirmImport())) {
// TODO: figure out if we can just return early here
// eslint-disable-next-line no-process-exit
process.exit(0);

@@ -82,6 +86,8 @@ }

if (packageJSON.config.forge.makers) {
(0, _messages.warn)(interactive, 'It looks like this project is already configured for Electron Forge'.green);
(0, _messages.warn)(interactive, _chalk.default.green('It looks like this project is already configured for Electron Forge'));
if (typeof shouldContinueOnExisting === 'function') {
if (!(await shouldContinueOnExisting())) {
// TODO: figure out if we can just return early here
// eslint-disable-next-line no-process-exit
process.exit(0);

@@ -91,3 +97,3 @@ }

} else if (typeof packageJSON.config.forge === 'string') {
(0, _messages.warn)(interactive, "We can't tell if the Electron Forge config is compatible because it's in an external JavaScript file, not trying to convert it and continuing anyway".yellow);
(0, _messages.warn)(interactive, _chalk.default.yellow("We can't tell if the Electron Forge config is compatible because it's in an external JavaScript file, not trying to convert it and continuing anyway"));
} else {

@@ -120,2 +126,3 @@ d('Upgrading an Electron Forge < 6 project');

if (buildToolPackages[key]) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const explanation = buildToolPackages[key]; // eslint-disable-next-line max-len

@@ -182,3 +189,3 @@

if (!packageJSON.version) {
(0, _messages.warn)(interactive, 'Please set the "version" in your application\'s package.json'.yellow);
(0, _messages.warn)(interactive, _chalk.default.yellow('Please set the "version" in your application\'s package.json'));
}

@@ -215,6 +222,6 @@

Thanks for using ${'"electron-forge"'.green}!!!`);
Thanks for using ${_chalk.default.green('Electron Forge')}!!!`);
};
exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvaW1wb3J0LnRzIl0sIm5hbWVzIjpbImQiLCJkaXIiLCJwcm9jZXNzIiwiY3dkIiwiaW50ZXJhY3RpdmUiLCJjb25maXJtSW1wb3J0Iiwic2hvdWxkQ29udGludWVPbkV4aXN0aW5nIiwic2hvdWxkUmVtb3ZlRGVwZW5kZW5jeSIsInNob3VsZFVwZGF0ZVNjcmlwdCIsIm91dERpciIsImNhbGN1bGF0ZWRPdXREaXIiLCJhc3luY09yYSIsImZzIiwicGF0aEV4aXN0cyIsInBhdGgiLCJyZXNvbHZlIiwiRXJyb3IiLCJleGl0IiwiaW1wb3J0RGVwcyIsImNvbmNhdCIsImRlcHMiLCJpbXBvcnREZXZEZXBzIiwiZGV2RGVwcyIsImltcG9ydEV4YWN0RGV2RGVwcyIsImV4YWN0RGV2RGVwcyIsInBhY2thZ2VKU09OIiwiY29uZmlnIiwiZm9yZ2UiLCJtYWtlcnMiLCJncmVlbiIsInllbGxvdyIsImRlcGVuZGVuY2llcyIsImRldkRlcGVuZGVuY2llcyIsImtleXMiLCJPYmplY3QiLCJidWlsZFRvb2xQYWNrYWdlcyIsImtleSIsImV4cGxhbmF0aW9uIiwicmVtb3ZlIiwic2NyaXB0cyIsInVwZGF0ZVBhY2thZ2VTY3JpcHQiLCJzY3JpcHROYW1lIiwibmV3VmFsdWUiLCJ1cGRhdGUiLCJ3cml0ZUNoYW5nZXMiLCJ3cml0ZUpzb24iLCJzcGFjZXMiLCJEZXBUeXBlIiwiREVWIiwiRGVwVmVyc2lvblJlc3RyaWN0aW9uIiwiRVhBQ1QiLCJ2ZXJzaW9uIiwidGVtcG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GluIGEgZm9ybWF0IHRoYXQgZWxlY3Ryb24tZm9yZ2UgdW5kZXJzdGFuZHMuXG5cblRoYW5rcyBmb3IgdXNpbmcgJHtjaGFsay5ncmVlbignRWxlY3Ryb24gRm9yZ2UnKX0hISFgXG4gICk7XG59O1xuIl19

@@ -1,3 +0,2 @@

import 'colors';
import { ForgeMakeResult } from '@electron-forge/shared-types';
import { ElectronProcess, ForgeMakeResult } from '@electron-forge/shared-types';
import { ImportOptions } from './import';

@@ -54,3 +53,3 @@ import { InitOptions } from './init';

*/
start(opts: StartOptions): Promise<import("@electron-forge/shared-types").ElectronProcess>;
start(opts: StartOptions): Promise<ElectronProcess>;
}

@@ -57,0 +56,0 @@ declare const api: ForgeAPI;

@@ -6,2 +6,3 @@ "use strict";

});
exports.ForgeAPI = void 0;
Object.defineProperty(exports, "ForgeMakeResult", {

@@ -25,12 +26,12 @@ enumerable: true,

});
Object.defineProperty(exports, "InstallOptions", {
Object.defineProperty(exports, "InstallAsset", {
enumerable: true,
get: function () {
return _install.InstallOptions;
return _install.Asset;
}
});
Object.defineProperty(exports, "InstallAsset", {
Object.defineProperty(exports, "InstallOptions", {
enumerable: true,
get: function () {
return _install.Asset;
return _install.InstallOptions;
}

@@ -68,8 +69,6 @@ });

});
exports.utils = exports.api = exports.ForgeAPI = void 0;
exports.utils = exports.api = void 0;
require("source-map-support/register");
require("colors");
var _sharedTypes = require("@electron-forge/shared-types");

@@ -182,2 +181,2 @@

exports.utils = utils;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvaW5kZXgudHMiXSwibmFtZXMiOlsiRm9yZ2VBUEkiLCJpbXBvcnQiLCJvcHRzIiwiaW5pdCIsImluc3RhbGwiLCJsaW50IiwibWFrZSIsInBhY2thZ2UiLCJwdWJsaXNoIiwic3RhcnQiLCJhcGkiLCJ1dGlscyIsIkZvcmdlVXRpbHMiXSwibWFwcGluZ3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VuY3Rpb25gKVxuICAgKi9cbiAgcGFja2FnZShvcHRzOiBQYWNrYWdlT3B0aW9ucyk6IFByb21pc2U8dm9pZD4ge1xuICAgIHJldHVybiBfcGFja2FnZShvcHRzKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBQdWJsaXNoIGFuIEVsZWN0cm9uIGFwcGxpY2F0aW9uIGludG8gdGhlIGdpdmVuIHRhcmdldCBzZXJ2aWNlXG4gICAqL1xuICBwdWJsaXNoKG9wdHM6IFB1Ymxpc2hPcHRpb25zKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgcmV0dXJuIHB1Ymxpc2gob3B0cyk7XG4gIH1cblxuICAvKipcbiAgICogU3RhcnQgYW4gRWxlY3Ryb24gYXBwbGljYXRpb24uXG4gICAqXG4gICAqIEhhbmRsZXMgdGhpbmdzIGxpa2UgbmF0aXZlIG1vZHVsZSByZWJ1aWxkaW5nIGZvciB5b3Ugb24gdGhlIGZseVxuICAgKi9cbiAgc3RhcnQob3B0czogU3RhcnRPcHRpb25zKTogUHJvbWlzZTxFbGVjdHJvblByb2Nlc3M+IHtcbiAgICByZXR1cm4gc3RhcnQob3B0cyk7XG4gIH1cbn1cblxuY29uc3QgYXBpID0gbmV3IEZvcmdlQVBJKCk7XG5jb25zdCB1dGlscyA9IG5ldyBGb3JnZVV0aWxzKCk7XG5cbmV4cG9ydCB7XG4gIEZvcmdlTWFrZVJlc3VsdCxcbiAgSW1wb3J0T3B0aW9ucyxcbiAgSW5pdE9wdGlvbnMsXG4gIEluc3RhbGxBc3NldCxcbiAgSW5zdGFsbE9wdGlvbnMsXG4gIExpbnRPcHRpb25zLFxuICBNYWtlT3B0aW9ucyxcbiAgUGFja2FnZU9wdGlvbnMsXG4gIFB1Ymxpc2hPcHRpb25zLFxuICBTdGFydE9wdGlvbnMsXG4gIGFwaSxcbiAgdXRpbHMsXG59O1xuIl19

@@ -47,3 +47,3 @@ "use strict";

}
}); // eslint-disable-next-line import/no-dynamic-require, global-require
}); // eslint-disable-next-line @typescript-eslint/no-var-requires, import/no-dynamic-require, global-require

@@ -56,2 +56,2 @@ const templateModule = require(templateModulePath);

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcGkvaW5pdC1zY3JpcHRzL2ZpbmQtdGVtcGxhdGUudHMiXSwibmFtZXMiOlsiZCIsImRpciIsInRlbXBsYXRlIiwidGVtcGxhdGVNb2R1bGVQYXRoIiwicmVzb2x2ZVRlbXBsYXRlVHlwZXMiLCJmb3VuZFRlbXBsYXRlIiwidGVtcGxhdGVUeXBlIiwibW9kdWxlTmFtZSIsInJlcXVpcmUiLCJyZXNvbHZlIiwiZXJyIiwiRXJyb3IiLCJtZXNzYWdlIiwidGVtcGxhdGVNb2R1bGUiLCJkZWZhdWx0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTs7QUFDQTs7QUFDQTs7OztBQUtBLE1BQU1BLENBQUMsR0FBRyxvQkFBTSxtQ0FBTixDQUFWOztlQUVlLE9BQU9DLEdBQVAsRUFBb0JDLFFBQXBCLEtBQWlFO0FBQzlFLE1BQUlDLGtCQUFKO0FBQ0EsUUFBTSx3QkFBVSw4QkFBNkJELFFBQVMsR0FBaEQsRUFBb0QsWUFBWTtBQUNwRSxVQUFNRSxvQkFBb0IsR0FBRyxDQUMzQixDQUFDLFFBQUQsRUFBWSwyQkFBMEJGLFFBQVMsRUFBL0MsQ0FEMkIsRUFFM0IsQ0FBQyxRQUFELEVBQVksNEJBQTJCQSxRQUFTLEVBQWhELENBRjJCLEVBRzNCLENBQUMsT0FBRCxFQUFXLDJCQUEwQkEsUUFBUyxFQUE5QyxDQUgyQixFQUkzQixDQUFDLE9BQUQsRUFBVyw0QkFBMkJBLFFBQVMsRUFBL0MsQ0FKMkIsRUFLM0IsQ0FBQyxPQUFELEVBQVVBLFFBQVYsQ0FMMkIsQ0FBN0I7QUFPQSxRQ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GlyOiBzdHJpbmcsIGZvcmNlID0gZmFsc2UpOiBQcm9taXNlPHZvaWQ+ID0+IHtcbiAgYXdhaXQgYXN5bmNPcmEoJ0luaXRpYWxpemluZyBQcm9qZWN0IERpcmVjdG9yeScsIGFzeW5jIChpbml0U3Bpbm5lcikgPT4ge1xuICAgIGQoJ2NyZWF0aW5nIGRpcmVjdG9yeTonLCBkaXIpO1xuICAgIGF3YWl0IGZzLm1rZGlycyhkaXIpO1xuXG4gICAgY29uc3QgZmlsZXMgPSBhd2FpdCBmcy5yZWFkZGlyKGRpcik7XG4gICAgaWYgKGZpbGVzLmxlbmd0aCAhPT0gMCkge1xuICAgICAgZChgZm91bmQgJHtmaWxlcy5sZW5ndGh9IGZpbGVzIGluIHRoZSBkaXJlY3RvcnkuICB3YXJuaW5nIHRoZSB1c2VyYCk7XG5cbiAgICAgIGlmIChmb3JjZSkge1xuICAgICAgICBpbml0U3Bpbm5lci53YXJuKGBUaGUgc3BlY2lmaWVkIHBhdGggXCIke2Rpcn1cIiBpcyBub3QgZW1wdHkuIFwiZm9yY2VcIiB3YXMgc2V0IHRvIHRydWUsIHNvIHByb2NlZWRpbmcgdG8gaW5pdGlhbGl6ZS4gRmlsZXMgbWF5IGJlIG92ZXJ3cml0dGVuYCk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBpbml0U3Bpbm5lci5zdG9wKGxvZ1N5bWJvbHMud2FybmluZyk7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcihgVGhlIHNwZWNpZmllZCBwYXRoOiBcIiR7ZGlyfVwiIGlzIG5vdCBlbXB0eS4gIFBsZWFzZSBlbnN1cmUgaXQgaXMgZW1wdHkgYmVmb3JlIGluaXRpYWxpemluZyBhIG5ldyBwcm9qZWN0YCk7XG4gICAgICB9XG4gICAgfVxuICB9KTtcbn07XG4iXX0=

@@ -42,2 +42,2 @@ "use strict";

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb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idWcnO1xuXG5jb25zdCBkID0gZGVidWcoJ2VsZWN0cm9uLWZvcmdlOmluaXQ6Z2l0Jyk7XG5cbmV4cG9ydCBkZWZhdWx0IGFzeW5jIChkaXI6IHN0cmluZyk6IFByb21pc2U8dm9pZD4gPT4ge1xuICBhd2FpdCBhc3luY09yYSgnSW5pdGlhbGl6aW5nIEdpdCBSZXBvc2l0b3J5JywgYXN5bmMgKCkgPT4ge1xuICAgIGF3YWl0IG5ldyBQcm9taXNlPHZvaWQ+KChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICAgIGV4ZWMoXG4gICAgICAgICdnaXQgcmV2LXBhcnNlIC0tc2hvdy10b3BsZXZlbCcsXG4gICAgICAgIHtcbiAgICAgICAgICBjd2Q6IGRpcixcbiAgICAgICAgfSxcbiAgICAgICAgKGVycikgPT4ge1xuICAgICAgICAgIGlmIChlcnIpIHtcbiAgICAgICAgICAgIC8vIG5vdCBydW4gd2l0aGluIGEgR2l0IHJlcG9zaXRvcnlcbiAgICAgICAgICAgIGQoJ2V4ZWN1dGluZyBcImdpdCBpbml0XCIgaW4gZGlyZWN0b3J5OicsIGRpcik7XG4gICAgICAgICAgICBleGVjKCdnaXQgaW5pdCcsIHsgY3dkOiBkaXIgfSwgKGluaXRFcnIpID0+IChpbml0RXJyID8gcmVqZWN0KGluaXRFcnIpIDogcmVzb2x2ZSgpKSk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGQoJy5naXQgZGlyZWN0b3J5IGFscmVhZHkgZXhpc3RzLCBza2lwcGluZyBnaXQgaW5pdGlhbGl6YXRpb24nKTtcbiAgICAgICAgICAgIHJlc29sdmUoKTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICk7XG4gICAgfSk7XG4gIH0pO1xufTtcbiJdfQ==

@@ -6,4 +6,4 @@ "use strict";

});
exports.exactDevDeps = exports.devDeps = exports.deps = exports.default = void 0;
exports.siblingDep = siblingDep;
exports.default = exports.exactDevDeps = exports.devDeps = exports.deps = void 0;

@@ -58,2 +58,2 @@ require("source-map-support/register");

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcGkvaW5pdC1zY3JpcHRzL2luaXQtbnBtLnRzIl0sIm5hbWVzIjpbImQiLCJjb3JlUGFja2FnZSIsImZzIiwicmVhZEpzb25TeW5jIiwicGF0aCIsInJlc29sdmUiLCJfX2Rpcm5hbWUiLCJzaWJsaW5nRGVwIiwibmFtZSIsInZlcnNpb24iLCJkZXBzIiwiZGV2RGVwcyIsImV4YWN0RGV2RGVwcyIsImRpciIsIkRlcFR5cGUiLCJERVYiLCJwYWNrYWdlTmFtZSIsIkRlcFZlcnNpb25SZXN0cmljdGlvbiIsIkVYQUNUIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7O0FBQ0E7O0FBQ0E7O0FBQ0E7O0FBRUE7Ozs7Ozs7O0FBRUEsTUFBTUEsQ0FBQyxHQUFHLG9CQUFNLHlCQUFOLENBQVY7O0FBQ0EsTUFBTUMsV0FBVyxHQUFHQyxpQkFBR0MsWUFBSCxDQUFnQkMsY0FBS0MsT0FBTCxDQUFhQyxTQUFiLEVBQXdCLHVCQUF4QixDQUFoQixDQUFwQjs7QUFFTyxTQUFTQyxVQUFULENBQW9CQyxJQUFwQixFQUFrQztBQUN2QyxTQUFRLG1CQUFrQkEsSUFBSyxLQUFJUCxXQUFXLENBQUNRLE9BQVEsRUFBdkQ7QUFDRDs7QUFFTSxNQUFNQyxJQUFJLEdBQUcsQ0FBQywyQkFBRCxDQUFiOztBQUNBLE1BQU1DLE9BQU8sR0FBRyxDQUNyQkosVUFBVSxDQUFDLEtBQUQsQ0FEVyxFQUVyQkEsVUFBVSxDQUFDLGdCQUFELENBRlcsRUFHckJBLFVBQVUsQ0FBQyxXQUFELENBSFcsRUFJckJBLFVBQVUsQ0FBQyxXQUFELENBSlcs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XBMaXN0KGRpciwgZGV2RGVwcywgRGVwVHlwZS5ERVYpO1xuXG4gICAgZCgnaW5zdGFsbGluZyBleGFjdCBkZXZEZXBlbmRlbmNpZXMnKTtcbiAgICBmb3IgKGNvbnN0IHBhY2thZ2VOYW1lIG9mIGV4YWN0RGV2RGVwcykge1xuICAgICAgYXdhaXQgaW5zdGFsbERlcExpc3QoZGlyLCBbcGFja2FnZU5hbWVdLCBEZXBUeXBlLkRFViwgRGVwVmVyc2lvblJlc3RyaWN0aW9uLkVYQUNUKTtcbiAgICB9XG4gIH0pO1xufTtcbiJdfQ==

@@ -23,3 +23,3 @@ export interface InitOptions {

}
declare const _default: ({ dir, interactive, copyCIFiles, force, template, }: InitOptions) => Promise<void>;
declare const _default: ({ dir, interactive, copyCIFiles, force, template }: InitOptions) => Promise<void>;
export default _default;

@@ -89,2 +89,2 @@ "use strict";

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvaW5pdC50cyJdLCJuYW1lcyI6WyJkIiwidmFsaWRhdGVUZW1wbGF0ZSIsInRlbXBsYXRlIiwidGVtcGxhdGVNb2R1bGUiLCJyZXF1aXJlZEZvcmdlVmVyc2lvbiIsIkVycm9yIiwiZm9yZ2VWZXJzaW9uIiwicGF0aCIsImpvaW4iLCJfX2Rpcm5hbWUiLCJ2ZXJzaW9uIiwic2VtdmVyIiwic2F0aXNmaWVzIiwiZGlyIiwicHJvY2VzcyIsImN3ZCIsImludGVyYWN0aXZlIiwiY29weUNJRmlsZXMiLCJmb3JjZSIsImFzeW5jT3JhIiwiaW5pdGlhbGl6ZVRlbXBsYXRlIiwicGFja2FnZUpTT04iLCJmcyIsIndyaXRlSnNvbiIsInNwYWNlcyIsImRlcGVuZGVuY2llcyIsImRldkRlcGVuZGVuY2llcyIsIkRlcFR5cGUiLCJERVYiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUF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bml0TlBNKGRpcik7XG59O1xuIl19

@@ -1,2 +0,1 @@

import 'colors';
export interface Asset {

@@ -27,3 +26,3 @@ id: string;

}
declare const _default: ({ interactive, prerelease, repo, chooseAsset, }: InstallOptions) => Promise<void>;
declare const _default: ({ interactive, prerelease, repo, chooseAsset }: InstallOptions) => Promise<void>;
export default _default;

@@ -10,7 +10,5 @@ "use strict";

require("colors");
var _asyncOra = require("@electron-forge/async-ora");
var _installerBase = _interopRequireDefault(require("@electron-forge/installer-base"));
var _chalk = _interopRequireDefault(require("chalk"));

@@ -31,2 +29,4 @@ var _debug = _interopRequireDefault(require("debug"));

var _installerBase = _interopRequireDefault(require("@electron-forge/installer-base"));
var _installerDmg = _interopRequireDefault(require("@electron-forge/installer-dmg"));

@@ -48,2 +48,4 @@

// TODO: replace with a got-based module
// eslint-disable-next-line @typescript-eslint/no-var-requires
const nugget = require('nugget');

@@ -88,4 +90,6 @@

} catch (err) {// Ignore error
}
} // TODO: fix up the type so that errors are handled correctly
// eslint-disable-next-line @typescript-eslint/no-explicit-any
if (!releases || releases.message === 'Not Found' || !Array.isArray(releases)) {

@@ -134,6 +138,6 @@ throw new Error(`Failed to find releases for repository "${repo}". Please check the name and try again.`);

if (possibleAssets.length === 0) {
throw new Error(`Failed to find any installable assets for target platform: ${`${process.platform}`.cyan}`);
throw new Error(`Failed to find any installable assets for target platform: ${_chalk.default.cyan(`${process.platform}`)}`);
}
});
(0, _messages.info)(interactive, `Found latest release${prerelease ? ' (including prereleases)' : ''}: ${latestRelease.tag_name.cyan}`);
(0, _messages.info)(interactive, `Found latest release${prerelease ? ' (including prereleases)' : ''}: ${_chalk.default.cyan(latestRelease.tag_name)}`);
let targetAsset = possibleAssets[0];

@@ -193,2 +197,2 @@

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvaW5zdGFsbC50cyJdLCJuYW1lcyI6WyJudWdnZ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XG4gICAgfSA9IHtcbiAgICAgIHdpbjMyOiB7XG4gICAgICAgICcuZXhlJzogRXhlSW5zdGFsbGVyLFxuICAgICAgfSxcbiAgICAgIGRhcndpbjoge1xuICAgICAgICAnLnppcCc6IFppcEluc3RhbGxlcixcbiAgICAgICAgJy5kbWcnOiBETUdJbnN0YWxsZXIsXG4gICAgICB9LFxuICAgICAgbGludXg6IHtcbiAgICAgICAgJy5kZWInOiBEZWJJbnN0YWxsZXIsXG4gICAgICAgICcucnBtJzogUlBNSW5zdGFsbGVyLFxuICAgICAgfSxcbiAgICB9O1xuXG4gICAgY29uc3Qgc3VmZml4Rm5JZGVudCA9IE9iamVjdC5rZXlzKGluc3RhbGxBY3Rpb25zW3Byb2Nlc3MucGxhdGZvcm1dKS5maW5kKChzdWZmaXgpID0+IHRhcmdldEFzc2V0Lm5hbWUuZW5kc1dpdGgoc3VmZml4KSk7XG4gICAgaWYgKCFzdWZmaXhGbklkZW50KSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoYE5vIGluc3RhbGxlciB0byBoYW5kbGUgXCIke3RhcmdldEFzc2V0Lm5hbWV9XCJgKTtcbiAgICB9XG4gICAgY29uc3QgSW5zdGFsbGVyQ2xhc3MgPSBpbnN0YWxsQWN0aW9uc1twcm9jZXNzLnBsYXRmb3JtXVtzdWZmaXhGbklkZW50XTtcbiAgICBjb25zdCBpbnN0YWxsZXIgPSBuZXcgSW5zdGFsbGVyQ2xhc3MoKTtcbiAgICBhd2FpdCBpbnN0YWxsZXIuaW5zdGFsbCh7IGluc3RhbGxTcGlubmVyLCBmaWxlUGF0aDogZnVsbEZpbGVQYXRoIH0pO1xuICB9KTtcbn07XG4iXX0=

@@ -1,2 +0,1 @@

import 'colors';
export interface LintOptions {

@@ -6,3 +5,3 @@ dir?: string;

}
declare const _default: ({ dir, interactive, }: LintOptions) => Promise<void>;
declare const _default: ({ dir, interactive }: LintOptions) => Promise<void>;
export default _default;

@@ -10,4 +10,2 @@ "use strict";

require("colors");
var _asyncOra = require("@electron-forge/async-ora");

@@ -60,2 +58,2 @@

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvbGludC50cyJdLCJuYW1lcyI6WyJkIiwiZGlyIiwicHJvY2VzcyIsImN3ZCIsImludGVyYWN0aXZlIiwiYXN5bmNPcmEiLCJzdWNjZXNzIiwicmVzdWx0IiwibGludFNwaW5uZXIiLCJyZXNvbHZlZERpciIsIkVycm9yIiwic3RkaW8iLCJwbGF0Zm9ybSIsImVyciIsImZhaWwiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBOztBQUNBOztBQUNBOztBQUNBOztBQUVBOzs7O0FBRUEsTUFBTUEsQ0FBQyxHQUFHLG9CQUFNLHFCQUFOLENBQVY7O2VBT2UsT0FBTztBQUNwQkMsRUFBQUEsR0FBRyxHQUFHQyxPQUFPLENBQUNDLEdBQVIsRUFEYztBQUVwQkMsRUFBQUEsV0FBVyxHQUFHO0FBRk0sQ0FBUCxLQUdJO0FBQ2pCQyxxQkFBU0QsV0FBVCxHQUF1QkEsV0FBdkI7QUFFQSxNQUFJRSxPQUFPLEdBQUcsSUFBZDtBQUNBLE1BQUlDLE1BQU0sR0FBRyxJQUFiO0FBRUEsUUFBTSx3QkFBUyxxQkFBVCxFQUFnQyxNQUFPQyxXQUFQLElBQXVCO0FBQzNELFVBQU1DLFdBQVcsR0FBRyxNQUFNLHlCQUFXUixHQUFYLENBQTFCOztBQUNBLFFBQUksQ0FBQ1EsV0FBTCxFQUFrQjtBQUNoQixZQUFNLElBQUlDLEtBQUosQ0FBVSxnREFBVixDQUFOO0FBQ0Q7O0FBRURULElBQUFBLEdBQUcsR0FBR1EsV0FBTjtBQUVBVCxJQUFBQSxDQUFDLENBQUMsOEJBQUQsRUFBaUNDLEdBQWpDLENBQUQ7O0FBQ0EsUUFBSTtBQUNGLFlBQU0sK0JBQWUsQ0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mICghcmVzb2x2ZWREaXIpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcignRmFpbGVkIHRvIGxvY2F0ZSBsaW50YWJsZSBFbGVjdHJvbiBhcHBsaWNhdGlvbicpO1xuICAgIH1cblxuICAgIGRpciA9IHJlc29sdmVkRGlyO1xuXG4gICAgZCgnZXhlY3V0aW5nIFwicnVuIGxpbnRcIiBpbiBkaXI6JywgZGlyKTtcbiAgICB0cnkge1xuICAgICAgYXdhaXQgeWFybk9yTnBtU3Bhd24oWydydW4nLCAnbGludCddLCB7XG4gICAgICAgIHN0ZGlvOiBwcm9jZXNzLnBsYXRmb3JtID09PSAnd2luMzInID8gJ2luaGVyaXQnIDogJ3BpcGUnLFxuICAgICAgICBjd2Q6IGRpcixcbiAgICAgIH0pO1xuICAgIH0gY2F0Y2ggKGVycikge1xuICAgICAgbGludFNwaW5uZXIuZmFpbCgpO1xuICAgICAgc3VjY2VzcyA9IGZhbHNlO1xuICAgICAgcmVzdWx0ID0gZXJyO1xuICAgIH1cbiAgfSk7XG5cbiAgaWYgKCFzdWNjZXNzKSB7XG4gICAgdGhyb3cgcmVzdWx0O1xuICB9XG59O1xuIl19

@@ -1,2 +0,1 @@

import 'colors';
import { IForgeResolvableMaker, ForgeArch, ForgePlatform, ForgeMakeResult } from '@electron-forge/shared-types';

@@ -3,0 +2,0 @@ import MakerBase from '@electron-forge/maker-base';

@@ -10,6 +10,6 @@ "use strict";

require("colors");
var _asyncOra = require("@electron-forge/async-ora");
var _chalk = _interopRequireDefault(require("chalk"));
var _get = require("@electron/get");

@@ -47,2 +47,3 @@

// eslint-disable-next-line @typescript-eslint/no-explicit-any
class MakerImpl extends _makerBase.default {

@@ -57,4 +58,5 @@ constructor(...args) {

}
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
function generateTargets(forgeConfig, overrideTargets) {

@@ -103,4 +105,5 @@ if (overrideTargets) {

throw new Error(`'${actualTargetPlatform}' is an invalid platform. Choices are 'darwin', 'mas', 'win32' or 'linux'`);
}
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
const makers = {};

@@ -111,6 +114,9 @@ let targets = generateTargets(forgeConfig, overrideTargets);

for (const target of targets) {
/* eslint-disable @typescript-eslint/no-explicit-any */
let maker; // eslint-disable-next-line no-underscore-dangle
if (target.__isElectronForgeMaker) {
maker = target; // eslint-disable-next-line no-continue
maker = target;
/* eslint-enable @typescript-eslint/no-explicit-any */
// eslint-disable-next-line no-continue

@@ -139,6 +145,6 @@ if (!maker.platforms.includes(actualTargetPlatform)) continue;

if (!maker.isSupportedOnCurrentPlatform) {
throw new Error([`Maker for target ${maker.name} is incompatible with this version of `, 'electron-forge, please upgrade or contact the maintainer ', '(needs to implement \'isSupportedOnCurrentPlatform)\')'].join(''));
throw new Error([`Maker for target ${maker.name} is incompatible with this version of `, 'electron-forge, please upgrade or contact the maintainer ', "(needs to implement 'isSupportedOnCurrentPlatform)')"].join(''));
}
if (!(await maker.isSupportedOnCurrentPlatform())) {
if (!maker.isSupportedOnCurrentPlatform()) {
throw new Error([`Cannot make for ${platform} and target ${maker.name}: the maker declared `, `that it cannot run on ${process.platform}`].join(''));

@@ -153,3 +159,3 @@ }

if (!skipPackage) {
(0, _messages.info)(interactive, 'We need to package your application before we can make it'.green);
(0, _messages.info)(interactive, _chalk.default.green('We need to package your application before we can make it'));
await (0, _package.default)({

@@ -163,3 +169,3 @@ dir,

} else {
(0, _messages.warn)(interactive, 'WARNING: Skipping the packaging step, this could result in an out of date build'.red);
(0, _messages.warn)(interactive, _chalk.default.red('WARNING: Skipping the packaging step, this could result in an out of date build'));
}

@@ -173,3 +179,3 @@

(0, _messages.info)(interactive, `Making for the following targets: ${`${targets.map((t, i) => makers[i].name).join(', ')}`.cyan}`);
(0, _messages.info)(interactive, `Making for the following targets: ${_chalk.default.cyan(`${targets.map((_t, i) => makers[i].name).join(', ')}`)}`);
const packageJSON = await (0, _readPackageJson.readMutatedPackageJson)(dir, forgeConfig);

@@ -193,3 +199,3 @@ const appName = forgeConfig.packagerConfig.name || packageJSON.productName || packageJSON.name;

await (0, _asyncOra.asyncOra)(`Making for target: ${maker.name.green} - On platform: ${actualTargetPlatform.cyan} - For arch: ${targetArch.cyan}`, async () => {
await (0, _asyncOra.asyncOra)(`Making for target: ${_chalk.default.green(maker.name)} - On platform: ${_chalk.default.cyan(actualTargetPlatform)} - For arch: ${_chalk.default.cyan(targetArch)}`, async () => {
try {

@@ -248,2 +254,2 @@ /**

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvbWFrZS50cyJdLCJuYW1lcyI6WyJNYWtlckltcGwiLCJNYWtlckJhc2UiLCJnZW5lcmF0ZVRhcmdldHMiLCJmb3JnZUNvbmZpZyIsIm92ZXJyaWRlVGFyZ2V0cyIsIm1hcCIsInRhcmdldCIsIm1ha2VycyIsImZpbmQiLCJtYWtlciIsIm5hbWUiLCJkaXIiLCJwcm9jZXNzIiwiY3dkIiwiaW50ZXJhY3RpdmUiLCJza2lwUGFja2FnZSIsImFyY2giLCJwbGF0Zm9ybSIsIm91dERpciIsImFzeW5jT3JhIiwicmVzb2x2ZWREaXIiLCJFcnJvciIsImFjdHVhbE91dERpciIsImFjdHVhbFRhcmdldFBsYXRmb3JtIiwiaW5jbHVkZXMiLCJ0YXJnZXRzIiwidGFyZ2V0SWQiLCJfX2lzRWxlY3Ryb25Gb3JnZU1ha2VyIiwicGxhdGZvcm1zIiwicmVzb2x2YWJsZVRhcmdldCIsIkpTT04iLCJzdHJpbmdpZnkiLCJNYWtlckNsYXNzIiwiY29uZmlnIiwidW5kZWZpbmVkIiwiaXNTdXBwb3J0ZWRPbkN1cnJlbnRQbGF0Zm9ybSIsImpvaW4iLCJlbnN1cmVFeHRlcm5hbEJpbmFyaWVzRXhpc3QiLCJncmVlbiIsInJlZCIsImZpbHRlciIsIl8iLCJpIiwibGVuZ3RoIiwidCIsImN5YW4iLCJwYWNr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cmdldFBsYXRmb3JtOiBhY3R1YWxUYXJnZXRQbGF0Zm9ybSxcbiAgICAgICAgICB9KTtcblxuICAgICAgICAgIG91dHB1dHMucHVzaCh7XG4gICAgICAgICAgICBhcnRpZmFjdHMsXG4gICAgICAgICAgICBwYWNrYWdlSlNPTixcbiAgICAgICAgICAgIHBsYXRmb3JtOiBhY3R1YWxUYXJnZXRQbGF0Zm9ybSxcbiAgICAgICAgICAgIGFyY2g6IHRhcmdldEFyY2gsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0gY2F0Y2ggKGVycikge1xuICAgICAgICAgIGlmIChlcnIgaW5zdGFuY2VvZiBFcnJvcikge1xuICAgICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIG5vLXRocm93LWxpdGVyYWxcbiAgICAgICAgICAgIHRocm93IHtcbiAgICAgICAgICAgICAgbWVzc2FnZTogYEFuIGVycm9yIG9jY3VyZWQgd2hpbGUgbWFraW5nIGZvciB0YXJnZXQ6ICR7bWFrZXIubmFtZX1gLFxuICAgICAgICAgICAgICBzdGFjazogYCR7ZXJyLm1lc3NhZ2V9XFxuJHtlcnIuc3RhY2t9YCxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfSBlbHNlIGlmIChlcnIpIHtcbiAgICAgICAgICAgIHRocm93IGVycjtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBBbiB1bmtub3duIGVycm9yIG9jY3VyZWQgd2hpbGUgbWFraW5nIGZvciB0YXJnZXQ6ICR7bWFrZXIubmFtZX1gKTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH0pO1xuICAgIH1cbiAgfVxuXG4gIC8vIElmIHRoZSBwb3N0TWFrZSBob29rcyBtb2RpZmllcyB0aGUgbG9jYXRpb25zIC8gbmFtZXMgb2YgdGhlIG91dHB1dHMgaXQgbXVzdCByZXR1cm5cbiAgLy8gdGhlIG5ldyBsb2NhdGlvb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MgYSBtZXRob2RcbiAgICAgICAgICAgICAqICAgKiBDaGFuZ2UgdGhlIGVudGlyZSBBUEkgb2YgbWFrZXIgZnJvbSBhIHNpbmdsZSBjb25zdHJ1Y3RvciB0b1xuICAgICAgICAgICAgICogICAgIHByb3ZpZGluZyBhIE1ha2VyRmFjdG9yeVxuICAgICAgICAgICAgICovXG4gICAgICAgICAgICBtYWtlci5wcmVwYXJlQ29uZmlnKHRhcmdldEFyY2gpO1xuICAgICAgICAgICAgY29uc3QgYXJ0aWZhY3RzID0gYXdhaXQgbWFrZXIubWFrZSh7XG4gICAgICAgICAgICAgIGFwcE5hbWUsXG4gICAgICAgICAgICAgIGZvcmdlQ29uZmlnLFxuICAgICAgICAgICAgICBwYWNrYWdlSlNPTixcbiAgICAgICAgICAgICAgdGFyZ2V0QXJjaCxcbiAgICAgICAgICAgICAgZGlyOiBwYWNrYWdlRGlyLFxuICAgICAgICAgICAgICBtYWtlRGlyOiBwYXRoLnJlc29sdmUoYWN0dWFsT3V0RGlyLCAnbWFrZScpLFxuICAgICAgICAgICAgICB0YXJnZXRQbGF0Zm9ybTogYWN0dWFsVGFyZ2V0UGxhdGZvcm0sXG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgb3V0cHV0cy5wdXNoKHtcbiAgICAgICAgICAgICAgYXJ0aWZhY3RzLFxuICAgICAgICAgICAgICBwYWNrYWdlSlNPTixcbiAgICAgICAgICAgICAgcGxhdGZvcm06IGFjdHVhbFRhcmdldFBsYXRmb3JtLFxuICAgICAgICAgICAgICBhcmNoOiB0YXJnZXRBcmNoLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfSBjYXRjaCAoZXJyKSB7XG4gICAgICAgICAgICBpZiAoZXJyIGluc3RhbmNlb2YgRXJyb3IpIHtcbiAgICAgICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIG5vLXRocm93LWxpdGVyYWxcbiAgICAgICAgICAgICAgdGhyb3cge1xuICAgICAgICAgICAgICAgIG1lc3NhZ2U6IGBBbiBlcnJvciBvY2N1cmVkIHdoaWxlIG1ha2luZyBmb3IgdGFyZ2V0OiAke21ha2VyLm5hbWV9YCxcbiAgICAgICAgICAgICAgICBzdGFjazogYCR7ZXJyLm1lc3NhZ2V9XFxuJHtlcnIuc3RhY2t9YCxcbiAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoZXJyKSB7XG4gICAgICAgICAgICAgIHRocm93IGVycjtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgQW4gdW5rbm93biBlcnJvciBvY2N1cmVkIHdoaWxlIG1ha2luZyBmb3IgdGFyZ2V0OiAke21ha2VyLm5hbWV9YCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICApO1xuICAgIH1cbiAgfVxuXG4gIC8vIElmIHRoZSBwb3N0TWFrZSBob29rcyBtb2RpZmllcyB0aGUgbG9jYXRpb25zIC8gbmFtZXMgb2YgdGhlIG91dHB1dHMgaXQgbXVzdCByZXR1cm5cbiAgLy8gdGhlIG5ldyBsb2NhdGlvbnMgc28gdGhhdCB0aGUgcHVibGlzaCBzdGVwIGtub3dzIHdoZXJlIHRvIGxvb2tcbiAgcmV0dXJuIHJ1bk11dGF0aW5nSG9vayhmb3JnZUNvbmZpZywgJ3Bvc3RNYWtlJywgb3V0cHV0cyk7XG59O1xuIl19

@@ -1,2 +0,1 @@

import 'colors';
import { ForgeArch, ForgePlatform } from '@electron-forge/shared-types';

@@ -3,0 +2,0 @@ export interface PackageOptions {

@@ -10,6 +10,6 @@ "use strict";

require("colors");
var _asyncOra = require("@electron-forge/async-ora");
var _chalk = _interopRequireDefault(require("chalk"));
var _debug = _interopRequireDefault(require("debug"));

@@ -50,6 +50,6 @@

const d = (0, _debug.default)('electron-forge:packager');
/**
* Resolves hooks if they are a path to a file (instead of a `Function`).
*/
function resolveHooks(hooks, dir) {

@@ -62,2 +62,3 @@ if (hooks) {

}
/**

@@ -67,11 +68,6 @@ * Runs given hooks sequentially by mapping them to promises and iterating

*/
function sequentialHooks(hooks) {
return [async (...args) => {
const done = args[args.length - 1];
const passedArgs = args.splice(0, args.length - 1);
return [async (buildPath, electronVersion, platform, arch, done) => {
for (const hook of hooks) {
await (0, _util.promisify)(hook)(...passedArgs);
await (0, _util.promisify)(hook)(buildPath, electronVersion, platform, arch);
}

@@ -91,3 +87,3 @@

const ora = interactive ? _asyncOra.ora : _asyncOra.fakeOra;
let prepareSpinner = ora(`Preparing to Package Application for arch: ${(arch === 'all' ? 'ia32' : arch).cyan}`).start();
let prepareSpinner = ora(`Preparing to Package Application for arch: ${_chalk.default.cyan(arch === 'all' ? 'ia32' : arch)}`).start();
let prepareCounter = 0;

@@ -115,3 +111,3 @@ const resolvedDir = await (0, _resolveDir.default)(dir);

prepareCounter += 1;
prepareSpinner = ora(`Preparing to Package Application for arch: ${(prepareCounter === 2 ? 'armv7l' : 'x64').cyan}`).start();
prepareSpinner = ora(`Preparing to Package Application for arch: ${_chalk.default.cyan(prepareCounter === 2 ? 'armv7l' : 'x64')}`).start();
}

@@ -184,3 +180,3 @@

// eslint-disable-next-line max-len
(0, _messages.warn)(interactive, 'Please set "version" or "config.forge.packagerConfig.appVersion" in your application\'s package.json so auto-updates work properly'.yellow);
(0, _messages.warn)(interactive, _chalk.default.yellow('Please set "version" or "config.forge.packagerConfig.appVersion" in your application\'s package.json so auto-updates work properly'));
}

@@ -193,3 +189,3 @@

await (0, _hook.runHook)(forgeConfig, 'generateAssets', platform, arch);
await (0, _hook.runHook)(forgeConfig, 'prePackage');
await (0, _hook.runHook)(forgeConfig, 'prePackage', platform, arch);
d('packaging with options', packageOpts);

@@ -202,3 +198,4 @@ const outputPaths = await (0, _electronPackager.default)(packageOpts);

spinner: packagerSpinner
});
}); // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (packagerSpinner) packagerSpinner.succeed();

@@ -208,2 +205,2 @@ };

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvcGFja2FnZS50cyJdLCJuYW1lcyI6WyJkIiwicmVzb2x2ZUhvb2tzIiwiaG9va3MiLCJkaXIiLCJtYXAiLCJob29rIiwic2VxdWVudGlhbEhvb2tzIiwiYXJncyIsImRvbmUiLCJsZW5ndGgiLCJwYXNzZWRBcmdzIiwic3BsaWNlIiwicHJvY2VzcyIsImN3ZCIsImludGVyYWN0aXZlIiwiYXJjaCIsInBsYXRmb3JtIiwib3V0RGlyIiwib3JhIiwicmVhbE9yYSIsImZha2VPcmEiLCJwcmVwYXJlU3Bpbm5lciIsImN5YW4iLCJzdGFydCIsInByZXBhcmVDb3VudGVyIiwicmVzb2x2ZWREaXIiLCJFcnJvciIsImZvcmdlQ29uZmlnIiwicGFja2FnZUpTT04iLCJtYWluIiwiY2FsY3VsYXRlZE91dERpciIsInBhY2thZ2VyU3Bpbm5lciIsInBydW5lRW5hYmxlZCIsInBhY2thZ2VyQ29uZmlnIiwicHJ1bmUiLCJhZnRlckNvcHlIb29rcyIsImJ1aWxkUGF0aCIsImVsZWN0cm9uVmVyc2lvbiIsInBQbGF0Zm9ybSIsInBBcmNoIiwic3VjY2VlZCIsImJpbnMiLCJwYXRoIiwiam9pbiIsImJpbiIsImZzIiwicmVtb3ZlIiwiZWxlY3Ryb25SZWJ1aWxkQ29uZmlnIiwicHVzaCIsImNvcGllZFBhY2thZ2VKU09OIiwiY29uZmlnIiwiZm9yZ2UiLCJ3cml0ZUpzb24iLCJyZXNvbHZlIiwic3BhY2VzIiwiYWZ0ZXJDb3B5IiwiYWZ0ZXJQcnVuZUhvb2tzIiwiYWZ0ZXJQcnVuZSIsImFmdGVyRXh0cmFjdEhvb2tzIiwiYWZ0ZXJFeHRyYWN0IiwicGFja2FnZU9wdHMiLCJhc2FyIiwib3ZlcndyaXRlIiwib3V0I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m5lcjogcGFja2FnZXJTcGlubmVyLFxuICB9KTtcblxuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLW5vbi1udWxsLWFzc2VydGlvblxuICBpZiAocGFja2FnZXJTcGlubmVyKSBwYWNrYWdlclNwaW5uZXIhLnN1Y2NlZWQoKTtcbn07XG4iXX0=

@@ -1,2 +0,1 @@

import 'colors';
import { ForgeConfigPublisher, ForgeMakeResult } from '@electron-forge/shared-types';

@@ -3,0 +2,0 @@ import { MakeOptions } from './make';

@@ -10,6 +10,6 @@ "use strict";

require("colors");
var _asyncOra = require("@electron-forge/async-ora");
var _chalk = _interopRequireDefault(require("chalk"));
var _debug = _interopRequireDefault(require("debug"));

@@ -143,10 +143,13 @@

for (const publishTarget of publishTargets) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let publisher; // eslint-disable-next-line no-underscore-dangle
if (publishTarget.__isElectronForgePublisher) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
publisher = publishTarget;
} else {
const resolvablePublishTarget = publishTarget;
const resolvablePublishTarget = publishTarget; // eslint-disable-next-line @typescript-eslint/no-explicit-any
let PublisherClass;
await (0, _asyncOra.asyncOra)(`Resolving publish target: ${`${resolvablePublishTarget.name}`.cyan}`, async () => {
await (0, _asyncOra.asyncOra)(`Resolving publish target: ${_chalk.default.cyan(resolvablePublishTarget.name)}`, async () => {
// eslint-disable-line no-loop-func

@@ -172,2 +175,2 @@ PublisherClass = (0, _requireSearch.default)(dir, [resolvablePublishTarget.name]);

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvcHVibGlzaC50cyJdLCJuYW1lcyI6WyJkIiwicHVibGlzaCIsImRpciIsInByb2Nlc3MiLCJjd2QiLCJpbnRlcmFjdGl2ZSIsIm1ha2VPcHRpb25zIiwicHVibGlzaFRhcmdldHMi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gfSk7XG5cbiAgICAgIHB1Ymxpc2hlciA9IG5ldyBQdWJsaXNoZXJDbGFzcyhyZXNvbHZhYmxlUHVibGlzaFRhcmdldC5jb25maWcgfHwge30sIHJlc29sdmFibGVQdWJsaXNoVGFyZ2V0LnBsYXRmb3Jtcyk7XG4gICAgfVxuXG4gICAgYXdhaXQgcHVibGlzaGVyLnB1Ymxpc2goe1xuICAgICAgZGlyLFxuICAgICAgbWFrZVJlc3VsdHMsXG4gICAgICBmb3JnZUNvbmZpZyxcbiAgICB9KTtcbiAgfVxufTtcblxuZXhwb3J0IGRlZmF1bHQgcHVibGlzaDtcbiJdfQ==

@@ -1,2 +0,1 @@

import 'colors';
import { ElectronProcess, StartOptions } from '@electron-forge/shared-types';

@@ -3,0 +2,0 @@ export { StartOptions };

@@ -16,6 +16,6 @@ "use strict";

require("colors");
var _asyncOra = require("@electron-forge/async-ora");
var _chalk = _interopRequireDefault(require("chalk"));
var _debug = _interopRequireDefault(require("debug"));

@@ -128,3 +128,4 @@

await (0, _asyncOra.asyncOra)('Launching Application', async () => {
spawned = (0, _child_process.spawn)(electronExecPath, prefixArgs.concat([appPath]).concat(args), spawnOpts);
spawned = (0, _child_process.spawn)(electronExecPath, // eslint-disable-line @typescript-eslint/no-non-null-assertion
prefixArgs.concat([appPath]).concat(args), spawnOpts);
});

@@ -159,3 +160,3 @@ await (0, _hook.runHook)(forgeConfig, 'postStart', spawned);

// eslint-disable-next-line no-console
console.info('\nRestarting App\n'.cyan);
console.info(_chalk.default.cyan('\nRestarting App\n'));
lastSpawned.restarted = true;

@@ -172,2 +173,2 @@ lastSpawned.kill('SIGTERM');

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvc3RhcnQudHMiXSwibmFtZXMiOlsiZCIsImRpciIsInByb2Nlc3MiLCJjd2QiLCJhcHBQYXRoIiwiaW50ZXJhY3RpdmUiLCJlb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bn07XG4iXX0=

@@ -1,5 +0,5 @@

import 'colors';
declare const _default: (what: string) => {
declare type Deprecation = {
replaceWith: (replacement: string) => void;
};
declare const _default: (what: string) => Deprecation;
export default _default;

@@ -10,3 +10,3 @@ "use strict";

require("colors");
var _chalk = _interopRequireDefault(require("chalk"));

@@ -20,3 +20,3 @@ var _logSymbols = _interopRequireDefault(require("log-symbols"));

replaceWith: replacement => {
console.warn(_logSymbols.default.warning, `WARNING: ${what} is deprecated, please use ${replacement} instead`.yellow);
console.warn(_logSymbols.default.warning, _chalk.default.yellow(`WARNING: ${what} is deprecated, please use ${replacement} instead`));
}

@@ -26,2 +26,2 @@ });

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2RlcHJlY2F0ZS50cyJdLCJuYW1lcyI6WyJ3aGF0IiwicmVwbGFjZVdpdGgiLCJyZXBsYWNlbWVudCIsImNvbnNvbGUiLCJ3YXJuIiwibG9nU3ltYm9scyIsIndhcm5pbmciLCJ5ZWxsb3ciXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUNBOztBQUNBOzs7O0FBRkE7ZUFJZ0JBLElBQUQsS0FBbUI7QUFDaENDLEVBQUFBLFdBQVcsRUFBR0MsV0FBRCxJQUF5QjtBQUNwQ0MsSUFBQUEsT0FBTyxDQUFDQyxJQUFSLENBQWFDLG9CQUFXQyxPQUF4QixFQUFrQyxZQUFXTixJQUFLLDhCQUE2QkUsV0FBWSxVQUExRCxDQUFvRUssTUFBckc7QUFDRDtBQUgrQixDQUFuQixDIiwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50IFwibm8tY29uc29sZVwiOiBcIm9mZlwiICovXG5pbXBvcnQgJ2NvbG9ycyc7XG5pbXBvcnQgbG9nU3ltYm9scyBmcm9tICdsb2ctc3ltYm9scyc7XG5cbmV4cG9ydCBkZWZhdWx0ICh3aGF0OiBzdHJpbmc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2hhdDogc3RyaW5nKTogRGVwcmVjYXRpb24gPT4gKHtcbiAgcmVwbGFjZVdpdGg6IChyZXBsYWNlbWVudDogc3RyaW5nKTogdm9pZCA9PiB7XG4gICAgY29uc29sZS53YXJuKGxvZ1N5bWJvbHMud2FybmluZywgY2hhbGsueWVsbG93KGBXQVJOSU5HOiAke3doYXR9IGlzIGRlcHJlY2F0ZWQsIHBsZWFzZSB1c2UgJHtyZXBsYWNlbWVudH0gaW5zdGVhZGApKTtcbiAgfSxcbn0pO1xuIl19

@@ -6,7 +6,9 @@ "use strict";

});
exports.default = locateElectronExecutable;
exports.pluginCompileExists = pluginCompileExists;
exports.default = locateElectronExecutable;
require("source-map-support/register");
var _chalk = _interopRequireDefault(require("chalk"));
var _logSymbols = _interopRequireDefault(require("log-symbols"));

@@ -35,3 +37,3 @@

// eslint-disable-next-line no-console
console.warn(_logSymbols.default.warning, `${pluginCompileName} was detected in dependencies, it should be in devDependencies`.yellow);
console.warn(_logSymbols.default.warning, _chalk.default.yellow(`${pluginCompileName} was detected in dependencies, it should be in devDependencies`));
return true;

@@ -50,5 +52,5 @@ }

// eslint-disable-next-line no-console
console.warn(_logSymbols.default.warning, 'WARNING: found electron-prebuilt-compile without the Electron Forge compile plugin. Please remove the deprecated electron-prebuilt-compile from your devDependencies.'.yellow);
console.warn(_logSymbols.default.warning, _chalk.default.yellow('WARNING: found electron-prebuilt-compile without the Electron Forge compile plugin. Please remove the deprecated electron-prebuilt-compile from your devDependencies.'));
electronModulePath = undefined;
} // eslint-disable-next-line import/no-dynamic-require, global-require
} // eslint-disable-next-line @typescript-eslint/no-var-requires, import/no-dynamic-require, global-require

@@ -67,2 +69,2 @@

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2VsZWN0cm9uLWV4ZWN1dGFibGUudHMiXSwibmFtZXMiOlsicGx1Z2luQ29tcGlsZUV4aXN0cyIsInBhY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ZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tdmFyLXJlcXVpcmVzLCBpbXBvcnQvbm8tZHluYW1pYy1yZXF1aXJlLCBnbG9iYWwtcmVxdWlyZVxuICBsZXQgZWxlY3Ryb25FeGVjUGF0aCA9IHJlcXVpcmUoZWxlY3Ryb25Nb2R1bGVQYXRoIHx8IHBhdGgucmVzb2x2ZShkaXIsICdub2RlX21vZHVsZXMvZWxlY3Ryb24nKSk7XG5cbiAgaWYgKHR5cGVvZiBlbGVjdHJvbkV4ZWNQYXRoICE9PSAnc3RyaW5nJykge1xuICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby1jb25zb2xlXG4gICAgY29uc29sZS53YXJuKGxvZ1N5bWJvbHMud2FybmluZywgJ1JldHVybmVkIEVsZWN0cm9uIGV4ZWN1dGFibGUgcGF0aCBpcyBub3QgYSBzdHJpbmcsIGRlZmF1bHRpbmcgdG8gYSBoYXJkY29kZWQgbG9jYXRpb24uIFZhbHVlOicsIGVsZWN0cm9uRXhlY1BhdGgpO1xuICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBpbXBvcnQvbm8tZHluYW1pYy1yZXF1aXJlLCBnbG9iYWwtcmVxdWlyZVxuICAgIGVsZWN0cm9uRXhlY1BhdGggPSByZXF1aXJlKHBhdGgucmVzb2x2ZShkaXIsICdub2RlX21vZHVsZXMvZWxlY3Ryb24nKSk7XG4gIH1cblxuICByZXR1cm4gZWxlY3Ryb25FeGVjUGF0aDtcbn1cbiJdfQ==

@@ -0,6 +1,11 @@

declare type PackageJSONWithDeps = {
devDependencies?: Record<string, string>;
dependencies?: Record<string, string>;
};
export declare class PackageNotFoundError extends Error {
constructor(packageName: string, dir: string);
}
export declare function getElectronModulePath(dir: string, packageJSON: any): Promise<string | undefined>;
export declare function getElectronVersion(dir: string, packageJSON: any): Promise<string>;
export declare function updateElectronDependency(packageJSON: any, dev: string[], exact: string[]): [string[], string[]];
export declare function getElectronModulePath(dir: string, packageJSON: PackageJSONWithDeps): Promise<string | undefined>;
export declare function getElectronVersion(dir: string, packageJSON: PackageJSONWithDeps): Promise<string>;
export declare function updateElectronDependency(packageJSON: PackageJSONWithDeps, dev: string[], exact: string[]): [string[], string[]];
export {};

@@ -6,6 +6,6 @@ "use strict";

});
exports.PackageNotFoundError = void 0;
exports.getElectronModulePath = getElectronModulePath;
exports.getElectronVersion = getElectronVersion;
exports.updateElectronDependency = updateElectronDependency;
exports.PackageNotFoundError = void 0;

@@ -77,4 +77,6 @@ require("source-map-support/register");

throw new Error('package.json for app does not have any devDependencies');
}
} // Why: checked above
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const packageName = electronPackageNames.find(pkg => packageJSON.devDependencies[pkg]);

@@ -117,3 +119,5 @@

async function getElectronVersion(dir, packageJSON) {
const packageName = getElectronModuleName(packageJSON);
const packageName = getElectronModuleName(packageJSON); // Why: checked in getElectronModuleName
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
let version = packageJSON.devDependencies[packageName];

@@ -139,7 +143,8 @@

const alteredDev = [].concat(dev);
let alteredExact = [].concat(exact);
let alteredExact = [].concat(exact); // Why: checked in getElectronModuleName
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (Object.keys(packageJSON.devDependencies).find(findElectronDep)) {
alteredExact = alteredExact.filter(dep => dep !== 'electron');
} else {
} else if (packageJSON.dependencies) {
const electronKey = Object.keys(packageJSON.dependencies).find(findElectronDep);

@@ -157,2 +162,2 @@

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2VsZWN0cm9uLXZlcnNpb24udHMiXSwibmFtZXMiOlsiZCIsImVsZWN0cm9uUGFja2FnZU5hbWVzIiwiZmluZEVsZWN0cm9uRGVwIiwiZGVwIiwiaW5jbHVkZXMiLCJmaW5kQW5jZXN0b3JOb2RlTW9kdWxlc1BhdGgiLCJkaXIiLCJwYWNrYW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W5kKGZpbmRFbGVjdHJvbkRlcCk7XG4gICAgaWYgKGVsZWN0cm9uS2V5KSB7XG4gICAgICBhbHRlcmVkRXhhY3QgPSBhbHRlcmVkRXhhY3QuZmlsdGVyKChkZXApID0+IGRlcCAhPT0gJ2VsZWN0cm9uJyk7XG4gICAgICBkKGBNb3ZpbmcgJHtlbGVjdHJvbktleX0gZnJvbSBkZXBlbmRlbmNpZXMgdG8gZGV2RGVwZW5kZW5jaWVzYCk7XG4gICAgICBhbHRlcmVkRGV2LnB1c2goYCR7ZWxlY3Ryb25LZXl9QCR7cGFja2FnZUpTT04uZGVwZW5kZW5jaWVzW2VsZWN0cm9uS2V5XX1gKTtcbiAgICAgIGRlbGV0ZSBwYWNrYWdlSlNPTi5kZXBlbmRlbmNpZXNbZWxlY3Ryb25LZXldO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBbYWx0ZXJlZERldiwgYWx0ZXJlZEV4YWN0XTtcbn1cbiJdfQ==

@@ -1,14 +0,20 @@

import { ForgeConfig } from '@electron-forge/shared-types';
import { ForgeConfig, IForgeResolvableMaker } from '@electron-forge/shared-types';
export declare type PackageJSONForInitialForgeConfig = {
name?: string;
config: {
forge: {
makers: Pick<IForgeResolvableMaker, 'name' | 'config'>[];
};
};
};
/**
* Sets sensible defaults for the `config.forge` object.
*/
export declare function setInitialForgeConfig(packageJSON: any): void;
export declare function fromBuildIdentifier<T>(map: {
[key: string]: T | undefined;
}): {
map: {
[key: string]: T | undefined;
};
__isMagicBuildIdentifierMap: boolean;
export declare function setInitialForgeConfig(packageJSON: PackageJSONForInitialForgeConfig): void;
export declare type BuildIdentifierMap<T> = Record<string, T | undefined>;
export declare type BuildIdentifierConfig<T> = {
map: BuildIdentifierMap<T>;
__isMagicBuildIdentifierMap: true;
};
export declare function fromBuildIdentifier<T>(map: BuildIdentifierMap<T>): BuildIdentifierConfig<T>;
export declare function forgeConfigIsValidFilePath(dir: string, forgeConfig: string | ForgeConfig): Promise<boolean>;

@@ -15,0 +21,0 @@ export declare function renderConfigTemplate(dir: string, templateObj: any, obj: any): void;

@@ -6,7 +6,7 @@ "use strict";

});
exports.setInitialForgeConfig = setInitialForgeConfig;
exports.default = void 0;
exports.forgeConfigIsValidFilePath = forgeConfigIsValidFilePath;
exports.fromBuildIdentifier = fromBuildIdentifier;
exports.forgeConfigIsValidFilePath = forgeConfigIsValidFilePath;
exports.renderConfigTemplate = renderConfigTemplate;
exports.default = void 0;
exports.setInitialForgeConfig = setInitialForgeConfig;

@@ -29,17 +29,18 @@ require("source-map-support/register");

const underscoreCase = str => str.replace(/(.)([A-Z][a-z]+)/g, '$1_$2').replace(/([a-z0-9])([A-Z])/g, '$1_$2').toUpperCase(); // eslint-disable-next-line arrow-parens
const underscoreCase = str => str.replace(/(.)([A-Z][a-z]+)/g, '$1_$2').replace(/([a-z0-9])([A-Z])/g, '$1_$2').toUpperCase();
const proxify = (buildIdentifier, object, envPrefix) => {
/* eslint-disable @typescript-eslint/no-explicit-any */
// eslint-disable-next-line arrow-parens
const proxify = (buildIdentifier, proxifiedObject, envPrefix) => {
let newObject = {};
if (Array.isArray(object)) {
if (Array.isArray(proxifiedObject)) {
newObject = [];
}
for (const [key, val] of Object.entries(object)) {
for (const [key, val] of Object.entries(proxifiedObject)) {
if (typeof val === 'object' && key !== 'pluginInterface' && !(val instanceof RegExp)) {
newObject[key] = proxify(buildIdentifier, object[key], `${envPrefix}_${underscoreCase(key)}`);
newObject[key] = proxify(buildIdentifier, proxifiedObject[key], `${envPrefix}_${underscoreCase(key)}`);
} else {
newObject[key] = object[key];
newObject[key] = proxifiedObject[key];
}

@@ -87,2 +88,4 @@ }

};
/* eslint-enable @typescript-eslint/no-explicit-any */
/**

@@ -94,2 +97,3 @@ * Sets sensible defaults for the `config.forge` object.

function setInitialForgeConfig(packageJSON) {
// eslint-disable-line @typescript-eslint/no-explicit-any
const {

@@ -110,4 +114,5 @@ name = ''

return typeof forgeConfig === 'string' && ((await _fsExtra.default.pathExists(_path.default.resolve(dir, forgeConfig))) || _fsExtra.default.pathExists(_path.default.resolve(dir, `${forgeConfig}.js`)));
}
} // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
function renderConfigTemplate(dir, templateObj, obj) {

@@ -142,3 +147,3 @@ for (const [key, value] of Object.entries(obj)) {

try {
// eslint-disable-next-line global-require, import/no-dynamic-require
// eslint-disable-next-line @typescript-eslint/no-var-requires, global-require, import/no-dynamic-require
forgeConfig = require(_path.default.resolve(dir, forgeConfig));

@@ -174,2 +179,2 @@ } catch (err) {

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2ZvcmdlLWNvbmZpZy50cyJdLCJuYW1lcyI6WyJ1bmRlcnNjb3JlQ2FzZSIsInN0ciIsInJlcGxhY2UiLCJ0b1VwcGVyQ2FzZSIsInByb3hpZnkiLCJidWlsZElkZW50aWZpZXIiLCJvYmplY3QiLCJlbnZQcmVmaXgiLCJuZXdPYmplY3QiLCJBcnJheSIsImlzQXJyYXkiLCJrZXkiLCJ2YWwiLCJPYmplY3QiLCJlbnRyaWVzIiwiUmVnRXhwIiwiUHJveHkiLCJnZXQiLCJ0YXJnZXQiLCJuYW1lIiwicmVjZWl2ZXIiLCJoYXNPd25Qcm9wZXJ0eSIsImVudlZhbHVlIiwicHJvY2VzcyIsImVudiIsInZhbHVlIiwiUmVmbGVjdCIsIl9faXNNYWdpY0J1aWxkSWRlbnRpZmllck1hcCIsImlkZW50aWZpZXIiLCJtYXAiLCJnZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IiLCJ3cml0YWJsZSIsImVudW1lcmFibGUiLCJjb25maWd1cmFibGUiLCJ1bmRlZmluZWQiLCJzZXRJbml0aWFsRm9yZ2VDb25maWciLCJwYWNrYWdlSlNPTiIsImNvbmZpZyIsImZvcmdlIiwibWFrZXJzIiwiZnJvbUJ1aWxkSWRlbnR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ByZW5kZXJDb25maWdUZW1wbGF0ZShkaXIsIHRlbXBsYXRlT2JqLCBmb3JnZUNvbmZpZyk7XG5cbiAgZm9yZ2VDb25maWcucGx1Z2luSW50ZXJmYWNlID0gbmV3IFBsdWdpbkludGVyZmFjZShkaXIsIGZvcmdlQ29uZmlnKTtcblxuICBmb3JnZUNvbmZpZyA9IGF3YWl0IHJ1bk11dGF0aW5nSG9vayhmb3JnZUNvbmZpZywgJ3Jlc29sdmVGb3JnZUNvbmZpZycsIGZvcmdlQ29uZmlnKTtcblxuICByZXR1cm4gcHJveGlmeTxGb3JnZUNvbmZpZz4oZm9yZ2VDb25maWcuYnVpbGRJZGVudGlmaWVyIHx8ICcnLCBmb3JnZUNvbmZpZywgJ0VMRUNUUk9OX0ZPUkdFJyk7XG59O1xuIl19

@@ -6,4 +6,4 @@ "use strict";

});
exports.runHook = void 0;
exports.runMutatingHook = runMutatingHook;
exports.runHook = void 0;

@@ -16,3 +16,3 @@ require("source-map-support/register");

const d = (0, _debug.default)('electron-forge:hook');
const d = (0, _debug.default)('electron-forge:hook'); // eslint-disable-next-line @typescript-eslint/no-explicit-any

@@ -58,2 +58,2 @@ const runHook = async (forgeConfig, hookName, ...hookArgs) => {

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2hvb2sudHMiXSwibmFtZXMiOlsiZCIsInJ1bkhvb2siLCJmb3JnZUNvbmZpZyIsImhvb2tOYW1lIiwiaG9va0FyZ3MiLCJob29rcyIsInBsdWdpbkludGVyZmFjZSIsInRyaWdnZXJIb29rIiwicnVuTXV0YXRpbmdIb29rIiwiaXRlbSIsInJlc3VsdCIsInRyaWdnZXJNdXRhdGluZ0hvb2siXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFDQTs7OztBQUVBLE1BQU1BLENBQUMsR0FBRyxvQkFBTSxxQkFBTixDQUFWOztBQUVPLE1BQU1DLE9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vcnQgYXN5bmMgZnVuY3Rpb24gcnVuTXV0YXRpbmdIb29rPFQ+KFxuICBmb3JnZUNvbmZpZzogRm9yZ2VDb25maWcsXG4gIGhvb2tOYW1lOiBzdHJpbmcsXG4gIGl0ZW06IFQsXG4pOiBQcm9taXNlPFQ+IHtcbiAgY29uc3QgeyBob29rcyB9ID0gZm9yZ2VDb25maWc7XG4gIGlmIChob29rcykge1xuICAgIGQoYGhvb2sgdHJpZ2dlcmVkOiAke2hvb2tOYW1lfWApO1xuICAgIGlmICh0eXBlb2YgaG9va3NbaG9va05hbWVdID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICBkKCdjYWxsaW5nIG11dGF0aW5nIGhvb2s6JywgaG9va05hbWUsICd3aXRoIGl0ZW06JywgaXRlbSk7XG4gICAgICBjb25zdCByZXN1bHQgPSBhd2FpdCBob29rc1tob29rTmFtZV0oZm9yZ2VDb25maWcsIGl0ZW0pO1xuICAgICAgaWYgKHR5cGVvZiByZXN1bHQgIT09ICd1bmRlZmluZWQnKSB7XG4gICAgICAgIGl0ZW0gPSByZXN1bHQ7XG4gICAgICB9XG4gICAgfVxuICB9XG4gIHJldHVybiBmb3JnZUNvbmZpZy5wbHVnaW5JbnRlcmZhY2UudHJpZ2dlck11dGF0aW5nSG9vayhob29rTmFtZSwgaXRlbSk7XG59XG4iXX0=
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2hvb2sudHMiXSwibmFtZXMiOlsiZCIsInJ1bkhvb2siLCJmb3JnZUNvbmZpZyIsImhvb2tOYW1lIiwiaG9va0FyZ3MiLCJob29rcyIsInBsdWdpbkludGVyZmFjZSIsInRyaWdnZXJIb29rIiwicnVuTXV0YXRpbmdIb29rIiwiaXRlbSIsInJlc3VsdCIsInRyaWdnZXJNdXRhdGluZ0hvb2siXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFDQTs7OztBQUVB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gICAgYXdhaXQgaG9va3NbaG9va05hbWVdKGZvcmdlQ29uZmlnLCAuLi5ob29rQXJncyk7XG4gICAgfVxuICB9XG4gIGF3YWl0IGZvcmdlQ29uZmlnLnBsdWdpbkludGVyZmFjZS50cmlnZ2VySG9vayhob29rTmFtZSwgaG9va0FyZ3MpO1xufTtcblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJ1bk11dGF0aW5nSG9vazxUPihmb3JnZUNvbmZpZzogRm9yZ2VDb25maWcsIGhvb2tOYW1lOiBzdHJpbmcsIGl0ZW06IFQpOiBQcm9taXNlPFQ+IHtcbiAgY29uc3QgeyBob29rcyB9ID0gZm9yZ2VDb25maWc7XG4gIGlmIChob29rcykge1xuICAgIGQoYGhvb2sgdHJpZ2dlcmVkOiAke2hvb2tOYW1lfWApO1xuICAgIGlmICh0eXBlb2YgaG9va3NbaG9va05hbWVdID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICBkKCdjYWxsaW5nIG11dGF0aW5nIGhvb2s6JywgaG9va05hbWUsICd3aXRoIGl0ZW06JywgaXRlbSk7XG4gICAgICBjb25zdCByZXN1bHQgPSBhd2FpdCBob29rc1tob29rTmFtZV0oZm9yZ2VDb25maWcsIGl0ZW0pO1xuICAgICAgaWYgKHR5cGVvZiByZXN1bHQgIT09ICd1bmRlZmluZWQnKSB7XG4gICAgICAgIGl0ZW0gPSByZXN1bHQ7XG4gICAgICB9XG4gICAgfVxuICB9XG4gIHJldHVybiBmb3JnZUNvbmZpZy5wbHVnaW5JbnRlcmZhY2UudHJpZ2dlck11dGF0aW5nSG9vayhob29rTmFtZSwgaXRlbSk7XG59XG4iXX0=

@@ -0,5 +1,7 @@

import { BuildIdentifierConfig, BuildIdentifierMap } from './forge-config';
import { getElectronVersion } from './electron-version';
export default class ForgeUtils {
/**
* Helper for creating a dynamic config value that will get it's real value
* based on the "buildIdentifier" in your forge config.
* Helper for creating a dynamic config value that will get its real value
* based on the "buildIdentifier" in your Forge config.
*

@@ -9,12 +11,7 @@ * Usage:

*/
fromBuildIdentifier<T>(map: {
[key: string]: T | undefined;
}): {
map: {
[key: string]: T | undefined;
};
__isMagicBuildIdentifierMap: boolean;
};
fromBuildIdentifier<T>(map: BuildIdentifierMap<T>): BuildIdentifierConfig<T>;
getElectronVersion: typeof getElectronVersion;
hasYarn: () => boolean;
yarnOrNpmSpawn: (args?: string[] | undefined, opts?: any) => Promise<string>;
rebuildHook: (buildPath: string, electronVersion: string, platform: string, arch: string, config?: Partial<import("electron-rebuild").RebuildOptions>) => Promise<void>;
yarnOrNpmSpawn: (args?: import("@malept/cross-spawn-promise").CrossSpawnArgs, opts?: import("@malept/cross-spawn-promise").CrossSpawnOptions | undefined) => Promise<string>;
}

@@ -12,4 +12,10 @@ "use strict";

var _electronVersion = require("./electron-version");
var _yarnOrNpm = require("./yarn-or-npm");
var _rebuild = _interopRequireDefault(require("./rebuild"));
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; }

@@ -19,4 +25,8 @@

constructor() {
_defineProperty(this, "getElectronVersion", _electronVersion.getElectronVersion);
_defineProperty(this, "hasYarn", _yarnOrNpm.hasYarn);
_defineProperty(this, "rebuildHook", _rebuild.default);
_defineProperty(this, "yarnOrNpmSpawn", _yarnOrNpm.yarnOrNpmSpawn);

@@ -26,4 +36,4 @@ }

/**
* Helper for creating a dynamic config value that will get it's real value
* based on the "buildIdentifier" in your forge config.
* Helper for creating a dynamic config value that will get its real value
* based on the "buildIdentifier" in your Forge config.
*

@@ -40,2 +50,2 @@ * Usage:

exports.default = ForgeUtils;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2luZGV4LnRzIl0sIm5hbWVzIjpbIkZvcmdlVXRpbHMiLCJoYXNZYXJu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hwb3J0IGRlZmF1bHQgY2xhc3MgRm9yZ2VVdGlscyB7XG4gIC8qKlxuICAgKiBIZWxwZXIgZm9yIGNyZWF0aW5nIGEgZHluYW1pYyBjb25maWcgdmFsdWUgdGhhdCB3aWxsIGdldCBpdHMgcmVhbCB2YWx1ZVxuICAgKiBiYXNlZCBvbiB0aGUgXCJidWlsZElkZW50aWZpZXJcIiBpbiB5b3VyIEZvcmdlIGNvbmZpZy5cbiAgICpcbiAgICogVXNhZ2U6XG4gICAqIGBmcm9tQnVpbGRJZGVudGlmaWVyKHsgc3RhYmxlOiAnQXBwJywgYmV0YTogJ0FwcCBCZXRhJyB9KWBcbiAgICovXG4gIGZyb21CdWlsZElkZW50aWZpZXI8VD4obWFwOiBCdWlsZElkZW50aWZpZXJNYXA8VD4pOiBCdWlsZElkZW50aWZpZXJDb25maWc8VD4ge1xuICAgIHJldHVybiBmcm9tQnVpbGRJZGVudGlmaWVyKG1hcCk7XG4gIH1cblxuICBnZXRFbGVjdHJvblZlcnNpb24gPSBnZXRFbGVjdHJvblZlcnNpb247XG5cbiAgaGFzWWFybiA9IGhhc1lhcm47XG5cbiAgcmVidWlsZEhvb2sgPSByZWJ1aWxkSG9vaztcblxuICB5YXJuT3JOcG1TcGF3biA9IHlhcm5Pck5wbVNwYXduO1xufVxuIl19

@@ -36,3 +36,2 @@ "use strict";

var _default = async (dir, deps, depType = DepType.PROD, versionRestriction = DepVersionRestriction.RANGE) => {
// eslint-disable-line consistent-return
d('installing', JSON.stringify(deps), 'in:', dir, `depType=${depType},versionRestriction=${versionRestriction},withYarn=${(0, _yarnOrNpm.hasYarn)()}`);

@@ -74,2 +73,2 @@

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2luc3RhbGwtZGVwZW5kZW5jaWVzLnRzIl0sIm5hbWVzIjpbImQiLCJEZXBUeXBlIiwiRGVwVmVyc2lvblJ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QucHVzaCgnLS1kZXYnKTtcbiAgICBpZiAodmVyc2lvblJlc3RyaWN0aW9uID09PSBEZXBWZXJzaW9uUmVzdHJpY3Rpb24uRVhBQ1QpIGNtZC5wdXNoKCctLWV4YWN0Jyk7XG4gIH0gZWxzZSB7XG4gICAgaWYgKHZlcnNpb25SZXN0cmljdGlvbiA9PT0gRGVwVmVyc2lvblJlc3RyaWN0aW9uLkVYQUNUKSBjbWQucHVzaCgnLS1zYXZlLWV4YWN0Jyk7XG4gICAgaWYgKGRlcFR5cGUgPT09IERlcFR5cGUuREVWKSBjbWQucHVzaCgnLS1zYXZlLWRldicpO1xuICAgIGlmIChkZXBUeXBlID09PSBEZXBUeXBlLlBST0QpIGNtZC5wdXNoKCctLXNhdmUnKTtcbiAgfVxuICBkKCdleGVjdXRpbmcnLCBKU09OLnN0cmluZ2lmeShjbWQpLCAnaW46JywgZGlyKTtcbiAgdHJ5IHtcbiAgICBhd2FpdCB5YXJuT3JOcG1TcGF3bihjbWQsIHtcbiAgICAgIGN3ZDogZGlyLFxuICAgICAgc3RkaW86ICdwaXBlJyxcbiAgICB9KTtcbiAgfSBjYXRjaCAoZXJyKSB7XG4gICAgaWYgKGVyciBpbnN0YW5jZW9mIEV4aXRFcnJvcikge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKGBGYWlsZWQgdG8gaW5zdGFsbCBtb2R1bGVzOiAke0pTT04uc3RyaW5naWZ5KGRlcHMpfVxcblxcbldpdGggb3V0cHV0OiAke2Vyci5tZXNzYWdlfVxcbiR7ZXJyLnN0ZGVyciA/IGVyci5zdGRlcnIudG9TdHJpbmcoKSA6ICcnfWApO1xuICAgIH0gZWxzZSB7XG4gICAgICB0aHJvdyBlcnI7XG4gICAgfVxuICB9XG59O1xuIl19

@@ -16,3 +16,3 @@ "use strict";

return true;
} catch (e) {
} catch {
// Package doesn't exist -- must not be installable on this platform

@@ -22,2 +22,2 @@ return false;

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2Z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TtBQUNGQyxJQUFBQSxPQUFPLENBQUNELEdBQUQsQ0FBUDs7QUFDQSxXQUFPLElBQVA7QUFDRCxHQUhELENBR0UsTUFBTTtBQUNOO0FBQ0EsV0FBTyxLQUFQO0FBQ0Q7QUFDRiIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludCBcImdsb2JhbC1yZXF1aXJlXCI6IFwib2ZmXCIsIFwiaW1wb3J0L25vLWR5bmFtaWMtcmVxdWlyZVwiOiBcIm9mZlwiICovXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBpc0luc3RhbGxlZChwa2c6IHN0cmluZyk6IGJvb2xlYW4ge1xuICB0cnkge1xuICAgIHJlcXVpcmUocGtnKTtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSBjYXRjaCB7XG4gICAgLy8gUGFja2FnZSBkb2Vzbid0IGV4aXN0IC0tIG11c3Qgbm90IGJlIGluc3RhbGxhYmxlIG9uIHRoaXMgcGxhdGZvcm1cbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cbiJdfQ==

@@ -6,3 +6,3 @@ "use strict";

});
exports.default = exports.sudo = void 0;
exports.sudo = exports.default = void 0;

@@ -19,2 +19,3 @@ require("source-map-support/register");

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const which = async (type, prog, promise) => {

@@ -35,2 +36,2 @@ if ((0, _child_process.spawnSync)('which', [prog]).status === 0) {

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2xpbnV4LWluc3RhbGxlci50cyJdLCJuYW1lcyI6WyJ3aGljaCIsInR5cGUiLCJwcm9nIiwicHJvbWlzZSIsInN0YXR1cyIsIkVycm9yIiwic3VkbyIsImFyZ3MiLCJzdWRvUHJvbXB0IiwiZXhlYyIsIm5hbWUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBOztBQUNBOztBQUNBOzs7O0FBR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vcmdlJyB9KSk7XG5cbmV4cG9ydCBkZWZhdWx0IHdoaWNoO1xuIl19

@@ -23,2 +23,2 @@ "use strict";

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL21lc3NhZ2VzLnRzIl0sIm5hbWVzIjpbImluZm8iLCJpbnRlcmFjdGl2ZSIsIm1lc3NhZ2UiLCJjb25zb2xlIiwid2FybiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBO0FBQ08sU0FBU0EsSUFBVCxDQUFjQyxXQUFkLEVBQW9DQyxPQUFwQyxFQUFxRDtBQUMxRCxNQUFJRCxXQUFKLEVBQWlCO0FBQ2ZFLElBQUFBLE9BQU8sQ0FBQ0gsSUFBUixDQUFhRSxPQUFiO0FBQ0Q7QUFDRjs7QUFFTSxTQUFTRSxJQUFULENBQWNILFdBQWQsRUFBb0NDLE9BQXBDLEVBQXFEO0FBQzFELE1BQUlELFdBQUosRUFBaUI7QUFDZkUsSUFBQUEsT0FBTyxDQUFDQyxJQUFSLENBQWFGLE9BQWI7QUFDRDtBQUNGIiwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50IFwibm8tY29uc29sZVwiOiBcIm9mZlwiICovXG5leHBvcnQgZnVuY3Rpb24gaW5mbyhpbnRlcmFjdGl2ZTogYm9vbGVhbiwgbWVzc2FnZTogc3RyaW5nKSB7XG4gIGlmIChpbnRlcmFjdGl2ZSkge1xuICAgIGNvbnNvbGUuaW5mbyhtZXNzYWdlKTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gd2FybihpbnRlcmFjdGl2ZTogYm9vbGVhbiwgbWVzc2FnZTogc3RyaW5nKSB7XG4gIGlmIChpbnRlcmFjdGl2ZSkge1xuICAgIGNvbnNvbGUud2FybihtZXNzYWdlKTtcbiAgfVxufVxuIl19
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL21lc3NhZ2VzLnRzIl0sIm5hbWVzIjpbImluZm8iLCJpbnRlcmFjdGl2ZSIsIm1lc3NhZ2UiLCJjb25zb2xlIiwid2FybiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBO0FBQ08sU0FBU0EsSUFBVCxDQUFjQyxXQUFkLEVBQW9DQyxPQUFwQyxFQUEyRDtBQUNoRSxNQUFJRCxXQUFKLEVBQWlCO0FBQ2ZFLElBQUFBLE9BQU8sQ0FBQ0gsSUFBUixDQUFhRSxPQUFiO0FBQ0Q7QUFDRjs7QUFFTSxTQUFTRSxJQUFULENBQWNILFdBQWQsRUFBb0NDLE9BQXBDLEVBQTJEO0FBQ2hFLE1BQUlELFdBQUosRUFBaUI7QUFDZkUsSUFBQUEsT0FBTyxDQUFDQyxJQUFSLENBQWFGLE9BQWI7QUFDRDtBQUNGIiwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50IFwibm8tY29uc29sZVwiOiBcIm9mZlwiICovXG5leHBvcnQgZnVuY3Rpb24gaW5mbyhpbnRlcmFjdGl2ZTogYm9vbGVhbiwgbWVzc2FnZTogc3RyaW5nKTogdm9pZCB7XG4gIGlmIChpbnRlcmFjdGl2ZSkge1xuICAgIGNvbnNvbGUuaW5mbyhtZXNzYWdlKTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gd2FybihpbnRlcmFjdGl2ZTogYm9vbGVhbiwgbWVzc2FnZTogc3RyaW5nKTogdm9pZCB7XG4gIGlmIChpbnRlcmFjdGl2ZSkge1xuICAgIGNvbnNvbGUud2FybihtZXNzYWdlKTtcbiAgfVxufVxuIl19

@@ -31,2 +31,2 @@ "use strict";

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL291dC1kaXIudHMiXSwibmFtZXMiOlsiQk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gRm9yZ2VDb25maWcgfSBmcm9tICdAZWxlY3Ryb24tZm9yZ2Uvc2hhcmVkLXR5cGVzJztcbmltcG9ydCBwYXRoIGZyb20gJ3BhdGgnO1xuXG5jb25zdCBCQVNFX09VVF9ESVIgPSAnb3V0JztcblxuZXhwb3J0IGRlZmF1bHQgKGJhc2VEaXI6IHN0cmluZywgZm9yZ2VDb25maWc6IEZvcmdlQ29uZmlnKTogc3RyaW5nID0+IHtcbiAgaWYgKGZvcmdlQ29uZmlnLmJ1aWxkSWRlbnRpZmllcikge1xuICAgIGxldCBpZGVudGlmaWVyID0gZm9yZ2VDb25maWcuYnVpbGRJZGVudGlmaWVyO1xuICAgIGlmICh0eXBlb2YgaWRlbnRpZmllciA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgaWRlbnRpZmllciA9IGlkZW50aWZpZXIoKTtcbiAgICB9XG4gICAgaWYgKGlkZW50aWZpZXIpIHJldHVybiBwYXRoLnJlc29sdmUoYmFzZURpciwgQkFTRV9PVVRfRElSLCBpZGVudGlmaWVyKTtcbiAgfVxuICByZXR1cm4gcGF0aC5yZXNvbHZlKGJhc2VEaXIsIEJBU0VfT1VUX0RJUik7XG59O1xuIl19

@@ -10,2 +10,4 @@ "use strict";

// TODO: convert to an import statement when this is a public API
// eslint-disable-next-line @typescript-eslint/no-var-requires
const {

@@ -22,2 +24,2 @@ allOfficialArchsForPlatformAndVersion

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3BhcnNlLWFyY2hzLnRzIl0sIm5hbWVzIjpbImFsbE9mZmljaWFsQXJjaHNGb3JQbGF0Zm9ybUFuZFZlcnNpb24iLCJyZXF1aXJlIiwicGFyc2VBcmNocyIsInBsYXRmb3JtIiwiZGVjbGFyZWRBcmNoIiwiZWxlY3Ryb25WZXJzaW9uIiwic3BsaXQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUV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FZlcnNpb24gfSA9IHJlcXVpcmUoJ2VsZWN0cm9uLXBhY2thZ2VyL3NyYy90YXJnZXRzJyk7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIHBhcnNlQXJjaHMocGxhdGZvcm06IEZvcmdlUGxhdGZvcm0gfCBzdHJpbmcsIGRlY2xhcmVkQXJjaDogRm9yZ2VBcmNoIHwgJ2FsbCcgfCBzdHJpbmcsIGVsZWN0cm9uVmVyc2lvbjogc3RyaW5nKTogRm9yZ2VBcmNoW10ge1xuICBpZiAoZGVjbGFyZWRBcmNoID09PSAnYWxsJykge1xuICAgIHJldHVybiBhbGxPZmZpY2lhbEFyY2hzRm9yUGxhdGZvcm1BbmRWZXJzaW9uKHBsYXRmb3JtLCBlbGVjdHJvblZlcnNpb24pIHx8IFsneDY0J107XG4gIH1cblxuICByZXR1cm4gZGVjbGFyZWRBcmNoLnNwbGl0KCcsJykgYXMgRm9yZ2VBcmNoW107XG59XG4iXX0=

@@ -1,2 +0,2 @@

import { IForgePluginInterface, ForgeConfig } from '@electron-forge/shared-types';
import { IForgePluginInterface, ForgeConfig, StartResult } from '@electron-forge/shared-types';
import { StartOptions } from '../api';

@@ -9,3 +9,3 @@ export default class PluginInterface implements IForgePluginInterface {

triggerMutatingHook<T>(hookName: string, item: T): Promise<T>;
overrideStartLogic(opts: StartOptions): Promise<string | false | string[] | import("@electron-forge/shared-types").ElectronProcess>;
overrideStartLogic(opts: StartOptions): Promise<StartResult>;
}

@@ -39,4 +39,5 @@ "use strict";

throw new Error(`Expected plugin[0] to be a string but found ${pluginName}`);
}
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
const Plugin = (0, _requireSearch.default)(dir, [pluginName]);

@@ -52,3 +53,4 @@

throw new Error(`Expected plugin to either be a plugin instance or [string, object] but found ${plugin}`);
}); // Fix linting
}); // TODO: fix hack
// eslint-disable-next-line @typescript-eslint/no-explicit-any

@@ -69,4 +71,5 @@ this.config = null;

this.overrideStartLogic = this.overrideStartLogic.bind(this);
}
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
async triggerHook(hookName, hookArgs) {

@@ -121,2 +124,2 @@ for (const plugin of this.plugins) {

exports.default = PluginInterface;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3BsdWdpbi1pbnRlcmZhY2UudHMiXSwibmFtZXMiOlsiZCIsIlBsdWdpbkludGVyZmFjZSIsImNvbnN0cnVjdG9yIiwiZGlyIiwiZm9yZ2VDb25maWciLCJwbHVnaW5zIiwibWFwIiwicGx1Z2luIiwiX19pc0VsZWN0cm9uRm9yZ2VQbHVnaW4iLCJBcnJheSIsImlzQXJyYXkiLCJwbHVnaW5OYW1lIiwib3B0cyIsIkVycm9yIiwiUGx1Z2luIiwiY29uZmlnIiwiT2JqZWN0IiwiZGVmaW5lUHJvcGVydHkiLCJ2YWx1ZSIsImVudW1lcmFibGUiLCJjb25maWd1cmFibGUiLCJ3cml0YWJsZSIsImluaXQiLCJ0cmlnZ2VySG9vayIsImJpbmQiLCJvdmVycmlkZVN0YXJ0TG9naWMiLCJob29rTmFtZSIsImhvb2tBcmdzIiwiZ2V0SG9vayIsImhvb2siLCJ0cmlnZ2VyTXV0YXRpbmdIb29rIiwiaXRlbSIsIm5ld1N0YXJ0Rm4iLCJjbGFpbWVkIiwic3RhcnRMb2dpYyIsIlBsdWdpbkJhc2UiLCJwcm90b3R5cGUiLCJwdXNoIiwibmFtZSIsImxlbmd0aCIsImpvaW4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBOztBQUVBOztBQUdBOzs7Ozs7QUFFQSxNQUFNQSxDQUFDLEdBQUcsb0JBQU0sd0JBQU4sQ0FBVjs7QUFFZSxNQUFNQyxlQUFOLENBQXVEO0FBS3BFQyxFQUFBQSxXQUFXLENBQUNDLEdBQUQsRUFBY0MsV0FBZCxFQUF3QztBQUFBOztBQUFBOztBQUNqRCxTQU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State(filePath);
await state.load(); // eslint-disable-next-line max-len
await state.load();
state.state.artifacts = state.state.artifacts.map(artifactPath => _path.default.resolve(rootDir, artifactPath));

@@ -58,3 +57,2 @@ states.push(state);

for (const artifact of artifacts) {
// eslint-disable-next-line max-len
artifact.artifacts = artifact.artifacts.map(artifactPath => _path.default.relative(rootDir, artifactPath));

@@ -103,2 +101,2 @@ const publishState = new PublishState(_path.default.resolve(directory, id, 'null'), false);

exports.default = PublishState;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3B1Ymxpc2gtc3RhdGUudHMiXSwibmFtZXMiOlsiRVhURU5TSU9OIiwiUHVibGlzaFN0YXRlIiwibG9hZEZyb21EaXJlY3RvcnkiLCJkaXJlY3RvcnkiLCJyb290RGlyIiwiZnMiLCJwYXRoRXhpc3RzIiwiRXJyb3IiLCJwdWJsaXNoZXMiLCJkaXJOYW1lIiwicmVhZGRpciIsInN1YkRpciIsInBhdGgiLCJyZXNvbHZlIiwic3RhdGVzIiwic3RhdCIsImlzRGlyZWN0b3J5IiwiZmlsZVBhdGhzIiwiZmlsdGVyIiwiZmlsZU5hbWUiLCJlbmRzV2l0aCIsIm1hcCIsImZpbGVQYXRoIiwic3RhdGUiLCJsb2FkIiwiYXJ0aWZhY3RzIiwiYXJ0aWZhY3RQYXRoIiwicHVzaCIsInNhdmVUb0RpcmVjdG9yeSIsImlkIiwiY3J5cHRvIiwiY3JlYXRlSGFzaCIsInVwZGF0ZSIsIkpTT04iLCJzdHJpbmdpZnkiLCJkaWdlc3QiLCJhcnRpZmFjdCIsInJlbGF0aXZlIiwicHVibGlzaFN0YXRlIiwic2F2ZVRvRGlzayIsImNvbnN0cnVjdG9yIiwiaGFzSGFzaCIsImRpciIsImRpcm5hbWUiLCJnZW5lcmF0ZUhhc2giLCJjb250ZW50IiwicmVhZEpzb24iLCJta2RpcnMiLCJ3cml0ZUpzb24iXSwibW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gdHJ1ZSkge1xuICAgIHRoaXMuZGlyID0gcGF0aC5kaXJuYW1lKGZpbGVQYXRoKTtcbiAgICB0aGlzLnBhdGggPSBmaWxlUGF0aDtcbiAgICB0aGlzLmhhc0hhc2ggPSBoYXNIYXNoO1xuICB9XG5cbiAgZ2VuZXJhdGVIYXNoKCk6IHN0cmluZyB7XG4gICAgY29uc3QgY29udGVudCA9IEpTT04uc3RyaW5naWZ5KHRoaXMuc3RhdGUgfHwge30pO1xuICAgIHJldHVybiBjcnlwdG8uY3JlYXRlSGFzaCgnU0hBMjU2JykudXBkYXRlKGNvbnRlbnQpLmRpZ2VzdCgnaGV4Jyk7XG4gIH1cblxuICBhc3luYyBsb2FkKCk6IFByb21pc2U8dm9pZD4ge1xuICAgIHRoaXMuc3RhdGUgPSBhd2FpdCBmcy5yZWFkSnNvbih0aGlzLnBhdGgpO1xuICB9XG5cbiAgYXN5bmMgc2F2ZVRvRGlzaygpOiBQcm9taXNlPHZvaWQ+IHtcbiAgICBpZiAoIXRoaXMuaGFzSGFzaCkge1xuICAgICAgdGhpcy5wYXRoID0gcGF0aC5yZXNvbHZlKHRoaXMuZGlyLCBgJHt0aGlzLmdlbmVyYXRlSGFzaCgpfSR7RVhURU5TSU9OfWApO1xuICAgICAgdGhpcy5oYXNIYXNoID0gdHJ1ZTtcbiAgICB9XG5cbiAgICBhd2FpdCBmcy5ta2RpcnMocGF0aC5kaXJuYW1lKHRoaXMucGF0aCkpO1xuICAgIGF3YWl0IGZzLndyaXRlSnNvbih0aGlzLnBhdGgsIHRoaXMuc3RhdGUpO1xuICB9XG59XG4iXX0=

@@ -6,3 +6,3 @@ "use strict";

});
exports.readMutatedPackageJson = exports.readRawPackageJson = void 0;
exports.readRawPackageJson = exports.readMutatedPackageJson = void 0;

@@ -19,4 +19,6 @@ require("source-map-support/register");

const readRawPackageJson = async dir => _fsExtra.default.readJson(_path.default.resolve(dir, 'package.json'));
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const readRawPackageJson = async dir => _fsExtra.default.readJson(_path.default.resolve(dir, 'package.json')); // eslint-disable-next-line @typescript-eslint/no-explicit-any
exports.readRawPackageJson = readRawPackageJson;

@@ -27,2 +29,2 @@

exports.readMutatedPackageJson = readMutatedPackageJson;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3JlYWQtcGFja2FnZS1qc29uLnRzIl0sIm5hbWVzIjpbInJlYWRSYXdQYWNrYWdlSnNvbiIsImRpciIsImZzIiwicmVhZEpzb24iLCJwYXRoIiwicmVzb2x2ZSIsInJlYWRNdXRhdGVkUGFja2FnZUpzb24iLCJmb3JnZUNvbmZpZyJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQ0E7O0FBQ0E7O0FBRUE7Ozs7QUFFTyxNQUFNQSxrQkFBa0IsR0FBRyxNQUFPQyxHQUFQLElBQXVCQyxpQkFBR0MsUUFBSCxDQUFZQyxjQUFLQyxPQUFMLENBQWFKLEdBQWIsRUFBa0IsY0FBbEIsQ0FBWixDQUFsRDs7OztBQUVBLE1BQU1LLHNCQUFzQixHQUFHLE9BQU9MLEdBQVAsRUFBb0JNLFdBQXBCLEtBQWlELDJCQUFnQkEsV0FBaEIsRUFBNkIsaUJBQTdCLEVBQWdELE1BQU1QLGtCQUFrQixDQUFDQyxHQUFELENBQXhFLENBQWhGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRm9yZ2VDb25maWcgfSBmcm9tICdAZWxlY3Ryb24tZm9yZ2Uvc2hhcmVkLXR5cGVzJztcbmltcG9ydCBmcyBmcm9tICdmcy1leHRyYSc7XG5pbXBvcnQgcGF0aCBmcm9tICdwYXRoJztcblxuaW1wb3J0IHsgcnVuTXV0YXRpbmdIb29rIH0gZnJvbSAnLi9ob29rJztcblxuZXhwb3J0IGNvbnN0IHJlYWRSYXdQYWNrYWdlSnNvbiA9IGFzeW5jIChkaXI6IHN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ydCBmcyBmcm9tICdmcy1leHRyYSc7XG5pbXBvcnQgcGF0aCBmcm9tICdwYXRoJztcblxuaW1wb3J0IHsgcnVuTXV0YXRpbmdIb29rIH0gZnJvbSAnLi9ob29rJztcblxuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1leHBsaWNpdC1hbnlcbmV4cG9ydCBjb25zdCByZWFkUmF3UGFja2FnZUpzb24gPSBhc3luYyAoZGlyOiBzdHJpbmcpOiBQcm9taXNlPGFueT4gPT4gZnMucmVhZEpzb24ocGF0aC5yZXNvbHZlKGRpciwgJ3BhY2thZ2UuanNvbicpKTtcblxuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1leHBsaWNpdC1hbnlcbmV4cG9ydCBjb25zdCByZWFkTXV0YXRlZFBhY2thZ2VKc29uID0gYXN5bmMgKGRpcjogc3RyaW5nLCBmb3JnZUNvbmZpZzogRm9yZ2VDb25maWcpOiBQcm9taXNlPGFueT4gPT5cbiAgcnVuTXV0YXRpbmdIb29rKGZvcmdlQ29uZmlnLCAncmVhZFBhY2thZ2VKc29uJywgYXdhaXQgcmVhZFJhd1BhY2thZ2VKc29uKGRpcikpO1xuIl19

@@ -44,2 +44,2 @@ "use strict";

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3JlYnVpbGQudHMiXSwibmFtZXMiOlsiYnVpbGRQYXRoIiwiZWxlY3Ryb25WZXJzaW9uIiwicGxhdGZvcm0iLCJhcmNoIiwiY29uZmlnIiwicmVidWlsZFNwaW5uZXIiLCJyZWJ1aWxkZXIiLCJsaWZlY3ljbGUiLCJmb3VuZCIsImRvbmUiLCJyZWRyYXciLCJ0ZXh0Iiwib24iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBOztBQUdBOztlQUV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gPSByZWJ1aWxkZXI7XG5cbiAgICBsZXQgZm91bmQgPSAwO1xuICAgIGxldCBkb25lID0gMDtcblxuICAgIGNvbnN0IHJlZHJhdyA9ICgpID0+IHtcbiAgICAgIHJlYnVpbGRTcGlubmVyLnRleHQgPSBgUHJlcGFyaW5nIG5hdGl2ZSBkZXBlbmRlbmNpZXM6ICR7ZG9uZX0gLyAke2ZvdW5kfWA7XG4gICAgfTtcblxuICAgIGxpZmVjeWNsZS5vbignbW9kdWxlLWZvdW5kJywgKCkgPT4ge1xuICAgICAgZm91bmQgKz0gMTtcbiAgICAgIHJlZHJhdygpO1xuICAgIH0pO1xuICAgIGxpZmVjeWNsZS5vbignbW9kdWxlLWRvbmUnLCAoKSA9PiB7XG4gICAgICBkb25lICs9IDE7XG4gICAgICByZWRyYXcoKTtcbiAgICB9KTtcblxuICAgIGF3YWl0IHJlYnVpbGRlcjtcbiAgfSk7XG59O1xuIl19

@@ -6,4 +6,4 @@ "use strict";

});
exports.default = void 0;
exports.requireSearchRaw = requireSearchRaw;
exports.default = void 0;

@@ -51,2 +51,2 @@ require("source-map-support/register");

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3JlcXVpcmUtc2VhcmNoLnRzIl0sIm5hbWVzIjpbImQiLCJyZXF1aXJlU2VhcmNoUmF3IiwicmVsYXRpdmVUbyIsInBhdGhzIiwidGVzdFBhdGhzIiwiY29uY2F0IiwibWFwIiwibWFwUGF0aCIsInBhdGgiLCJyZXNvbHZlIiwidGVzdFBhdGgiLCJyZXF1aXJlIiwiZXJyIiwiRXJyb3IiLCJyZXF1aXJlRXJyIiwiY29kZSIsInVuZGVmaW5lZCIsImluY2x1ZGVzIiwicmVxdWVzdFBhdGgiLCJyZXN1bHQiLCJkZWZhdWx0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7O0FBQ0E7Ozs7QU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Xhpc3RzKHRlc3RQYXRoKSkge1xuICAgICAgY29uc3QgcGFja2FnZUpTT04gPSBhd2FpdCByZWFkUmF3UGFja2FnZUpzb24obURpcik7XG5cbiAgICAgIC8vIFRPRE86IE1vdmUgdGhpcyBjaGVjayB0byBpbnNpZGUgdGhlIGZvcmdlIGNvbmZpZyByZXNvbHZlciBhbmQgdXNlXG4gICAgICAvLyAgICAgICBtdXRhdGVkUGFja2FnZUpzb24gcmVhZGVyXG4gICAgICB0cnkge1xuICAgICAgICBhd2FpdCBnZXRFbGVjdHJvblZlcnNpb24obURpciwgcGFja2FnZUpTT04pO1xuICAgICAgfSBjYXRjaCAoZXJyKSB7XG4gICAgICAgIGlmIChlcnIgaW5zdGFuY2VvZiBFcnJvcikge1xuICAgICAgICAgIGxhc3RFcnJvciA9IGVyci5tZXNzYWdlO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmIChwYWNrYWdlSlNPTi5jb25maWcgJiYgcGFja2FnZUpTT04uY29uZmlnLmZvcmdlKSB7XG4gICAgICAgIGQoJ2VsZWN0cm9uLWZvcmdlIGNvbXBhdGlibGUgcGFja2FnZS5qc29uIGZvdW5kIGluJywgdGVzdFBhdGgpO1xuICAgICAgICByZXR1cm4gbURpcjtcbiAgICAgIH1cblxuICAgICAgYmVzdEd1ZXNzRGlyID0gbURpcjtcbiAgICB9XG4gICAgbURpciA9IHBhdGguZGlybmFtZShtRGlyKTtcbiAgfVxuICBpZiAoYmVzdEd1ZXNzRGlyKSB7XG4gICAgZCgnZ3Vlc3Npbmcgb24gdGhlIGJlc3QgZWxlY3Ryb24tZm9yZ2UgcGFja2FnZS5qc29uIGZvdW5kIGluJywgYmVzdEd1ZXNzRGlyKTtcbiAgICByZXR1cm4gYmVzdEd1ZXNzRGlyO1xuICB9XG4gIGlmIChsYXN0RXJyb3IpIHtcbiAgICB0aHJvdyBsYXN0RXJyb3I7XG4gIH1cbiAgcmV0dXJuIG51bGw7XG59O1xuIl19
//# sourceMappingUR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pb24obURpciwgcGFja2FnZUpTT04pO1xuICAgICAgfSBjYXRjaCAoZXJyKSB7XG4gICAgICAgIGlmIChlcnIgaW5zdGFuY2VvZiBFcnJvcikge1xuICAgICAgICAgIGxhc3RFcnJvciA9IGVyci5tZXNzYWdlO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmIChwYWNrYWdlSlNPTi5jb25maWcgJiYgcGFja2FnZUpTT04uY29uZmlnLmZvcmdlKSB7XG4gICAgICAgIGQoJ2VsZWN0cm9uLWZvcmdlIGNvbXBhdGlibGUgcGFja2FnZS5qc29uIGZvdW5kIGluJywgdGVzdFBhdGgpO1xuICAgICAgICByZXR1cm4gbURpcjtcbiAgICAgIH1cblxuICAgICAgYmVzdEd1ZXNzRGlyID0gbURpcjtcbiAgICB9XG4gICAgbURpciA9IHBhdGguZGlybmFtZShtRGlyKTtcbiAgfVxuICBpZiAoYmVzdEd1ZXNzRGlyKSB7XG4gICAgZCgnZ3Vlc3Npbmcgb24gdGhlIGJlc3QgZWxlY3Ryb24tZm9yZ2UgcGFja2FnZS5qc29uIGZvdW5kIGluJywgYmVzdEd1ZXNzRGlyKTtcbiAgICByZXR1cm4gYmVzdEd1ZXNzRGlyO1xuICB9XG4gIGlmIChsYXN0RXJyb3IpIHtcbiAgICB0aHJvdyBsYXN0RXJyb3I7XG4gIH1cbiAgcmV0dXJuIG51bGw7XG59O1xuIl19

@@ -1,6 +0,35 @@

import { ForgeConfig } from '@electron-forge/shared-types';
import { ForgeConfig, ForgePlatform } from '@electron-forge/shared-types';
declare type GitHub5Config = Record<string, unknown> & {
name: string;
owner: string;
options: Record<string, unknown>;
};
declare type Forge5Config = {
make_targets?: Record<ForgePlatform, string[]>;
electronPackagerConfig?: Record<string, unknown>;
electronRebuildConfig?: Record<string, unknown>;
electronWinstallerConfig?: Record<string, unknown>;
electronInstallerDMG?: Record<string, unknown>;
electronInstallerFlatpak?: Record<string, unknown>;
electronInstallerDebian?: Record<string, unknown>;
electronInstallerRedhat?: Record<string, unknown>;
electronInstallerSnap?: Record<string, unknown>;
electronWixMSIConfig?: Record<string, unknown>;
windowsStoreConfig?: Record<string, unknown>;
github_repository?: GitHub5Config;
s3?: Record<string, unknown>;
'electron-release-server'?: Record<string, unknown>;
snapStore?: Record<string, unknown>;
};
declare type ForgePackageJSON = Record<string, unknown> & {
config: {
forge: ForgeConfig;
};
devDependencies: Record<string, string>;
};
/**
* Upgrades Forge v5 config to v6.
*/
export default function upgradeForgeConfig(forge5Config: any): ForgeConfig;
export declare function updateUpgradedForgeDevDeps(packageJSON: any, devDeps: string[]): string[];
export default function upgradeForgeConfig(forge5Config: Forge5Config): ForgeConfig;
export declare function updateUpgradedForgeDevDeps(packageJSON: ForgePackageJSON, devDeps: string[]): string[];
export {};

@@ -20,4 +20,4 @@ "use strict";

if (forge5Config.makeTargets) {
for (const [platform, targets] of Object.entries(forge5Config.makeTargets)) {
if (forge5Config.make_targets) {
for (const [platform, targets] of Object.entries(forge5Config.make_targets)) {
for (const target of targets) {

@@ -157,2 +157,2 @@ let platforms = makeTargets.get(target);

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3VwZ3JhZGUtZm9yZ2UtY29uZmlnLnRzIl0sIm5hbWVzIjpbIm1hcE1ha2VUYXJnZXRzIiwiZm9yZ2U1Q29uZmlnIiwibWFrZVRhcmdldHMiLCJNYXAiLCJwbGF0Zm9ybSIsInRhcmdldHMiLCJPYmplY3QiLCJlbnRyaWVzIiwidGFyZ2V0IiwicGxhdGZvcm1zIiwiZ2V0IiwidW5kZWZpbmVkIiwic2V0IiwicHVzaCIsImZvcmdlNU1ha2VyTWFwcGluZ3MiLCJnZW5lcmF0ZUZvcmdlTWFrZXJDb25maWciLCJtYWtlcnMiLCJmb3JnZTVLZXkiLCJtYWtlclR5cGUiLCJjb25maWciLCJuYW1lIiwiemlwUGxhdGZvcm1zIiwiZm9yZ2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ocGFja2FnZUpTT04uZGV2RGVwZW5kZW5jaWVzKS5maW5kKChkZXA6IHN0cmluZykgPT4gZGVwID09PSAnZWxlY3Ryb24tcHJlYnVpbHQtY29tcGlsZScpKSB7XG4gICAgZGV2RGVwcyA9IGRldkRlcHMuY29uY2F0KHNpYmxpbmdEZXAoJ3BsdWdpbi1jb21waWxlJykpO1xuICB9XG5cbiAgcmV0dXJuIGRldkRlcHM7XG59XG4iXX0=

@@ -1,4 +0,5 @@

declare const safeYarnOrNpm: () => "yarn" | "npm";
import { CrossSpawnArgs, CrossSpawnOptions } from '@malept/cross-spawn-promise';
declare const safeYarnOrNpm: () => string;
export default safeYarnOrNpm;
export declare const yarnOrNpmSpawn: (args?: string[] | undefined, opts?: any) => Promise<string>;
export declare const yarnOrNpmSpawn: (args?: CrossSpawnArgs, opts?: CrossSpawnOptions | undefined) => Promise<string>;
export declare const hasYarn: () => boolean;

@@ -6,6 +6,8 @@ "use strict";

});
exports.hasYarn = exports.yarnOrNpmSpawn = exports.default = void 0;
exports.yarnOrNpmSpawn = exports.hasYarn = exports.default = void 0;
require("source-map-support/register");
var _chalk = _interopRequireDefault(require("chalk"));
var _crossSpawnPromise = require("@malept/cross-spawn-promise");

@@ -30,3 +32,3 @@

// eslint-disable-next-line no-console
console.warn(`${_logSymbols.default.warning} Unknown NODE_INSTALLER, using detected installer ${system}`.yellow);
console.warn(_logSymbols.default.warning, _chalk.default.yellow(`Unknown NODE_INSTALLER, using detected installer ${system}`));
}

@@ -49,2 +51,2 @@

exports.hasYarn = hasYarn;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3lhcm4tb3ItbnBtLnRzIl0sIm5hbWVzIjpbInNhZmVZYXJuT3JOcG0iLCJzeXN0ZW0iLCJwcm9jZXNzIiwiZW52IiwiTk9ERV9JTlNUQUxMRVIiLCJjb25zb2xlIiwid2FybiIsImxvZ1N5bWJvbH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gpID09PSAneWFybic7XG4iXX0=
{
"name": "@electron-forge/core",
"version": "6.0.0-beta.61",
"version": "6.0.0-beta.62",
"description": "A complete tool for building modern Electron applications",

@@ -18,12 +18,12 @@ "repository": "https://github.com/electron-userland/electron-forge",

"devDependencies": {
"@electron-forge/maker-appx": "6.0.0-beta.61",
"@electron-forge/maker-deb": "6.0.0-beta.61",
"@electron-forge/maker-dmg": "6.0.0-beta.61",
"@electron-forge/maker-flatpak": "6.0.0-beta.61",
"@electron-forge/maker-rpm": "6.0.0-beta.61",
"@electron-forge/maker-snap": "6.0.0-beta.61",
"@electron-forge/maker-squirrel": "6.0.0-beta.61",
"@electron-forge/maker-wix": "6.0.0-beta.61",
"@electron-forge/maker-zip": "6.0.0-beta.61",
"@electron-forge/test-utils": "6.0.0-beta.61",
"@electron-forge/maker-appx": "6.0.0-beta.62",
"@electron-forge/maker-deb": "6.0.0-beta.62",
"@electron-forge/maker-dmg": "6.0.0-beta.62",
"@electron-forge/maker-flatpak": "6.0.0-beta.62",
"@electron-forge/maker-rpm": "6.0.0-beta.62",
"@electron-forge/maker-snap": "6.0.0-beta.62",
"@electron-forge/maker-squirrel": "6.0.0-beta.62",
"@electron-forge/maker-wix": "6.0.0-beta.62",
"@electron-forge/maker-zip": "6.0.0-beta.62",
"@electron-forge/test-utils": "6.0.0-beta.62",
"chai": "^4.3.3",

@@ -36,27 +36,27 @@ "chai-as-promised": "^7.0.0",

"proxyquire": "^2.1.3",
"sinon": "^11.1.1",
"sinon": "^12.0.1",
"sinon-chai": "^3.6.0"
},
"dependencies": {
"@electron-forge/async-ora": "6.0.0-beta.61",
"@electron-forge/installer-base": "6.0.0-beta.61",
"@electron-forge/installer-deb": "6.0.0-beta.61",
"@electron-forge/installer-dmg": "6.0.0-beta.61",
"@electron-forge/installer-exe": "6.0.0-beta.61",
"@electron-forge/installer-rpm": "6.0.0-beta.61",
"@electron-forge/installer-zip": "6.0.0-beta.61",
"@electron-forge/maker-base": "6.0.0-beta.61",
"@electron-forge/plugin-base": "6.0.0-beta.61",
"@electron-forge/publisher-base": "6.0.0-beta.61",
"@electron-forge/shared-types": "6.0.0-beta.61",
"@electron-forge/template-base": "6.0.0-beta.61",
"@electron-forge/template-typescript": "6.0.0-beta.61",
"@electron-forge/template-typescript-webpack": "6.0.0-beta.61",
"@electron-forge/template-webpack": "6.0.0-beta.61",
"@electron-forge/async-ora": "6.0.0-beta.62",
"@electron-forge/installer-base": "6.0.0-beta.62",
"@electron-forge/installer-deb": "6.0.0-beta.62",
"@electron-forge/installer-dmg": "6.0.0-beta.62",
"@electron-forge/installer-exe": "6.0.0-beta.62",
"@electron-forge/installer-rpm": "6.0.0-beta.62",
"@electron-forge/installer-zip": "6.0.0-beta.62",
"@electron-forge/maker-base": "6.0.0-beta.62",
"@electron-forge/plugin-base": "6.0.0-beta.62",
"@electron-forge/publisher-base": "6.0.0-beta.62",
"@electron-forge/shared-types": "6.0.0-beta.62",
"@electron-forge/template-base": "6.0.0-beta.62",
"@electron-forge/template-typescript": "6.0.0-beta.62",
"@electron-forge/template-typescript-webpack": "6.0.0-beta.62",
"@electron-forge/template-webpack": "6.0.0-beta.62",
"@electron/get": "^1.9.0",
"@malept/cross-spawn-promise": "^2.0.0",
"colors": "^1.4.0",
"chalk": "^4.0.0",
"debug": "^4.3.1",
"electron-packager": "^15.4.0",
"electron-rebuild": "^3.2.2",
"electron-rebuild": "^3.2.6",
"fast-glob": "^3.2.7",

@@ -63,0 +63,0 @@ "find-up": "^5.0.0",

@@ -9,3 +9,3 @@ # Electron Forge Core

```js
import { api } from '@electron-forge/core'
import { api } from '@electron-forge/core';

@@ -19,3 +19,3 @@ // Package the current directory as an Electron app

user-side configuration is still done through your forge config file or the "config.forge"
section of your package.json. This API simply let's you call the methods in
section of your package.json. This API simply let's you call the methods in
node land without using the CLI.

@@ -28,2 +28,2 @@

promises with just strings so do not assume that properties such as `stack` or
`message` will exist on thrown errors.
`message` will exist on thrown errors.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc