You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "pjoriginal (via GitHub)" <gi...@apache.org> on 2024/03/01 15:49:55 UTC

Re: [D] How to update electron-builder version with cordova-electron: 3.0.1 [cordova]

GitHub user pjoriginal added a comment to the discussion: How to update electron-builder version with cordova-electron: 3.0.1

@BenLaKnet 
Sorry I forgot to reply to this.
`cordova-electron` uses the `electron-builder` in its `package.json` file..
I've added steps here that would make it possible for you to change the electron-builder version to the one you want
```
cordova create test
cordova platform add electron@3.1.0
cd ./node_modules/cordova-electron
npm pkg set dependencies.electron-builder="^24.9.1"
cd ../..
cordova build electron --release
```

You can turn that into a script file and and attach it to the `before_prepare` or `after_platform_add` and you'd have a temporary build set up that builds using the builder version you want.

The new `cordova-electron` version is slated to release soon which has a picker for the electron version and the builder version
The PR is here https://github.com/apache/cordova-electron/pull/227

I think you should be able to use nightly if you don't depend on any plugins that require cordova-electron@3.x
and do:
```
"overrides": {
  "cordova-electron": {
    "electron-builder": "^23.0.3"
  }
}
```

GitHub link: https://github.com/apache/cordova/discussions/462#discussioncomment-8644747

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@cordova.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org