You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Moved electronLanguages to global config to support win/linux (#7516)
* Removing `remoteBuild` functionality, it stopped working long ago when the service died.
* Moved `electronLanguages` to global config to support win/linux
Copy file name to clipboardexpand all lines: docs/configuration/configuration.md
+9-7
Original file line number
Diff line number
Diff line change
@@ -175,13 +175,15 @@ Env file `electron-builder.env` in the current dir ([example](https://github.com
175
175
<p><code id="Configuration-beforeBuild">beforeBuild</code> (context: BeforeBuildContext) => Promise | null - The function (or path to file or module id) to be run before dependencies are installed or rebuilt. Works when <code>npmRebuild</code> is set to <code>true</code>. Resolving to <code>false</code> will skip dependencies install or rebuild.</p>
176
176
<p>If provided and <code>node_modules</code> are missing, it will not invoke production dependencies check.</p>
177
177
</li>
178
-
</ul>
179
-
<hr>
180
-
<ul>
181
-
<li><code id="Configuration-remoteBuild">remoteBuild</code> = <code>true</code> Boolean - Whether to build using Electron Build Service if target not supported on current OS.</li>
182
-
<li><code id="Configuration-includePdb">includePdb</code> = <code>false</code> Boolean - Whether to include PDB files.</li>
183
-
<li><code id="Configuration-removePackageScripts">removePackageScripts</code> = <code>true</code> Boolean - Whether to remove <code>scripts</code> field from <code>package.json</code> files.</li>
184
-
<li><code id="Configuration-removePackageKeywords">removePackageKeywords</code> = <code>true</code> Boolean - Whether to remove <code>keywords</code> field from <code>package.json</code> files.</li>
178
+
<li>
179
+
<p><code id="Configuration-includePdb">includePdb</code> = <code>false</code> Boolean - Whether to include PDB files.</p>
180
+
</li>
181
+
<li>
182
+
<p><code id="Configuration-removePackageScripts">removePackageScripts</code> = <code>true</code> Boolean - Whether to remove <code>scripts</code> field from <code>package.json</code> files.</p>
183
+
</li>
184
+
<li>
185
+
<p><code id="Configuration-removePackageKeywords">removePackageKeywords</code> = <code>true</code> Boolean - Whether to remove <code>keywords</code> field from <code>package.json</code> files.</p>
Copy file name to clipboardexpand all lines: docs/configuration/mac.md
-3
Original file line number
Diff line number
Diff line change
@@ -72,9 +72,6 @@ The top-level [mac](configuration.md#Configuration-mac) key contains set of opti
72
72
<p><codeid="MacConfiguration-requirements">requirements</code> String | “undefined” - Path of <ahref="https://developer.apple.com/library/mac/documentation/Security/Conceptual/CodeSigningGuide/RequirementLang/RequirementLang.html">requirements file</a> used in signing. Not applicable for MAS.</p>
73
73
</li>
74
74
<li>
75
-
<p><codeid="MacConfiguration-electronLanguages">electronLanguages</code> Array<String> | String - The electron locales. By default Electron locales used as is.</p>
76
-
</li>
77
-
<li>
78
75
<p><codeid="MacConfiguration-extraDistFiles">extraDistFiles</code> Array<String> | String | “undefined” - Extra files to put in archive. Not applicable for <code>tar.*</code>.</p>
Copy file name to clipboardexpand all lines: docs/generated/PlatformSpecificBuildOptions.md
+1
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,7 @@
66
66
<li><codeid="Protocol-role">role</code> = <code>Editor</code> “Editor” | “Viewer” | “Shell” | “None” - <em>macOS-only</em> The app’s role with respect to the type.</li>
67
67
</ul>
68
68
</li>
69
+
<li><codeid="PlatformSpecificBuildOptions-electronLanguages">electronLanguages</code> Array<String> | String - The electron locales to keep. By default, all Electron locales used as-is.</li>
Copy file name to clipboardexpand all lines: packages/app-builder-lib/scheme.json
+44-7
Original file line number
Diff line number
Diff line change
@@ -1731,6 +1731,20 @@
1731
1731
"description": "Whether to infer update channel from application version pre-release components. e.g. if version `0.12.1-alpha.1`, channel will be set to `alpha`. Otherwise to `latest`.",
1732
1732
"type": "boolean"
1733
1733
},
1734
+
"electronLanguages": {
1735
+
"anyOf": [
1736
+
{
1737
+
"items": {
1738
+
"type": "string"
1739
+
},
1740
+
"type": "array"
1741
+
},
1742
+
{
1743
+
"type": "string"
1744
+
}
1745
+
],
1746
+
"description": "The electron locales to keep. By default, all Electron locales used as-is."
1747
+
},
1734
1748
"electronUpdaterCompatibility": {
1735
1749
"description": "The [electron-updater compatibility](/auto-update#compatibility) semver range.",
1736
1750
"type": [
@@ -2394,7 +2408,7 @@
2394
2408
"type": "string"
2395
2409
}
2396
2410
],
2397
-
"description": "The electron locales. By defaultElectron locales used asis."
2411
+
"description": "The electron locales to keep. By default, all Electron locales used as-is."
2398
2412
},
2399
2413
"electronUpdaterCompatibility": {
2400
2414
"description": "The [electron-updater compatibility](/auto-update#compatibility) semver range.",
@@ -3019,7 +3033,7 @@
3019
3033
"type": "string"
3020
3034
}
3021
3035
],
3022
-
"description": "The electron locales. By defaultElectron locales used asis."
3036
+
"description": "The electron locales to keep. By default, all Electron locales used as-is."
3023
3037
},
3024
3038
"electronUpdaterCompatibility": {
3025
3039
"description": "The [electron-updater compatibility](/auto-update#compatibility) semver range.",
@@ -6006,6 +6020,20 @@
6006
6020
"description": "Whether to infer update channel from application version pre-release components. e.g. if version `0.12.1-alpha.1`, channel will be set to `alpha`. Otherwise to `latest`.",
6007
6021
"type": "boolean"
6008
6022
},
6023
+
"electronLanguages": {
6024
+
"anyOf": [
6025
+
{
6026
+
"items": {
6027
+
"type": "string"
6028
+
},
6029
+
"type": "array"
6030
+
},
6031
+
{
6032
+
"type": "string"
6033
+
}
6034
+
],
6035
+
"description": "The electron locales to keep. By default, all Electron locales used as-is."
6036
+
},
6009
6037
"electronUpdaterCompatibility": {
6010
6038
"description": "The [electron-updater compatibility](/auto-update#compatibility) semver range.",
6011
6039
"type": [
@@ -6667,6 +6695,20 @@
6667
6695
"$ref": "#/definitions/ElectronDownloadOptions",
6668
6696
"description": "The [electron-download](https://github.com/electron-userland/electron-download#usage) options."
6669
6697
},
6698
+
"electronLanguages": {
6699
+
"anyOf": [
6700
+
{
6701
+
"items": {
6702
+
"type": "string"
6703
+
},
6704
+
"type": "array"
6705
+
},
6706
+
{
6707
+
"type": "string"
6708
+
}
6709
+
],
6710
+
"description": "The electron locales to keep. By default, all Electron locales used as-is."
6711
+
},
6670
6712
"electronUpdaterCompatibility": {
6671
6713
"description": "The [electron-updater compatibility](/auto-update#compatibility) semver range.",
6672
6714
"type": [
@@ -7142,11 +7184,6 @@
7142
7184
"$ref": "#/definitions/ReleaseInfo",
7143
7185
"description": "The release info. Intended for command line usage:\n\n```\n-c.releaseInfo.releaseNotes=\"new features\"\n```"
7144
7186
},
7145
-
"remoteBuild": {
7146
-
"default": true,
7147
-
"description": "Whether to build using Electron Build Service if target not supported on current OS.",
7148
-
"type": "boolean"
7149
-
},
7150
7187
"removePackageKeywords": {
7151
7188
"default": true,
7152
7189
"description": "Whether to remove `keywords` field from `package.json` files.",
true/* all must be scheduled in time (so, on finishBuild RemoteBuilder will have all targets added - so, we must set isAsyncSupported to true (resolved promise is returned)) */
0 commit comments