update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
15
electron/node_modules/app-builder-lib/out/ProtonFramework.js
generated
vendored
15
electron/node_modules/app-builder-lib/out/ProtonFramework.js
generated
vendored
|
|
@ -8,21 +8,21 @@ const fileTransformer_1 = require("./fileTransformer");
|
|||
const LibUiFramework_1 = require("./frameworks/LibUiFramework");
|
||||
const pathManager_1 = require("./util/pathManager");
|
||||
class ProtonFramework extends LibUiFramework_1.LibUiFramework {
|
||||
constructor(version, distMacOsAppName, isUseLaunchUi) {
|
||||
super(version, distMacOsAppName, isUseLaunchUi);
|
||||
constructor(version, macOsProductName, isUseLaunchUi) {
|
||||
super(version, macOsProductName, isUseLaunchUi);
|
||||
this.name = "proton";
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
this.defaultAppIdPrefix = "com.proton-native.";
|
||||
}
|
||||
getDefaultIcon(platform) {
|
||||
if (platform === core_1.Platform.WINDOWS) {
|
||||
return pathManager_1.getTemplatePath("icons/proton-native/proton-native.ico");
|
||||
return (0, pathManager_1.getTemplatePath)("icons/proton-native/proton-native.ico");
|
||||
}
|
||||
else if (platform === core_1.Platform.LINUX) {
|
||||
return pathManager_1.getTemplatePath("icons/proton-native/linux");
|
||||
return (0, pathManager_1.getTemplatePath)("icons/proton-native/linux");
|
||||
}
|
||||
else {
|
||||
return pathManager_1.getTemplatePath("icons/proton-native/proton-native.icns");
|
||||
return (0, pathManager_1.getTemplatePath)("icons/proton-native/proton-native.icns");
|
||||
}
|
||||
}
|
||||
createTransformer() {
|
||||
|
|
@ -30,21 +30,20 @@ class ProtonFramework extends LibUiFramework_1.LibUiFramework {
|
|||
const babelOptions = { ast: false, sourceMaps: "inline" };
|
||||
if (process.env.TEST_SET_BABEL_PRESET === "true") {
|
||||
babel = require("@babel/core");
|
||||
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
||||
babel = testOnlyBabel(babel, babelOptions, this.version);
|
||||
}
|
||||
else {
|
||||
try {
|
||||
babel = require("babel-core");
|
||||
}
|
||||
catch (e) {
|
||||
catch (_e) {
|
||||
// babel isn't installed
|
||||
builder_util_1.log.debug(null, "don't transpile source code using Babel");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
builder_util_1.log.info({
|
||||
options: builder_util_runtime_1.safeStringifyJson(babelOptions, new Set(["presets"])),
|
||||
options: (0, builder_util_runtime_1.safeStringifyJson)(babelOptions, new Set(["presets"])),
|
||||
}, "transpile source code using Babel");
|
||||
return (file) => {
|
||||
if (!(file.endsWith(".js") || file.endsWith(".jsx")) || file.includes(fileTransformer_1.NODE_MODULES_PATTERN)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue