Search Criteria
Package Details: libelectron 1.0.27-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/libelectron.git (read-only, click to copy) |
---|---|
Package Base: | libelectron |
Description: | A collection of npm dependencies for electron packages. |
Upstream URL: | https://gitlab.com/linuxbombay/libelectron/libelectron |
Licenses: | GPL |
Submitter: | gameslayer |
Maintainer: | gameslayer |
Last Packager: | gameslayer |
Votes: | 8 |
Popularity: | 0.51 |
First Submitted: | 2022-11-18 11:55 (UTC) |
Last Updated: | 2024-09-30 23:55 (UTC) |
Dependencies (4)
- git (git-gitAUR, git-glAUR)
- icu (icu-gitAUR)
- npm (corepackerAUR, python-nodejs-wheelAUR)
- unzip (unzip-natspecAUR, unzip-zstdAUR) (make)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 Next › Last »
CobaHusky commented on 2023-12-29 15:18 (UTC)
Looks like it installed correctly for me. Well done, @gameslayer!
gameslayer commented on 2023-12-29 14:57 (UTC)
@xiota actually not true, while I use it for my own personal software I would love to have other devs use it also, as for security I update it pretty regularly and they get the same patches and updates Chromium gets since it again uses Chromium's web engine technology and is open source.
gameslayer commented on 2023-12-29 14:55 (UTC)
Except it isn't in any broken state also that wouldn't be right as that would completely break it as the path in the fakeroot would be
/pkg/libelectron/opt/libelectron/libelectron
and the app wouldn't be able to find electron which would result in the errorsh: line 1: electron: command not found
so why would I do this when the way I have done it is correct and works?once it runs ./setup it npm will create the node_modules folder in $srcdir and then it will move that to "$pkgdir/opt/libelectron". If you aren't using the normal standard build environment aka makepkg that Arch uses and recommends which is apart of pacman then that is on you.
xiota commented on 2023-12-29 14:32 (UTC) (edited on 2023-12-29 14:37 (UTC) by xiota)
@Alkaris @Bitals Don't bother with this package. In addition to poor packaging, it's used only for the maintainers' personal apps, which use electron as a web browser to navigate the official websites. Electron used this way is not secure. As much as you may want dedicated apps, you're better off using plain web browsers.
Alkaris commented on 2023-12-29 13:31 (UTC)
I can't believe how much of a mess this package was to build, all because of this one stupid line;
cp -r $srcdir/libelectron/node_modules "$pkgdir/opt/libelectron"
by correcting it to;
cp -r $srcdir/libelectron "$pkgdir/opt/libelectron"
That's literally all you had to do. That easy of a fix to make this install. Don't just assume the directory environment is going to be the same as your weird ass setup. Don't traverse extra directories that may or may not exist before creating beforehand, and in this case example being
cp -r $srcdir/libelectron/node_modules
just don't do this because the package hasn't built itself yet and created the directories it needs.Bitals commented on 2023-12-18 16:30 (UTC) (edited on 2023-12-18 16:34 (UTC) by Bitals)
It's just not configurable by PKGBUILD. Look, I build this very package the wiki way, aka
git clone
and manually runmakepkg
:But it builds completely fine if I quote
$srcdir
. Granted I edited the makepkg config, but just to quickly simulate a problem. There might be an AUR helper somewhere written by somebody insane, or just an insane user (far more likely). Or Manjaro will do this by default because it can, I won't be surprised honestly. You do not control the user environment. Encasing variables containing paths in quotes is just a foolproof best practice, I don't understand your struggle to avoid doing so.Bitals commented on 2023-12-18 15:43 (UTC) (edited on 2023-12-18 15:44 (UTC) by Bitals)
@gameslayer it does not contain spaces on your system, but it might on someone else's. It's a configurable absolute path. You can not set it in PKGBUILD, it's configurable by an AUR client, by user and so on. You only control the last directory in that path, but not any of the parents.
gameslayer commented on 2023-12-18 15:39 (UTC)
I can because I made this package and control how it builds and installed based on how the pkgbuild file works.
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 Next › Last »