FS#65280 - [electron] Add API version to provides or symlink binary
Attached to Project:
Community Packages
Opened by Matthias Lisin (matthias.lisin) - Sunday, 26 January 2020, 20:56 GMT
Last edited by Toolybird (Toolybird) - Sunday, 21 August 2022, 22:00 GMT
Opened by Matthias Lisin (matthias.lisin) - Sunday, 26 January 2020, 20:56 GMT
Last edited by Toolybird (Toolybird) - Sunday, 21 August 2022, 22:00 GMT
|
Details
Description:
When packaging electron apps you usually need a specific version of electron for it to work because very few work with the latest (7). But sometimes it works with the latest. This means however that once the rolling package `electron` updates to the next major version the application might break. Therefore I'd like to propose two changes: 1. Add `electron-api=$VERSION` to provides=() array so packagers can reliably install the required version regardless of the current pkgname in the official repos (`electron` now, `electron7` later). Applies to all current electron packages: electron{,2,4,5,6} 2. Create a symlink for the rolling package `electron` to reliably call the proper executable. (ln -sr /usr/bin/electron /usr/bin/electron7). So packagers can reliably call the executable from a wrapper script. Only applies to package `electron`. |
This task depends upon
Closed by Toolybird (Toolybird)
Sunday, 21 August 2022, 22:00 GMT
Reason for closing: Fixed
Additional comments about closing: Reporter says "Both cases are resolved, therefore requesting closure. Thank you."
Sunday, 21 August 2022, 22:00 GMT
Reason for closing: Fixed
Additional comments about closing: Reporter says "Both cases are resolved, therefore requesting closure. Thank you."
this is the same as for jre-openjdk/jdk-openjdk which not only provides java-runtime=$VERSION but also the versioned name jre1x-openjdk.
I believe `provides=(electron={major-version})` is already in `electron*` packages in Manjaro repositories.
This package, for example, depends on electron<18, which is not provided by the official packages: https://aur.archlinux.org/packages/stretchly-git
Now regarding the last point (providing electron==XX), it might actually be a good idea and solve the aforementioned bug, but as stated in this one I don’t actually know about this.