This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
chore: update electron to currently supported version #9053
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
dded666
chore: update electron to currently supported version
OEvgeny 05cbb8f
Trigger build
OEvgeny 8d9d512
Use Electron v14.2.6
OEvgeny 3dba7fb
Trigger build
OEvgeny fcca56d
Fix mac signing process
OEvgeny 30642cd
Implement custom electron build fetching
OEvgeny 2742c75
fix path
OEvgeny 693c811
Merge branch 'main' into chore/update-electron
OEvgeny bfee5c8
Fix file ending
OEvgeny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,5 @@ dist/ | |
| locales/en-US-pseudo.json | ||
| l10ntemp/ | ||
| oneauth-temp | ||
| customElectron | ||
| electron-builder-config-*.json | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
Composer/packages/electron-server/scripts/createBuilderConfig.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| const { join, resolve } = require('path'); | ||
| const { writeFileSync } = require('fs'); | ||
|
|
||
| const packageJson = require('../package.json'); | ||
|
|
||
| const electronVersion = packageJson.devDependencies.electron; | ||
|
|
||
| const electronServerDir = resolve(__dirname, '..'); | ||
|
|
||
| const createBuilderConfig = (platform) => { | ||
| const builderConfig = require('../electron-builder-config.json'); | ||
| const configName = `electron-builder-config-${platform}.json`; | ||
| switch (platform) { | ||
| case 'mac': | ||
| case 'linux': | ||
| builderConfig.electronDownload = { | ||
| version: electronVersion, | ||
| }; | ||
| break; | ||
| case 'win': | ||
| builderConfig.electronDist = 'customElectron'; | ||
| break; | ||
| default: | ||
| throw new Error( | ||
| `Invalid platform specified for builder config generation (${platform}). Supported platforms are: mac, linux and windows` | ||
| ); | ||
| } | ||
| writeFileSync(join(electronServerDir, configName), JSON.stringify(builderConfig, null, 2)); | ||
| return configName; | ||
| }; | ||
|
|
||
| exports.createBuilderConfig = createBuilderConfig; |
41 changes: 41 additions & 0 deletions
41
Composer/packages/electron-server/scripts/downloadAndExtractElectron.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| // Copyright (c) Microsoft. All rights reserved. | ||
| // Licensed under the MIT license. | ||
|
|
||
| const { join } = require('path'); | ||
|
|
||
| const { download } = require('@electron/get'); | ||
| const extract = require('extract-zip'); | ||
|
|
||
| const packageJson = require('../package.json'); | ||
|
|
||
| const { log } = require('./common'); | ||
|
|
||
| const electronVersion = packageJson.devDependencies.electron; | ||
|
|
||
| async function downloadAndExtract() { | ||
| // download the custom build of Electron | ||
| const zipPath = await download(electronVersion, { | ||
| mirrorOptions: { | ||
| mirror: process.env.MSFT_ELECTRON_MIRROR, | ||
| customDir: process.env.MSFT_ELECTRON_DIR, | ||
| }, | ||
| }); | ||
| log.info(`Electron successfully downloaded to ${zipPath}`); | ||
|
|
||
| // extract the custom build into a local directory | ||
| const extractPath = join(__dirname, '..', 'customElectron'); | ||
| await extract(zipPath, { dir: extractPath }); | ||
| log.info(`Electron successfully unzipped in ${extractPath}`); | ||
|
|
||
| return extractPath; | ||
| } | ||
|
|
||
| downloadAndExtract() | ||
| .then((extractPath) => log.info(`Downloaded and extracted the internal Electron build to ${extractPath}`)) | ||
| .catch((err) => { | ||
| log.error(`Error downloading and extracting the internal Electron build: ${err}`); | ||
| throw err; | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5408,7 +5408,7 @@ | |
| "@types/node" "*" | ||
| form-data "^3.0.0" | ||
|
|
||
| "@types/node@*", "@types/[email protected]", "@types/node@^12.0.12", "@types/node@^14.14.31": | ||
| "@types/node@*", "@types/[email protected]", "@types/node@^14.14.31", "@types/node@^14.6.2": | ||
| version "13.9.3" | ||
| resolved "https://registry.yarnpkg.com/@types/node/-/node-13.9.3.tgz#6356df2647de9eac569f9a52eda3480fa9e70b4d" | ||
| integrity sha512-01s+ac4qerwd6RHD+mVbOEsraDHSgUaefQlEdBbUolnQFjKwCr7luvAlEwW1RFojh67u0z4OUTjPn9LEl4zIkA== | ||
|
|
@@ -10861,13 +10861,13 @@ [email protected]: | |
| pako "^1.0.11" | ||
| semver "^7.1.3" | ||
|
|
||
| electron@8.2.4: | ||
| version "8.2.4" | ||
| resolved "https://registry.yarnpkg.com/electron/-/electron-8.2.4.tgz#c4e51ca8e84b5a5beaaabdae1024bd52ba487ba4" | ||
| integrity sha512-Lle0InIgSAHZxD5KDY0wZ1A2Zlc6GHwMhAxoHMzn05mndyP1YBkCYHc0TDDofzUTrsLFofduPjlknO5Oj9fTPA== | ||
| electron@14.2.6: | ||
| version "14.2.6" | ||
| resolved "https://registry.yarnpkg.com/electron/-/electron-14.2.6.tgz#d134da424d79f2ea59758899a9ba0cf18170bbec" | ||
| integrity sha512-yTPmuBO6/7baUUjhQ1E2URsNjEPsj+DMcleLf3VexVPU1Py0mXc5OpwI6LCq/jvuwyGiXOLK2Vx6h4bel6DoEw== | ||
| dependencies: | ||
| "@electron/get" "^1.0.1" | ||
| "@types/node" "^12.0.12" | ||
| "@types/node" "^14.6.2" | ||
| extract-zip "^1.0.3" | ||
|
|
||
| elegant-spinner@^1.0.1: | ||
|
|
@@ -22837,6 +22837,11 @@ [email protected]: | |
| resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" | ||
| integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= | ||
|
|
||
| [email protected]: | ||
| version "7.0.0" | ||
| resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.0.tgz#1833d4b9ce50b732bfaa271f9cb74e974d303c79" | ||
| integrity sha512-LNUrNsXdI/fUsypJbWM8Jt4DgQdFAZh41p9C7WE9Cn+CULOEkoG2lgQyH68v3wnIy5K3fN4jdSt270K6IFA3MQ== | ||
|
|
||
| [email protected], uuid@^8.3.2: | ||
| version "8.3.2" | ||
| resolved "https://botbuilder.myget.org/F/botbuilder-v4-js-daily/npm/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" | ||
|
|
@@ -22857,11 +22862,6 @@ uuid@^8.3.0: | |
| resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.0.tgz#ab738085ca22dc9a8c92725e459b1d507df5d6ea" | ||
| integrity sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ== | ||
|
|
||
| uuid@^8.3.1: | ||
| version "8.3.1" | ||
| resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.1.tgz#2ba2e6ca000da60fce5a196954ab241131e05a31" | ||
| integrity sha512-FOmRr+FmWEIG8uhZv6C2bTgEVXsHk08kE7mPlrBbEe+c3r9pjceVPgupIfNIhc4yx55H69OXANrUaSuu9eInKg== | ||
|
|
||
| v8-compile-cache@^2.0.3: | ||
| version "2.1.0" | ||
| resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz#e14de37b31a6d194f5690d67efc4e7f6fc6ab30e" | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.