stuff
This commit is contained in:
24
buildfiles/node_modules/electron-builder/out/builder.d.ts
generated
vendored
Normal file
24
buildfiles/node_modules/electron-builder/out/builder.d.ts
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
import { Arch } from "builder-util";
|
||||
import { PackagerOptions, Platform } from "app-builder-lib";
|
||||
import { PublishOptions } from "electron-publish";
|
||||
import yargs from "yargs";
|
||||
export declare function createYargs(): yargs.Argv<{}>;
|
||||
export interface BuildOptions extends PackagerOptions, PublishOptions {
|
||||
}
|
||||
export interface CliOptions extends PackagerOptions, PublishOptions {
|
||||
x64?: boolean;
|
||||
ia32?: boolean;
|
||||
armv7l?: boolean;
|
||||
arm64?: boolean;
|
||||
dir?: boolean;
|
||||
}
|
||||
/** @private */
|
||||
export declare function normalizeOptions(args: CliOptions): BuildOptions;
|
||||
/** @private */
|
||||
export declare function coerceTypes(host: any): any;
|
||||
export declare function createTargets(platforms: Array<Platform>, type?: string | null, arch?: string | null): Map<Platform, Map<Arch, Array<string>>>;
|
||||
export declare function build(rawOptions?: CliOptions): Promise<Array<string>>;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export declare function configureBuildCommand(yargs: yargs.Argv): yargs.Argv;
|
324
buildfiles/node_modules/electron-builder/out/builder.js
generated
vendored
Normal file
324
buildfiles/node_modules/electron-builder/out/builder.js
generated
vendored
Normal file
@ -0,0 +1,324 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.createYargs = createYargs;
|
||||
exports.normalizeOptions = normalizeOptions;
|
||||
exports.coerceTypes = coerceTypes;
|
||||
exports.createTargets = createTargets;
|
||||
exports.build = build;
|
||||
exports.configureBuildCommand = configureBuildCommand;
|
||||
|
||||
function _builderUtil() {
|
||||
const data = require("builder-util");
|
||||
|
||||
_builderUtil = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _chalk() {
|
||||
const data = _interopRequireDefault(require("chalk"));
|
||||
|
||||
_chalk = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _appBuilderLib() {
|
||||
const data = require("app-builder-lib");
|
||||
|
||||
_appBuilderLib = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _yargs() {
|
||||
const data = _interopRequireDefault(require("yargs"));
|
||||
|
||||
_yargs = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function createYargs() {
|
||||
return _yargs().default.parserConfiguration({
|
||||
"camel-case-expansion": false
|
||||
});
|
||||
}
|
||||
/** @private */
|
||||
|
||||
|
||||
function normalizeOptions(args) {
|
||||
if (args.targets != null) {
|
||||
return args;
|
||||
}
|
||||
|
||||
const targets = new Map();
|
||||
|
||||
function processTargets(platform, types) {
|
||||
function commonArch(currentIfNotSpecified) {
|
||||
if (platform === _appBuilderLib().Platform.MAC) {
|
||||
return args.x64 || currentIfNotSpecified ? [_builderUtil().Arch.x64] : [];
|
||||
}
|
||||
|
||||
const result = Array();
|
||||
|
||||
if (args.x64) {
|
||||
result.push(_builderUtil().Arch.x64);
|
||||
}
|
||||
|
||||
if (args.armv7l) {
|
||||
result.push(_builderUtil().Arch.armv7l);
|
||||
}
|
||||
|
||||
if (args.arm64) {
|
||||
result.push(_builderUtil().Arch.arm64);
|
||||
}
|
||||
|
||||
if (args.ia32) {
|
||||
result.push(_builderUtil().Arch.ia32);
|
||||
}
|
||||
|
||||
return result.length === 0 && currentIfNotSpecified ? [(0, _builderUtil().archFromString)(process.arch)] : result;
|
||||
}
|
||||
|
||||
let archToType = targets.get(platform);
|
||||
|
||||
if (archToType == null) {
|
||||
archToType = new Map();
|
||||
targets.set(platform, archToType);
|
||||
}
|
||||
|
||||
if (types.length === 0) {
|
||||
const defaultTargetValue = args.dir ? [_appBuilderLib().DIR_TARGET] : [];
|
||||
|
||||
for (const arch of commonArch(args.dir === true)) {
|
||||
archToType.set(arch, defaultTargetValue);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
for (const type of types) {
|
||||
const suffixPos = type.lastIndexOf(":");
|
||||
|
||||
if (suffixPos > 0) {
|
||||
(0, _builderUtil().addValue)(archToType, (0, _builderUtil().archFromString)(type.substring(suffixPos + 1)), type.substring(0, suffixPos));
|
||||
} else {
|
||||
for (const arch of commonArch(true)) {
|
||||
(0, _builderUtil().addValue)(archToType, arch, type);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (args.mac != null) {
|
||||
processTargets(_appBuilderLib().Platform.MAC, args.mac);
|
||||
}
|
||||
|
||||
if (args.linux != null) {
|
||||
processTargets(_appBuilderLib().Platform.LINUX, args.linux);
|
||||
}
|
||||
|
||||
if (args.win != null) {
|
||||
processTargets(_appBuilderLib().Platform.WINDOWS, args.win);
|
||||
}
|
||||
|
||||
if (targets.size === 0) {
|
||||
processTargets(_appBuilderLib().Platform.current(), []);
|
||||
}
|
||||
|
||||
const result = { ...args
|
||||
};
|
||||
result.targets = targets;
|
||||
delete result.dir;
|
||||
delete result.mac;
|
||||
delete result.linux;
|
||||
delete result.win;
|
||||
const r = result;
|
||||
delete r.m;
|
||||
delete r.o;
|
||||
delete r.l;
|
||||
delete r.w;
|
||||
delete r.windows;
|
||||
delete r.macos;
|
||||
delete r.$0;
|
||||
delete r._;
|
||||
delete r.version;
|
||||
delete r.help;
|
||||
delete r.c;
|
||||
delete r.p;
|
||||
delete r.pd;
|
||||
delete result.ia32;
|
||||
delete result.x64;
|
||||
delete result.armv7l;
|
||||
delete result.arm64;
|
||||
let config = result.config; // config is array when combining dot-notation values with a config file value
|
||||
// https://github.com/electron-userland/electron-builder/issues/2016
|
||||
|
||||
if (Array.isArray(config)) {
|
||||
const newConfig = {};
|
||||
|
||||
for (const configItem of config) {
|
||||
if (typeof configItem === "object") {
|
||||
(0, _builderUtil().deepAssign)(newConfig, configItem);
|
||||
} else if (typeof configItem === "string") {
|
||||
newConfig.extends = configItem;
|
||||
}
|
||||
}
|
||||
|
||||
config = newConfig;
|
||||
result.config = newConfig;
|
||||
} // AJV cannot coerce "null" string to null if string is also allowed (because null string is a valid value)
|
||||
|
||||
|
||||
if (config != null && typeof config !== "string") {
|
||||
if (config.extraMetadata != null) {
|
||||
coerceTypes(config.extraMetadata);
|
||||
} // ability to disable code sign using -c.mac.identity=null
|
||||
|
||||
|
||||
if (config.mac != null) {
|
||||
coerceValue(config.mac, "identity");
|
||||
} // fix Boolean type by coerceTypes
|
||||
|
||||
|
||||
if (config.nsis != null) {
|
||||
coerceTypes(config.nsis);
|
||||
}
|
||||
|
||||
if (config.nsisWeb != null) {
|
||||
coerceTypes(config.nsisWeb);
|
||||
}
|
||||
}
|
||||
|
||||
if ("project" in r && !("projectDir" in result)) {
|
||||
result.projectDir = r.project;
|
||||
}
|
||||
|
||||
delete r.project;
|
||||
return result;
|
||||
}
|
||||
|
||||
function coerceValue(host, key) {
|
||||
const value = host[key];
|
||||
|
||||
if (value === "true") {
|
||||
host[key] = true;
|
||||
} else if (value === "false") {
|
||||
host[key] = false;
|
||||
} else if (value === "null") {
|
||||
host[key] = null;
|
||||
} else if (key === "version" && typeof value === "number") {
|
||||
host[key] = value.toString();
|
||||
} else if (value != null && typeof value === "object") {
|
||||
coerceTypes(value);
|
||||
}
|
||||
}
|
||||
/** @private */
|
||||
|
||||
|
||||
function coerceTypes(host) {
|
||||
for (const key of Object.getOwnPropertyNames(host)) {
|
||||
coerceValue(host, key);
|
||||
}
|
||||
|
||||
return host;
|
||||
}
|
||||
|
||||
function createTargets(platforms, type, arch) {
|
||||
const targets = new Map();
|
||||
|
||||
for (const platform of platforms) {
|
||||
const archs = platform === _appBuilderLib().Platform.MAC ? [_builderUtil().Arch.x64] : arch === "all" ? [_builderUtil().Arch.x64, _builderUtil().Arch.ia32] : [(0, _builderUtil().archFromString)(arch == null ? process.arch : arch)];
|
||||
const archToType = new Map();
|
||||
targets.set(platform, archToType);
|
||||
|
||||
for (const arch of archs) {
|
||||
archToType.set(arch, type == null ? [] : [type]);
|
||||
}
|
||||
}
|
||||
|
||||
return targets;
|
||||
}
|
||||
|
||||
function build(rawOptions) {
|
||||
const buildOptions = normalizeOptions(rawOptions || {});
|
||||
return (0, _appBuilderLib().build)(buildOptions, new (_appBuilderLib().Packager)(buildOptions));
|
||||
}
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
|
||||
|
||||
function configureBuildCommand(yargs) {
|
||||
const publishGroup = "Publishing:";
|
||||
const buildGroup = "Building:";
|
||||
return yargs.option("mac", {
|
||||
group: buildGroup,
|
||||
alias: ["m", "o", "macos"],
|
||||
description: `Build for macOS, accepts target list (see ${_chalk().default.underline("https://goo.gl/5uHuzj")}).`,
|
||||
type: "array"
|
||||
}).option("linux", {
|
||||
group: buildGroup,
|
||||
alias: "l",
|
||||
description: `Build for Linux, accepts target list (see ${_chalk().default.underline("https://goo.gl/4vwQad")})`,
|
||||
type: "array"
|
||||
}).option("win", {
|
||||
group: buildGroup,
|
||||
alias: ["w", "windows"],
|
||||
description: `Build for Windows, accepts target list (see ${_chalk().default.underline("https://goo.gl/jYsTEJ")})`,
|
||||
type: "array"
|
||||
}).option("x64", {
|
||||
group: buildGroup,
|
||||
description: "Build for x64",
|
||||
type: "boolean"
|
||||
}).option("ia32", {
|
||||
group: buildGroup,
|
||||
description: "Build for ia32",
|
||||
type: "boolean"
|
||||
}).option("armv7l", {
|
||||
group: buildGroup,
|
||||
description: "Build for armv7l",
|
||||
type: "boolean"
|
||||
}).option("arm64", {
|
||||
group: buildGroup,
|
||||
description: "Build for arm64",
|
||||
type: "boolean"
|
||||
}).option("dir", {
|
||||
group: buildGroup,
|
||||
description: "Build unpacked dir. Useful to test.",
|
||||
type: "boolean"
|
||||
}).option("publish", {
|
||||
group: publishGroup,
|
||||
alias: "p",
|
||||
description: `Publish artifacts, see ${_chalk().default.underline("https://goo.gl/tSFycD")}`,
|
||||
choices: ["onTag", "onTagOrDraft", "always", "never", undefined]
|
||||
}).option("prepackaged", {
|
||||
alias: ["pd"],
|
||||
group: buildGroup,
|
||||
description: "The path to prepackaged app (to pack in a distributable format)"
|
||||
}).option("projectDir", {
|
||||
alias: ["project"],
|
||||
group: buildGroup,
|
||||
description: "The path to project directory. Defaults to current working directory."
|
||||
}).option("config", {
|
||||
alias: ["c"],
|
||||
group: buildGroup,
|
||||
description: "The path to an electron-builder config. Defaults to `electron-builder.yml` (or `json`, or `json5`), see " + _chalk().default.underline("https://goo.gl/YFRJOM")
|
||||
}).group(["help", "version"], "Other:").example("electron-builder -mwl", "build for macOS, Windows and Linux").example("electron-builder --linux deb tar.xz", "build deb and tar.xz for Linux").example("electron-builder --win --ia32", "build for Windows ia32").example("electron-builder -c.extraMetadata.foo=bar", "set package.json property `foo` to `bar`").example("electron-builder --config.nsis.unicode=false", "configure unicode options for NSIS");
|
||||
}
|
||||
// __ts-babel@6.0.4
|
||||
//# sourceMappingURL=builder.js.map
|
1
buildfiles/node_modules/electron-builder/out/builder.js.map
generated
vendored
Normal file
1
buildfiles/node_modules/electron-builder/out/builder.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
buildfiles/node_modules/electron-builder/out/cli/cli.d.ts
generated
vendored
Normal file
2
buildfiles/node_modules/electron-builder/out/cli/cli.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
#! /usr/bin/env node
|
||||
export {};
|
213
buildfiles/node_modules/electron-builder/out/cli/cli.js
generated
vendored
Executable file
213
buildfiles/node_modules/electron-builder/out/cli/cli.js
generated
vendored
Executable file
@ -0,0 +1,213 @@
|
||||
#! /usr/bin/env node
|
||||
"use strict";
|
||||
|
||||
function _builderUtil() {
|
||||
const data = require("builder-util");
|
||||
|
||||
_builderUtil = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _chalk() {
|
||||
const data = _interopRequireDefault(require("chalk"));
|
||||
|
||||
_chalk = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _electronVersion() {
|
||||
const data = require("app-builder-lib/out/electron/electronVersion");
|
||||
|
||||
_electronVersion = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _yarn() {
|
||||
const data = require("app-builder-lib/out/util/yarn");
|
||||
|
||||
_yarn = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _fsExtra() {
|
||||
const data = require("fs-extra");
|
||||
|
||||
_fsExtra = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _isCi() {
|
||||
const data = _interopRequireDefault(require("is-ci"));
|
||||
|
||||
_isCi = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
var path = _interopRequireWildcard(require("path"));
|
||||
|
||||
function _readConfigFile() {
|
||||
const data = require("read-config-file");
|
||||
|
||||
_readConfigFile = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _updateNotifier() {
|
||||
const data = _interopRequireDefault(require("update-notifier"));
|
||||
|
||||
_updateNotifier = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _util() {
|
||||
const data = require("builder-util/out/util");
|
||||
|
||||
_util = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _builder() {
|
||||
const data = require("../builder");
|
||||
|
||||
_builder = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _createSelfSignedCert() {
|
||||
const data = require("./create-self-signed-cert");
|
||||
|
||||
_createSelfSignedCert = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _installAppDeps() {
|
||||
const data = require("./install-app-deps");
|
||||
|
||||
_installAppDeps = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _start() {
|
||||
const data = require("./start");
|
||||
|
||||
_start = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
// tslint:disable:no-unused-expression
|
||||
(0, _builder().createYargs)().command(["build", "*"], "Build", _builder().configureBuildCommand, wrap(_builder().build)).command("install-app-deps", "Install app deps", _installAppDeps().configureInstallAppDepsCommand, wrap(_installAppDeps().installAppDeps)).command("node-gyp-rebuild", "Rebuild own native code", _installAppDeps().configureInstallAppDepsCommand
|
||||
/* yes, args the same as for install app deps */
|
||||
, wrap(rebuildAppNativeCode)).command("create-self-signed-cert", "Create self-signed code signing cert for Windows apps", yargs => yargs.option("publisher", {
|
||||
alias: ["p"],
|
||||
type: "string",
|
||||
requiresArg: true,
|
||||
description: "The publisher name"
|
||||
}).demandOption("publisher"), wrap(argv => (0, _createSelfSignedCert().createSelfSignedCert)(argv.publisher))).command("start", "Run application in a development mode using electron-webpack", yargs => yargs, wrap(() => (0, _start().start)())).help().epilog(`See ${_chalk().default.underline("https://electron.build")} for more documentation.`).strict().recommendCommands().argv;
|
||||
|
||||
function wrap(task) {
|
||||
return args => {
|
||||
checkIsOutdated();
|
||||
(0, _readConfigFile().loadEnv)(path.join(process.cwd(), "electron-builder.env")).then(() => task(args)).catch(error => {
|
||||
process.exitCode = 1; // https://github.com/electron-userland/electron-builder/issues/2940
|
||||
|
||||
process.on("exit", () => process.exitCode = 1);
|
||||
|
||||
if (error instanceof _builderUtil().InvalidConfigurationError) {
|
||||
_builderUtil().log.error(null, error.message);
|
||||
} else if (!(error instanceof _util().ExecError) || !error.alreadyLogged) {
|
||||
_builderUtil().log.error({
|
||||
stackTrace: error.stack
|
||||
}, error.message);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
function checkIsOutdated() {
|
||||
if (_isCi().default || process.env.NO_UPDATE_NOTIFIER != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
(0, _fsExtra().readJson)(path.join(__dirname, "..", "..", "package.json")).then(async it => {
|
||||
if (it.version === "0.0.0-semantic-release") {
|
||||
return;
|
||||
}
|
||||
|
||||
const packageManager = (await (0, _fsExtra().pathExists)(path.join(__dirname, "..", "..", "package-lock.json"))) ? "npm" : "yarn";
|
||||
const notifier = (0, _updateNotifier().default)({
|
||||
pkg: it
|
||||
});
|
||||
|
||||
if (notifier.update != null) {
|
||||
notifier.notify({
|
||||
message: `Update available ${_chalk().default.dim(notifier.update.current)}${_chalk().default.reset(" → ")}${_chalk().default.green(notifier.update.latest)} \nRun ${_chalk().default.cyan(`${packageManager} upgrade electron-builder`)} to update`
|
||||
});
|
||||
}
|
||||
}).catch(e => _builderUtil().log.warn({
|
||||
error: e
|
||||
}, "cannot check updates"));
|
||||
}
|
||||
|
||||
async function rebuildAppNativeCode(args) {
|
||||
const projectDir = process.cwd();
|
||||
|
||||
_builderUtil().log.info({
|
||||
platform: args.platform,
|
||||
arch: args.arch
|
||||
}, "executing node-gyp rebuild"); // this script must be used only for electron
|
||||
|
||||
|
||||
await (0, _builderUtil().exec)(process.platform === "win32" ? "node-gyp.cmd" : "node-gyp", ["rebuild"], {
|
||||
env: (0, _yarn().getGypEnv)({
|
||||
version: await (0, _electronVersion().getElectronVersion)(projectDir),
|
||||
useCustomDist: true
|
||||
}, args.platform, args.arch, true)
|
||||
});
|
||||
}
|
||||
// __ts-babel@6.0.4
|
||||
//# sourceMappingURL=cli.js.map
|
1
buildfiles/node_modules/electron-builder/out/cli/cli.js.map
generated
vendored
Normal file
1
buildfiles/node_modules/electron-builder/out/cli/cli.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
buildfiles/node_modules/electron-builder/out/cli/create-self-signed-cert.d.ts
generated
vendored
Normal file
1
buildfiles/node_modules/electron-builder/out/cli/create-self-signed-cert.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export {};
|
121
buildfiles/node_modules/electron-builder/out/cli/create-self-signed-cert.js
generated
vendored
Normal file
121
buildfiles/node_modules/electron-builder/out/cli/create-self-signed-cert.js
generated
vendored
Normal file
@ -0,0 +1,121 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.createSelfSignedCert = createSelfSignedCert;
|
||||
|
||||
function _builderUtil() {
|
||||
const data = require("builder-util");
|
||||
|
||||
_builderUtil = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _fs() {
|
||||
const data = require("builder-util/out/fs");
|
||||
|
||||
_fs = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _chalk() {
|
||||
const data = _interopRequireDefault(require("chalk"));
|
||||
|
||||
_chalk = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _windowsCodeSign() {
|
||||
const data = require("app-builder-lib/out/codeSign/windowsCodeSign");
|
||||
|
||||
_windowsCodeSign = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _fsExtra() {
|
||||
const data = require("fs-extra");
|
||||
|
||||
_fsExtra = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
var path = _interopRequireWildcard(require("path"));
|
||||
|
||||
function _sanitizeFilename() {
|
||||
const data = _interopRequireDefault(require("sanitize-filename"));
|
||||
|
||||
_sanitizeFilename = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
/** @internal */
|
||||
async function createSelfSignedCert(publisher) {
|
||||
const tmpDir = new (_builderUtil().TmpDir)("create-self-signed-cert");
|
||||
const targetDir = process.cwd();
|
||||
const tempPrefix = path.join(await tmpDir.getTempDir({
|
||||
prefix: "self-signed-cert-creator"
|
||||
}), (0, _sanitizeFilename().default)(publisher));
|
||||
const cer = `${tempPrefix}.cer`;
|
||||
const pvk = `${tempPrefix}.pvk`;
|
||||
|
||||
_builderUtil().log.info(_chalk().default.bold('When asked to enter a password ("Create Private Key Password"), please select "None".'));
|
||||
|
||||
try {
|
||||
await (0, _fsExtra().ensureDir)(path.dirname(tempPrefix));
|
||||
const vendorPath = path.join(await (0, _windowsCodeSign().getSignVendorPath)(), "windows-10", process.arch);
|
||||
await (0, _builderUtil().exec)(path.join(vendorPath, "makecert.exe"), ["-r", "-h", "0", "-n", `CN=${quoteString(publisher)}`, "-eku", "1.3.6.1.5.5.7.3.3", "-pe", "-sv", pvk, cer]);
|
||||
const pfx = path.join(targetDir, `${(0, _sanitizeFilename().default)(publisher)}.pfx`);
|
||||
await (0, _fs().unlinkIfExists)(pfx);
|
||||
await (0, _builderUtil().exec)(path.join(vendorPath, "pvk2pfx.exe"), ["-pvk", pvk, "-spc", cer, "-pfx", pfx]);
|
||||
|
||||
_builderUtil().log.info({
|
||||
file: pfx
|
||||
}, `created. Please see https://electron.build/code-signing how to use it to sign.`);
|
||||
|
||||
const certLocation = "Cert:\\LocalMachine\\TrustedPeople";
|
||||
|
||||
_builderUtil().log.info({
|
||||
file: pfx,
|
||||
certLocation
|
||||
}, `importing. Operation will be succeed only if runned from root. Otherwise import file manually.`);
|
||||
|
||||
await (0, _builderUtil().spawn)("powershell.exe", ["-NoProfile", "-NonInteractive", "-Command", "Import-PfxCertificate", "-FilePath", `"${pfx}"`, "-CertStoreLocation", ""]);
|
||||
} finally {
|
||||
await tmpDir.cleanup();
|
||||
}
|
||||
}
|
||||
|
||||
function quoteString(s) {
|
||||
if (!s.includes(",") && !s.includes('"')) {
|
||||
return s;
|
||||
}
|
||||
|
||||
return `"${s.replace(/"/g, '\\"')}"`;
|
||||
}
|
||||
// __ts-babel@6.0.4
|
||||
//# sourceMappingURL=create-self-signed-cert.js.map
|
1
buildfiles/node_modules/electron-builder/out/cli/create-self-signed-cert.js.map
generated
vendored
Normal file
1
buildfiles/node_modules/electron-builder/out/cli/create-self-signed-cert.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/cli/create-self-signed-cert.ts"],"names":[],"mappings":";;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;;;;;;;AAEA;AACO,eAAe,oBAAf,CAAoC,SAApC,EAAqD;AAC1D,QAAM,MAAM,GAAG,KAAI,qBAAJ,EAAW,yBAAX,CAAf;AACA,QAAM,SAAS,GAAG,OAAO,CAAC,GAAR,EAAlB;AACA,QAAM,UAAU,GAAG,IAAI,CAAC,IAAL,CAAU,MAAM,MAAM,CAAC,UAAP,CAAkB;AAAC,IAAA,MAAM,EAAE;AAAT,GAAlB,CAAhB,EAAyE,iCAAiB,SAAjB,CAAzE,CAAnB;AACA,QAAM,GAAG,GAAG,GAAG,UAAU,MAAzB;AACA,QAAM,GAAG,GAAG,GAAG,UAAU,MAAzB;;AAEA,qBAAI,IAAJ,CAAS,iBAAM,IAAN,CAAW,uFAAX,CAAT;;AAEA,MAAI;AACF,UAAM,0BAAU,IAAI,CAAC,OAAL,CAAa,UAAb,CAAV,CAAN;AACA,UAAM,UAAU,GAAG,IAAI,CAAC,IAAL,CAAU,MAAM,2CAAhB,EAAqC,YAArC,EAAmD,OAAO,CAAC,IAA3D,CAAnB;AACA,UAAM,yBAAK,IAAI,CAAC,IAAL,CAAU,UAAV,EAAsB,cAAtB,CAAL,EACJ,CAAC,IAAD,EAAO,IAAP,EAAa,GAAb,EAAkB,IAAlB,EAAwB,MAAM,WAAW,CAAC,SAAD,CAAW,EAApD,EAAwD,MAAxD,EAAgE,mBAAhE,EAAqF,KAArF,EAA4F,KAA5F,EAAmG,GAAnG,EAAwG,GAAxG,CADI,CAAN;AAGA,UAAM,GAAG,GAAG,IAAI,CAAC,IAAL,CAAU,SAAV,EAAqB,GAAG,iCAAiB,SAAjB,CAA2B,MAAnD,CAAZ;AACA,UAAM,0BAAe,GAAf,CAAN;AACA,UAAM,yBAAK,IAAI,CAAC,IAAL,CAAU,UAAV,EAAsB,aAAtB,CAAL,EAA2C,CAAC,MAAD,EAAS,GAAT,EAAc,MAAd,EAAsB,GAAtB,EAA2B,MAA3B,EAAmC,GAAnC,CAA3C,CAAN;;AACA,uBAAI,IAAJ,CAAS;AAAC,MAAA,IAAI,EAAE;AAAP,KAAT,EAAsB,gFAAtB;;AAEA,UAAM,YAAY,GAAG,oCAArB;;AACA,uBAAI,IAAJ,CAAS;AAAC,MAAA,IAAI,EAAE,GAAP;AAAY,MAAA;AAAZ,KAAT,EAAoC,gGAApC;;AACA,UAAM,0BAAM,gBAAN,EAAwB,CAAC,YAAD,EAAe,iBAAf,EAAkC,UAAlC,EAA8C,uBAA9C,EAAuE,WAAvE,EAAoF,IAAI,GAAG,GAA3F,EAAgG,oBAAhG,EAAsH,EAAtH,CAAxB,CAAN;AACD,GAdD,SAeQ;AACN,UAAM,MAAM,CAAC,OAAP,EAAN;AACD;AACF;;AAED,SAAS,WAAT,CAAqB,CAArB,EAA8B;AAC5B,MAAI,CAAC,CAAC,CAAC,QAAF,CAAW,GAAX,CAAD,IAAoB,CAAC,CAAC,CAAC,QAAF,CAAW,GAAX,CAAzB,EAA0C;AACxC,WAAO,CAAP;AACD;;AAED,SAAO,IAAI,CAAC,CAAC,OAAF,CAAU,IAAV,EAAgB,KAAhB,CAAsB,GAAjC;AACD,C","sourcesContent":["import { exec, log, spawn, TmpDir } from \"builder-util\"\nimport { unlinkIfExists } from \"builder-util/out/fs\"\nimport chalk from \"chalk\"\nimport { getSignVendorPath } from \"app-builder-lib/out/codeSign/windowsCodeSign\"\nimport { ensureDir } from \"fs-extra\"\nimport * as path from \"path\"\nimport sanitizeFileName from \"sanitize-filename\"\n\n/** @internal */\nexport async function createSelfSignedCert(publisher: string) {\n const tmpDir = new TmpDir(\"create-self-signed-cert\")\n const targetDir = process.cwd()\n const tempPrefix = path.join(await tmpDir.getTempDir({prefix: \"self-signed-cert-creator\"}), sanitizeFileName(publisher))\n const cer = `${tempPrefix}.cer`\n const pvk = `${tempPrefix}.pvk`\n\n log.info(chalk.bold('When asked to enter a password (\"Create Private Key Password\"), please select \"None\".'))\n\n try {\n await ensureDir(path.dirname(tempPrefix))\n const vendorPath = path.join(await getSignVendorPath(), \"windows-10\", process.arch)\n await exec(path.join(vendorPath, \"makecert.exe\"),\n [\"-r\", \"-h\", \"0\", \"-n\", `CN=${quoteString(publisher)}`, \"-eku\", \"1.3.6.1.5.5.7.3.3\", \"-pe\", \"-sv\", pvk, cer])\n\n const pfx = path.join(targetDir, `${sanitizeFileName(publisher)}.pfx`)\n await unlinkIfExists(pfx)\n await exec(path.join(vendorPath, \"pvk2pfx.exe\"), [\"-pvk\", pvk, \"-spc\", cer, \"-pfx\", pfx])\n log.info({file: pfx}, `created. Please see https://electron.build/code-signing how to use it to sign.`)\n\n const certLocation = \"Cert:\\\\LocalMachine\\\\TrustedPeople\"\n log.info({file: pfx, certLocation}, `importing. Operation will be succeed only if runned from root. Otherwise import file manually.`)\n await spawn(\"powershell.exe\", [\"-NoProfile\", \"-NonInteractive\", \"-Command\", \"Import-PfxCertificate\", \"-FilePath\", `\"${pfx}\"`, \"-CertStoreLocation\", \"\"])\n }\n finally {\n await tmpDir.cleanup()\n }\n}\n\nfunction quoteString(s: string): string {\n if (!s.includes(\",\") && !s.includes('\"')) {\n return s\n }\n\n return `\"${s.replace(/\"/g, '\\\\\"')}\"`\n}"],"sourceRoot":""}
|
2
buildfiles/node_modules/electron-builder/out/cli/install-app-deps.d.ts
generated
vendored
Normal file
2
buildfiles/node_modules/electron-builder/out/cli/install-app-deps.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
#! /usr/bin/env node
|
||||
export {};
|
175
buildfiles/node_modules/electron-builder/out/cli/install-app-deps.js
generated
vendored
Executable file
175
buildfiles/node_modules/electron-builder/out/cli/install-app-deps.js
generated
vendored
Executable file
@ -0,0 +1,175 @@
|
||||
#! /usr/bin/env node
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.configureInstallAppDepsCommand = configureInstallAppDepsCommand;
|
||||
exports.installAppDeps = installAppDeps;
|
||||
|
||||
function _builderUtil() {
|
||||
const data = require("builder-util");
|
||||
|
||||
_builderUtil = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _promise() {
|
||||
const data = require("builder-util/out/promise");
|
||||
|
||||
_promise = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _config() {
|
||||
const data = require("app-builder-lib/out/util/config");
|
||||
|
||||
_config = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _electronVersion() {
|
||||
const data = require("app-builder-lib/out/electron/electronVersion");
|
||||
|
||||
_electronVersion = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _packageDependencies() {
|
||||
const data = require("app-builder-lib/out/util/packageDependencies");
|
||||
|
||||
_packageDependencies = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _yarn() {
|
||||
const data = require("app-builder-lib/out/util/yarn");
|
||||
|
||||
_yarn = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _fsExtra() {
|
||||
const data = require("fs-extra");
|
||||
|
||||
_fsExtra = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _lazyVal() {
|
||||
const data = require("lazy-val");
|
||||
|
||||
_lazyVal = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
var path = _interopRequireWildcard(require("path"));
|
||||
|
||||
function _readConfigFile() {
|
||||
const data = require("read-config-file");
|
||||
|
||||
_readConfigFile = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _yargs() {
|
||||
const data = _interopRequireDefault(require("yargs"));
|
||||
|
||||
_yargs = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
/** @internal */
|
||||
function configureInstallAppDepsCommand(yargs) {
|
||||
// https://github.com/yargs/yargs/issues/760
|
||||
// demandOption is required to be set
|
||||
return yargs.parserConfiguration({
|
||||
"camel-case-expansion": false
|
||||
}).option("platform", {
|
||||
choices: ["linux", "darwin", "win32"],
|
||||
default: process.platform,
|
||||
description: "The target platform"
|
||||
}).option("arch", {
|
||||
choices: (0, _builderUtil().getArchCliNames)().concat("all"),
|
||||
default: process.arch === "arm" ? "armv7l" : process.arch,
|
||||
description: "The target arch"
|
||||
});
|
||||
}
|
||||
/** @internal */
|
||||
|
||||
|
||||
async function installAppDeps(args) {
|
||||
try {
|
||||
_builderUtil().log.info({
|
||||
version: "22.9.1"
|
||||
}, "electron-builder");
|
||||
} catch (e) {
|
||||
// error in dev mode without babel
|
||||
if (!(e instanceof ReferenceError)) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
const projectDir = process.cwd();
|
||||
const packageMetadata = new (_lazyVal().Lazy)(() => (0, _readConfigFile().orNullIfFileNotExist)((0, _fsExtra().readJson)(path.join(projectDir, "package.json"))));
|
||||
const config = await (0, _config().getConfig)(projectDir, null, null, packageMetadata);
|
||||
const results = await Promise.all([(0, _config().computeDefaultAppDirectory)(projectDir, (0, _builderUtil().use)(config.directories, it => it.app)), (0, _electronVersion().getElectronVersion)(projectDir, config, packageMetadata)]); // if two package.json — force full install (user wants to install/update app deps in addition to dev)
|
||||
|
||||
await (0, _yarn().installOrRebuild)(config, results[0], {
|
||||
frameworkInfo: {
|
||||
version: results[1],
|
||||
useCustomDist: true
|
||||
},
|
||||
platform: args.platform,
|
||||
arch: args.arch,
|
||||
productionDeps: (0, _packageDependencies().createLazyProductionDeps)(results[0], null)
|
||||
}, results[0] !== projectDir);
|
||||
}
|
||||
|
||||
function main() {
|
||||
return installAppDeps(configureInstallAppDepsCommand(_yargs().default).argv);
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
_builderUtil().log.warn("please use as subcommand: electron-builder install-app-deps");
|
||||
|
||||
main().catch(_promise().printErrorAndExit);
|
||||
}
|
||||
// __ts-babel@6.0.4
|
||||
//# sourceMappingURL=install-app-deps.js.map
|
1
buildfiles/node_modules/electron-builder/out/cli/install-app-deps.js.map
generated
vendored
Normal file
1
buildfiles/node_modules/electron-builder/out/cli/install-app-deps.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/cli/install-app-deps.ts"],"names":[],"mappings":"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","sourcesContent":["#! /usr/bin/env node\n\nimport { log, use, getArchCliNames } from \"builder-util\"\nimport { printErrorAndExit } from \"builder-util/out/promise\"\nimport { computeDefaultAppDirectory, getConfig } from \"app-builder-lib/out/util/config\"\nimport { getElectronVersion } from \"app-builder-lib/out/electron/electronVersion\"\nimport { createLazyProductionDeps } from \"app-builder-lib/out/util/packageDependencies\"\nimport { installOrRebuild } from \"app-builder-lib/out/util/yarn\"\nimport { readJson } from \"fs-extra\"\nimport { Lazy } from \"lazy-val\"\nimport * as path from \"path\"\nimport { orNullIfFileNotExist } from \"read-config-file\"\nimport yargs from \"yargs\"\n\ndeclare const PACKAGE_VERSION: string\n\n/** @internal */\nexport function configureInstallAppDepsCommand(yargs: yargs.Argv): yargs.Argv {\n // https://github.com/yargs/yargs/issues/760\n // demandOption is required to be set\n return yargs\n .parserConfiguration({\n \"camel-case-expansion\": false,\n })\n .option(\"platform\", {\n choices: [\"linux\", \"darwin\", \"win32\"],\n default: process.platform,\n description: \"The target platform\",\n })\n .option(\"arch\", {\n choices: getArchCliNames().concat(\"all\"),\n default: process.arch === \"arm\" ? \"armv7l\" : process.arch,\n description: \"The target arch\",\n })\n}\n\n/** @internal */\nexport async function installAppDeps(args: any) {\n try {\n log.info({version: PACKAGE_VERSION}, \"electron-builder\")\n }\n catch (e) {\n // error in dev mode without babel\n if (!(e instanceof ReferenceError)) {\n throw e\n }\n }\n\n const projectDir = process.cwd()\n const packageMetadata = new Lazy(() => orNullIfFileNotExist(readJson(path.join(projectDir, \"package.json\"))))\n const config = await getConfig(projectDir, null, null, packageMetadata)\n const results = await Promise.all<string>([\n computeDefaultAppDirectory(projectDir, use(config.directories, it => it!.app)),\n getElectronVersion(projectDir, config, packageMetadata),\n ])\n\n // if two package.json — force full install (user wants to install/update app deps in addition to dev)\n await installOrRebuild(config, results[0], {\n frameworkInfo: {version: results[1], useCustomDist: true},\n platform: args.platform,\n arch: args.arch,\n productionDeps: createLazyProductionDeps(results[0], null),\n }, results[0] !== projectDir)\n}\n\nfunction main() {\n return installAppDeps(configureInstallAppDepsCommand(yargs).argv)\n}\n\nif (require.main === module) {\n log.warn(\"please use as subcommand: electron-builder install-app-deps\")\n main()\n .catch(printErrorAndExit)\n}"],"sourceRoot":""}
|
1
buildfiles/node_modules/electron-builder/out/cli/start.d.ts
generated
vendored
Normal file
1
buildfiles/node_modules/electron-builder/out/cli/start.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export {};
|
13
buildfiles/node_modules/electron-builder/out/cli/start.js
generated
vendored
Normal file
13
buildfiles/node_modules/electron-builder/out/cli/start.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.start = start;
|
||||
|
||||
/** @internal */
|
||||
async function start() {
|
||||
require("electron-webpack/dev-runner");
|
||||
}
|
||||
// __ts-babel@6.0.4
|
||||
//# sourceMappingURL=start.js.map
|
1
buildfiles/node_modules/electron-builder/out/cli/start.js.map
generated
vendored
Normal file
1
buildfiles/node_modules/electron-builder/out/cli/start.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/cli/start.ts"],"names":[],"mappings":";;;;;;;AAAA;AACO,eAAe,KAAf,GAAoB;AACzB,EAAA,OAAO,CAAC,6BAAD,CAAP;AACD,C","sourcesContent":["/** @internal */\nexport async function start() {\n require(\"electron-webpack/dev-runner\")\n}"],"sourceRoot":""}
|
5
buildfiles/node_modules/electron-builder/out/index.d.ts
generated
vendored
Normal file
5
buildfiles/node_modules/electron-builder/out/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export { getArchSuffix, Arch, archFromString } from "builder-util";
|
||||
export { build, CliOptions, createTargets } from "./builder";
|
||||
export { TargetConfiguration, Platform, Target, DIR_TARGET, BeforeBuildContext, SourceRepositoryInfo, TargetSpecificOptions, TargetConfigType, DEFAULT_TARGET, CompressionLevel, MacConfiguration, DmgOptions, MasConfiguration, MacOsTargetName, PkgOptions, DmgContent, DmgWindow, PlatformSpecificBuildOptions, AsarOptions, FileSet, LinuxConfiguration, DebOptions, CommonLinuxOptions, LinuxTargetSpecificOptions, AppImageOptions, Configuration, AfterPackContext, MetadataDirectories, Protocol, ReleaseInfo, ElectronDownloadOptions, SnapOptions, CommonWindowsInstallerConfiguration, FileAssociation, MsiOptions, AppXOptions, WindowsConfiguration, Packager, BuildResult, PackagerOptions, ArtifactCreated, ArtifactBuildStarted, NsisOptions, NsisWebOptions, PortableOptions, CommonNsisOptions, SquirrelWindowsOptions, WindowsSignOptions, CustomWindowsSignTaskConfiguration, WindowsSignTaskConfiguration, CustomWindowsSign, FileCodeSigningInfo, CertificateFromStoreInfo, Metadata, AuthorMetadata, RepositoryInfo, AppInfo, UploadTask, PublishManager, PublishOptions, ProgressInfo } from "app-builder-lib";
|
||||
export { buildForge, ForgeOptions } from "app-builder-lib";
|
||||
export { CancellationToken } from "builder-util-runtime";
|
131
buildfiles/node_modules/electron-builder/out/index.js
generated
vendored
Normal file
131
buildfiles/node_modules/electron-builder/out/index.js
generated
vendored
Normal file
@ -0,0 +1,131 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "getArchSuffix", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _builderUtil().getArchSuffix;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "Arch", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _builderUtil().Arch;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "archFromString", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _builderUtil().archFromString;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "build", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _builder().build;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "createTargets", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _builder().createTargets;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "Platform", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _appBuilderLib().Platform;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "Target", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _appBuilderLib().Target;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "DIR_TARGET", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _appBuilderLib().DIR_TARGET;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "DEFAULT_TARGET", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _appBuilderLib().DEFAULT_TARGET;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "Packager", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _appBuilderLib().Packager;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "AppInfo", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _appBuilderLib().AppInfo;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "PublishManager", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _appBuilderLib().PublishManager;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "buildForge", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _appBuilderLib().buildForge;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "CancellationToken", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _builderUtilRuntime().CancellationToken;
|
||||
}
|
||||
});
|
||||
|
||||
function _builderUtil() {
|
||||
const data = require("builder-util");
|
||||
|
||||
_builderUtil = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _builder() {
|
||||
const data = require("./builder");
|
||||
|
||||
_builder = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _appBuilderLib() {
|
||||
const data = require("app-builder-lib");
|
||||
|
||||
_appBuilderLib = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _builderUtilRuntime() {
|
||||
const data = require("builder-util-runtime");
|
||||
|
||||
_builderUtilRuntime = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
// __ts-babel@6.0.4
|
||||
//# sourceMappingURL=index.js.map
|
1
buildfiles/node_modules/electron-builder/out/index.js.map
generated
vendored
Normal file
1
buildfiles/node_modules/electron-builder/out/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAcA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA","sourcesContent":["export { getArchSuffix, Arch, archFromString } from \"builder-util\"\nexport { build, CliOptions, createTargets } from \"./builder\"\nexport {\n TargetConfiguration, Platform, Target, DIR_TARGET, BeforeBuildContext, SourceRepositoryInfo, TargetSpecificOptions, TargetConfigType, DEFAULT_TARGET, CompressionLevel,\n MacConfiguration, DmgOptions, MasConfiguration, MacOsTargetName, PkgOptions, DmgContent, DmgWindow,\n PlatformSpecificBuildOptions, AsarOptions, FileSet,\n LinuxConfiguration, DebOptions, CommonLinuxOptions, LinuxTargetSpecificOptions, AppImageOptions,\n Configuration, AfterPackContext, MetadataDirectories, Protocol, ReleaseInfo, ElectronDownloadOptions,\n SnapOptions, CommonWindowsInstallerConfiguration, FileAssociation, MsiOptions, AppXOptions, WindowsConfiguration,\n Packager, BuildResult, PackagerOptions, ArtifactCreated, ArtifactBuildStarted,\n NsisOptions, NsisWebOptions, PortableOptions, CommonNsisOptions, SquirrelWindowsOptions,\n WindowsSignOptions, CustomWindowsSignTaskConfiguration, WindowsSignTaskConfiguration, CustomWindowsSign, FileCodeSigningInfo, CertificateFromStoreInfo,\n Metadata, AuthorMetadata, RepositoryInfo, AppInfo,\n UploadTask, PublishManager, PublishOptions, ProgressInfo\n} from \"app-builder-lib\"\nexport { buildForge, ForgeOptions } from \"app-builder-lib\"\nexport { CancellationToken } from \"builder-util-runtime\"\n"],"sourceRoot":""}
|
Reference in New Issue
Block a user