update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
21
electron/node_modules/builder-util-runtime/out/publishOptions.js
generated
vendored
21
electron/node_modules/builder-util-runtime/out/publishOptions.js
generated
vendored
|
|
@ -1,11 +1,22 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getS3LikeProviderBaseUrl = exports.githubUrl = void 0;
|
||||
exports.githubUrl = githubUrl;
|
||||
exports.githubTagPrefix = githubTagPrefix;
|
||||
exports.getS3LikeProviderBaseUrl = getS3LikeProviderBaseUrl;
|
||||
/** @private */
|
||||
function githubUrl(options, defaultHost = "github.com") {
|
||||
return `${options.protocol || "https"}://${options.host || defaultHost}`;
|
||||
}
|
||||
exports.githubUrl = githubUrl;
|
||||
function githubTagPrefix(options) {
|
||||
var _a;
|
||||
if (options.tagNamePrefix) {
|
||||
return options.tagNamePrefix;
|
||||
}
|
||||
if ((_a = options.vPrefixedTagName) !== null && _a !== void 0 ? _a : true) {
|
||||
return "v";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
function getS3LikeProviderBaseUrl(configuration) {
|
||||
const provider = configuration.provider;
|
||||
if (provider === "s3") {
|
||||
|
|
@ -16,10 +27,12 @@ function getS3LikeProviderBaseUrl(configuration) {
|
|||
}
|
||||
throw new Error(`Not supported provider: ${provider}`);
|
||||
}
|
||||
exports.getS3LikeProviderBaseUrl = getS3LikeProviderBaseUrl;
|
||||
function s3Url(options) {
|
||||
let url;
|
||||
if (options.endpoint != null) {
|
||||
if (options.accelerate == true) {
|
||||
url = `https://${options.bucket}.s3-accelerate.amazonaws.com`;
|
||||
}
|
||||
else if (options.endpoint != null) {
|
||||
url = `${options.endpoint}/${options.bucket}`;
|
||||
}
|
||||
else if (options.bucket.includes(".")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue