-
-
Notifications
You must be signed in to change notification settings - Fork 360
Chore: bump electron-builder #24136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Chore: bump electron-builder #24136
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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 |
|---|---|---|
|
|
@@ -5,11 +5,11 @@ const isCodesignBuild = process.env.IS_CODESIGN_BUILD === 'true'; | |
|
|
||
| // to be able to use patterns like ${author} and ${arch} | ||
| module.exports = { | ||
| // distingush between dev and prod builds | ||
| // distinguish between dev and prod builds | ||
| appId: `io.trezor.TrezorSuite${isCodesignBuild ? '' : '.dev'}`, | ||
| extraMetadata: { | ||
| version: suiteVersion, | ||
| // distingush between dev and prod builds so different userDataDir is used | ||
| // distinguish between dev and prod builds so different userDataDir is used | ||
| name: `@trezor/suite-desktop${isCodesignBuild ? '' : '-dev'}`, | ||
| }, | ||
| productName: 'Trezor Suite', | ||
|
|
@@ -22,17 +22,14 @@ module.exports = { | |
| npmRebuild: false, | ||
| files: [ | ||
| // defaults are https://www.electron.build/configuration#files | ||
| 'build/**/*', | ||
| 'dist/**/*.{js,wasm}', | ||
| '!**/{tsconfig}*', | ||
| '!**/*.{md,js.map}', | ||
| 'build/release-notes.md', | ||
| '!**/node_modules/**/*.{js.flow,ts}', | ||
| '!build/static/**/{favicon,icons,bin,browsers}', | ||
| '!node_modules/@sentry/**/esm', | ||
| '!node_modules/ajv/lib', | ||
| '!node_modules/blake-hash/**/{build,src}', | ||
| '!node_modules/usb/**/{libusb,libusb_config,src}', | ||
| 'build/**/*', // Electron renderer process | ||
| 'dist/**/*.{js,wasm}', // Electron main+preload process | ||
| '!**/*.{md,js.map}', // exclude files unnecessary for runtime | ||
| 'build/release-notes.md', // this one is dynamically loaded in runtime | ||
| '!build/static/**/{favicon,icons,bin,browsers}', // copied as extraResources instead, some are platform-specific | ||
| '!node_modules/blake-hash/**/{build,src}', // exclude files unnecessary for runtime | ||
| '!node_modules/usb/**/{libusb,libusb_config,src}', // exclude files unnecessary for runtime | ||
| '!node_modules/@trezor/**', // exclude @trezor/suite-desktop, which would recurse. Other @trezor packages are bundled by bundler. | ||
| ], | ||
| extraResources: [ | ||
| { | ||
|
|
@@ -98,7 +95,7 @@ module.exports = { | |
| ], | ||
| icon: 'build/static/images/desktop/512x512.icns', | ||
| artifactName: 'Trezor-Suite-${version}-mac-${arch}.${ext}', | ||
| hardenedRuntime: true, | ||
| hardenedRuntime: isCodesignBuild, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lest the installed app crashes with |
||
| gatekeeperAssess: false, | ||
| darkModeSupport: true, | ||
| entitlements: 'entitlements.mac.inherit.plist', | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -30,6 +30,6 @@ | |
| }, | ||
| "devDependencies": { | ||
| "electron": "39.0.0", | ||
| "electron-builder": "26.0.3" | ||
| "electron-builder": "26.4.0" | ||
| } | ||
| } | ||
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 |
|---|---|---|
| @@ -1,6 +1,15 @@ | ||
| # Patches | ||
|
|
||
| ## app-builder-lib | ||
|
|
||
| Fixes problem with generating `Info.plist` when building for macOS. | ||
| Remove this patch after when this is fixed upstream in [electron-builder PR](https://github.com/electron-userland/electron-builder/pull/9481). | ||
|
|
||
| ## expo-modules-core | ||
|
|
||
| Gets rid of `The global process.env.EXPO_OS is not defined. This should be inlined by babel-preset-expo during transformation.` | ||
| warning while running unit tests. Probably caused by an issue reported [here](https://github.com/expo/expo/issues/26513) or [here](https://github.com/expo/expo/issues/25452). | ||
|
|
||
| ## blakejs | ||
|
|
||
| May be outdated, TODO investigate |
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,14 @@ | ||
| diff --git a/node_modules/app-builder-lib/out/macPackager.js b/node_modules/app-builder-lib/out/macPackager.js | ||
| index a52a853..216a77d 100644 | ||
| --- a/node_modules/app-builder-lib/out/macPackager.js | ||
| +++ b/node_modules/app-builder-lib/out/macPackager.js | ||
| @@ -474,6 +474,9 @@ class MacPackager extends platformPackager_1.PlatformPackager { | ||
| const extendInfo = this.platformSpecificBuildOptions.extendInfo; | ||
| if (extendInfo != null) { | ||
| Object.assign(appPlist, extendInfo); | ||
| + for(const [k,v] of Object.entries(appPlist)) { | ||
| + if(v === null || v === undefined) delete appPlist[k] | ||
| + } | ||
| } | ||
| } | ||
| async signApp(packContext, isAsar) { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I made an upstream PR in electron-userland/electron-builder#9481 |
||
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed that it is working on 🍎 :