failed to create universal mac build after update electron to v18.0.0
See original GitHub issue- Electron-Builder Version: 22.14.13
- Node Version: 16
- Electron Version: 18.0.0
- Electron Type (current, beta, nightly): current
- Target: mac
After updating electron from v17.3.0 to v18.0.0, electron-builder
raises the following error when I try to build a universal mac build:
• electron-builder version=[22](https://github.com/ocavue/rino/runs/5741400411?check_suite_focus=true#step:6:22).14.13 os=20.6.0
• loaded configuration file=/Users/runner/work/rino/rino/packages/electron/electron-builder.js
• packaging platform=darwin arch=x64 electron=18.0.0 appOutDir=dist/mac-universal--x64
• downloading url=https://github.com/electron/electron/releases/download/v18.0.0/electron-v18.0.0-darwin-x64.zip size=82 MB parts=6
• downloaded url=https://github.com/electron/electron/releases/download/v18.0.0/electron-v18.0.0-darwin-x64.zip duration=1.089s
• packaging platform=darwin arch=arm64 electron=18.0.0 appOutDir=dist/mac-universal--arm64
• downloading url=https://github.com/electron/electron/releases/download/v18.0.0/electron-v18.0.0-darwin-arm64.zip size=84 MB parts=6
• downloaded url=https://github.com/electron/electron/releases/download/v18.0.0/electron-v18.0.0-darwin-arm64.zip duration=1.307s
• packaging platform=darwin arch=universal electron=18.0.0 appOutDir=dist/mac-universal
⨯ Expected all non-binary files to have identical SHAs when creating a universal build but "Contents/Frameworks/Electron Framework.framework/Versions/A/Resources/MainMenu.nib/keyedobjects-101300.nib" did not failedTask=build stackTrace=Error: Expected all non-binary files to have identical SHAs when creating a universal build but "Contents/Frameworks/Electron Framework.framework/Versions/A/Resources/MainMenu.nib/keyedobjects-101300.nib" did not
at exports.makeUniversalApp (/Users/runner/work/rino/rino/node_modules/.pnpm/@electron+universal@1.0.5/node_modules/@electron/universal/src/index.ts:107:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at MacPackager.doPack (/Users/runner/work/rino/rino/node_modules/.pnpm/app-builder-lib@22.14.13/node_modules/app-builder-lib/src/macPackager.ts:1[25](https://github.com/ocavue/rino/runs/5741400411?check_suite_focus=true#step:6:25):9)
at MacPackager.pack (/Users/runner/work/rino/rino/node_modules/.pnpm/app-builder-lib@22.14.13/node_modules/app-builder-lib/src/macPackager.ts:177:7)
at Packager.doBuild (/Users/runner/work/rino/rino/node_modules/.pnpm/app-builder-lib@22.14.13/node_modules/app-builder-lib/src/packager.ts:441:9)
at Object.executeFinally (/Users/runner/work/rino/rino/node_modules/.pnpm/builder-util@22.14.13/node_modules/builder-util/src/promise.ts:12:14)
at Packager._build (/Users/runner/work/rino/rino/node_modules/.pnpm/app-builder-lib@22.14.13/node_modules/app-builder-lib/src/packager.ts:376:[31](https://github.com/ocavue/rino/runs/5741400411?check_suite_focus=true#step:6:31))
at Packager.build (/Users/runner/work/rino/rino/node_modules/.pnpm/app-builder-lib@22.14.13/node_modules/app-builder-lib/src/packager.ts:[33](https://github.com/ocavue/rino/runs/5741400411?check_suite_focus=true#step:6:33)7:12)
at Object.executeFinally (/Users/runner/work/rino/rino/node_modules/.pnpm/builder-util@22.14.13/node_modules/builder-util/src/promise.ts:12:14)
According to https://github.com/electron/electron/issues/33267, we need to update @electron/universal
to v1.2.1 to fix this issue.
Issue Analytics
- State:
- Created a year ago
- Reactions:6
- Comments:5
Top Results From Across the Web
[Bug]: Electron 18.0.0-beta.1 failed to create universal build
Since it seems like the root issue is solved in the @electron/universal package and the issue has now moved to waiting on a...
Read more >Building electron app on new m1 mac fails - Stack Overflow
I'm trying to build electron project on new MBP with M1 and having tons of issues. I have updated all my dependencies to...
Read more >electron-packager - npm
Electron Packager is a command line tool and Node.js library that bundles Electron-based application source code with a renamed Electron ...
Read more >Desktop application changelog - Mattermost Documentation
Electron is the underlying technology used to build the Desktop App. ... The app now automatically checks for new updates on app start...
Read more >Packaging an Electron app for managed distribution across ...
In this code story, we'll explore the following aspects of our solution: Packaging Electron source into Windows binaries; Setting the app in ' ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mayfield if you’re using yarn, you can use resolutions in your package.json:
And install that package in your own devDependencies
This will force all dependencies to use that version. You will have to remove it once it’s been addressed by electron-builder to avoid any weird behaviours in the future, but this should help in the meantime as a temporary band-aid.
Released in latest 23.0.4