Hello Fazzi, sorry if making these changes (and yoinking ownership) without your permission is upsetting (if so, feel free to revert them), but from your profile it seems you haven't been active in a few months, and I didn't feel like waiting. I have added you as co-maintainer; if there is a way and you strongly dislike my changes I wouldn't mind returning the primary maintainer status to you :).
I have made several changes:
-
Switched PKGBUILD skeleton to use the format of https://aur.archlinux.org/packages/electron37-bin due to support for aarch64 and armv7h in addition to x86_64 (electron guys are already building them, more arches couldn't hurt ;p), plus they have a good format for fetching the sources using $pkgver, minimizing the work needed to keep up with upstream in the far off two months when electron39 is a thing. Removed chromedriver, not really sure why it was included there to begin with as (from what I read @ https://github.com/electron/chromedriver) it's only used for testing purposes and isn't even present in the official extra/electron36 package; would maybe make sense if we were compiling and had a check() function, but we don't (should be it's own package, if anything, it's not even contained in the same zip file as the electron build). Hope everyone still using floppies is excited about the 15mb savings.
-
Added the /bin/electron script from the extra/electron metapackage, simply switching 36 to 38 consequently adding electron to the provides. Feel like I killed two birds with one stone here, as I had been using electron36/7-bin for a few months prior to now and constantly had to add electron to the provides (and (1x) pacman -Rdd electron to avoid conflicts) with each update since the metapackage doesn't support aur versions (maybe I should've just made a request for that package instead of working on this all day haha).
-
Made a .nvchecker.toml file for the repo. Wasn't sure if I should include it in the sources or not (since archwiki says just place the file in the same dir as PKGBUILD) since perhaps not everyone wishes to use nvchecker (you'd need to install devtools and nvchecker anyways AND be a maintainer for it to be any more useful than just checking github) and I couldn't find any other aur packages doing so. It's only four lines though, so for anyone interested, here ya go:
[electron-nightly-bin]
source = "github"
github = "electron/nightlies"
use_max_tag = true
This should (never used it before, so can't be sure) almost completely automate updating (besides git pushing new pkgbuilds). I am going to set up a daily systemd timer for it after posting this, so I look forward to seeing how that goes.
ninetailedtori, if you happen to read this, there are prebuilt binaries in VCS, just click on the sources - it also took me a while to figure out though since the electron website makes no mention of this repo, idk why.
Pinned Comments
Fazzi commented on 2024-11-07 17:02 (UTC)
hey all, might need some help maintaining this one due to the frequent updates. If anyone has any improvements to the pkgbuild to make it fetch automatically, that would be greatly appreciated. Or - if you would like to co-maintain this package, please let me know too.