Skip to content

Comments

electron-fiddle: 0.32.6 -> 0.36.4, fix build and refactor#338158

Closed
TomaSajt wants to merge 1 commit intoNixOS:masterfrom
TomaSajt:electron-fiddle
Closed

electron-fiddle: 0.32.6 -> 0.36.4, fix build and refactor#338158
TomaSajt wants to merge 1 commit intoNixOS:masterfrom
TomaSajt:electron-fiddle

Conversation

@TomaSajt
Copy link
Contributor

Description of changes

electron_24 has been EOL for a while now, so electron-fiddle was not being built.
In this PR I force @electron/forge to use the latest version of electron for building by directly patching the node_modules directory instead of doing a lot of hashing logic, like previously.

One weird thing is that upon first starting the app, Electron v24 will be selected by default.
That may be because of the old releases.json being used.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@TomaSajt TomaSajt changed the title electron-fiddle: refactor electron-fiddle: 0.32.6 -> 0.36.4, fix build and refactor Aug 29, 2024
@ofborg ofborg bot added the 8.has: clean-up This PR removes packages or removes other cruft label Aug 29, 2024
@ofborg ofborg bot requested a review from andersk August 29, 2024 11:52
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Aug 29, 2024
Copy link
Member

@FliegendeWurst FliegendeWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build fails

Running phase: configurePhase
no configure script, doing nothing
/build/source/electron-dist /build/source
/build/source
substitute(): ERROR: file 'node_modules/@electron/packager/dist/packager.js' does not exist

@TomaSajt
Copy link
Contributor Author

TomaSajt commented Nov 1, 2024

Build fails

Running phase: configurePhase
no configure script, doing nothing
/build/source/electron-dist /build/source
/build/source
substitute(): ERROR: file 'node_modules/@electron/packager/dist/packager.js' does not exist

Looks like it broke because of #338093
Should be pretty easy to fix.

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 1, 2024
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 9, 2024
@andersk andersk mentioned this pull request Feb 28, 2025
13 tasks
@andersk
Copy link
Contributor

andersk commented Feb 28, 2025

Thanks @TomaSajt! I’m updating this (with co-authorship credit) at

@andersk andersk closed this Feb 28, 2025
@TomaSajt
Copy link
Contributor Author

Okay! Thanks for picking it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 8.has: clean-up This PR removes packages or removes other cruft 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants