Package Details: freetube 0.17.1-1

Git Clone URL: https://aur.archlinux.org/freetube.git (read-only, click to copy)
Package Base: freetube
Description: An open source desktop YouTube player built with privacy in mind.
Upstream URL: https://freetubeapp.io
Licenses: AGPL3
Submitter: picokan
Maintainer: picokan
Last Packager: picokan
Votes: 42
Popularity: 0.58
First Submitted: 2020-10-02 22:19 (UTC)
Last Updated: 2022-08-12 09:05 (UTC)

Latest Comments

picokan commented on 2022-05-15 13:28 (UTC)

@dwango This doesn't seem to be a freetube specific error. It could be related to these problems:

https://alt.os.linux.mageia.narkive.com/ARnQCpG3/xdg-settings-error-message-in-chromium-re-zoom#

https://bbs.archlinux.org/viewtopic.php?id=256377

dwango commented on 2022-05-10 22:39 (UTC)

Does not start and gives the following exit message: xdg-settings: default-url-scheme-handler not implemented for xfce

AndyRTR commented on 2022-04-20 18:04 (UTC)

I also suggest to stick to the version that upstream suggests and supports even somehting newer looks basically working (and might fail somewhere else). When it fails to start after your last attempt make sure there's no hanging electron process pending. I had to kill the hanging ps.

je-vv commented on 2022-04-20 01:56 (UTC) (edited on 2022-04-20 01:56 (UTC) by je-vv)

Actually freetube is working just fine with system electron 17, so I see no reason to go with an even older electron version.

hedgepigdaniel commented on 2022-04-20 00:11 (UTC)

You need to use Electron 16, not 17. You can check the required version in the Freetube sources, for example for the current 0.16.0: https://github.com/FreeTubeApp/FreeTube/blob/v0.16.0-beta/package.json#L111

And even if it doesn't open, there might be other causes for that which should be investigated separately. I'd suggest to start by using the correct version of electron that Freetube has been tested with, and then investigate other problems.

inototen commented on 2022-04-18 13:31 (UTC) (edited on 2022-04-18 14:07 (UTC) by inototen)

@PutridPete where exactly should I change for electron17? I changed it in the PKGBUILD and the in freetube.sh but nothing changed, it still not opening. I've tried with other electron versions too, but have the same result.

PutridPete commented on 2022-04-04 23:08 (UTC) (edited on 2022-04-04 23:09 (UTC) by PutridPete)

What I did was edit the PKGBUILD and scripts so it pulls a dependency on electron17 package and then rebuilt it. Make sure freetube.sh contains exec electron17 /usr/lib/freetube/app.asar "$@" instead of just electron without the 17. Works fine for me thus far.

golden_lemur commented on 2022-04-04 20:44 (UTC)

freetube 0.16.0-1 does not work for me in electron v18.0.1

yochananmarqos commented on 2022-04-04 19:35 (UTC)

@MattTriesLinux: It works fine with electron17.

MattTriesLinux commented on 2022-04-04 19:14 (UTC)

https://github.com/FreeTubeApp/FreeTube/issues/2163#issuecomment-1087645677 electron 18 seems to be giving issues to FreeTube and making it impossible to open it, as per suggestion of the dev this package should switch to only using the supported electron version (16)

hedgepigdaniel commented on 2022-03-29 13:24 (UTC)

@pikohan I resolved the issues by changing flags related to ozone/wayland (not sure that there was an issue in freetube in particular).

The latest release of electron is now 17, and that does not work for me (with my flags related to ozone/wayland) - but the officially supported electron16 does.

You can see freetube-wayland package for an example of fixing the electron version. It's a simple matter of replacing "electron" in the dependency and launch script with "electron16".

picokan commented on 2022-02-17 18:52 (UTC)

@hedgepigdaniel So far I've been letting it go with electron's latest version, but there has been widespread problems with a major update of electron breaking freetube and I might go with your suggestion. However, if you and DarknessKiller both can't use it with the officially supported electron 16, something is off. Can you use the freetube binary from the website? If not, what errors does it give you? These might be good things to report upstream.

hedgepigdaniel commented on 2022-02-12 03:57 (UTC)

In case it isn't clear: I also can't open the app with Electron 16.

hedgepigdaniel commented on 2022-02-12 03:57 (UTC) (edited on 2022-02-12 04:09 (UTC) by hedgepigdaniel)

@pikohan could you change the dependency (and binary in freetube.sh) to electron16 rather than electron?

Generally apps are not compatible with different major versions of Electron, because that's when breaking changes are made in Electron. You can check the version of electron that Freetube is tested with by looking at the dependency in package.json. For example in this version 0.16.0 its 16 (not later version when they are released): https://github.com/FreeTubeApp/FreeTube/blob/3ec646870963f6a27cbfa6d49fe12ea3b659c6a4/package.json#L111

It might work sometimes with a different version but really it's on Freetube to test/update to the latest Electron.

EDIT: I was wrong to say the latest requires electron15 - its actually electron16. But still good to make that change so that when electron17 is released in Arch it doesn't break.

DarknessKiller commented on 2021-11-25 00:36 (UTC)

After the electron update I can't open the app. It was solved rebuilding the app using electron15 and replacing it in the pkgbuild.

picokan commented on 2021-11-24 21:53 (UTC)

@DarknessKiller What problems are you having that could be because of electron 16?

yochananmarqos commented on 2021-11-24 21:08 (UTC)

@DarknessKiller: It works fine for me.

DarknessKiller commented on 2021-11-24 20:27 (UTC)

Electron was updated to v16 and isn't supported by freetube.

yochananmarqos commented on 2021-10-20 01:39 (UTC) (edited on 2021-10-20 01:40 (UTC) by yochananmarqos)

@G3ro: Oops. I fixed the typo in my paste.

- install -Dm644 build/linux-unpacked/resources/app.asar "$pkgdir/usr/lib/$pkgname"
+ install -Dm644 build/linux-unpacked/resources/app.asar -t "$pkgdir/usr/lib/$pkgname"

G3ro commented on 2021-10-19 20:24 (UTC)

@yochananmarqos

I tried your proposed changes and it shows an error when starting "freetube": "Error launching app Unable to find Electron app at /usr/lib/freetube/app.asar

Cannot find module '/usr/lib/freetube/app.asar' Require stack: - /usr/lib/electron13/resources/default_app.asar/main.js "

I notice that the created package does not include "app.asar", so the following line does not seem to work the right way: "install -Dm644 build/linux-unpacked/resources/app.asar "$pkgdir/usr/lib/$pkgname" "

In the previous package "app.asar" is a subsidiary of "/usr/lib/freetube".

yochananmarqos commented on 2021-10-18 20:44 (UTC)

  • As of 0.15.0-beta, yarn is now used to fetch dependencies
  • The pkgver should be the same as the upstream tag, see example PKGBUILD below
  • AGPL3 is a common license already installed in /usr/share/licenses/common/, no need to install it again
  • Remove the shebang from the desktop file
  • freetube.sh should run exec electron13 /usr/lib/freetube/app.asar "$@", see Electron package guidelines

Example PKGBUILD

je-vv commented on 2021-09-22 21:47 (UTC)

Thanks @picokan, yes, after finally getting the newer electron13, things work back.

picokan commented on 2021-09-22 10:17 (UTC)

@je-vv The harfbuzz update is the culprit: https://github.com/harfbuzz/harfbuzz/commit/d700646c33af53afcabe564e9943565d58e1192a.

They removed legacy code, and the function electron is complaining about is one of them. However, FreeTube is still working for me, and I did have an electron13 update yesterday when you say you haven't had one since the 14th of September. You may want to try to update electron13 by changing to a different mirror if the one you are on still hasn't gotten that update.

It's still weird that you got the harfbuzz update without the electron13 update, but all you need is to update to fix this.

je-vv commented on 2021-09-22 03:32 (UTC)

@picokan, after Today's upgrade (I upgrade every day or so), freetube stopped launching:

% freetube
/usr/lib/electron13/electron: symbol lookup error: /usr/lib/electron13/electron: undefined symbol: hb_subset_input_set_retain_gids

I rebuilt it, just in case that would fix it, but it didn't, I kept having the same issue, :( BTW, weird enough, electron13 didn't upgrade, it hadn't since Sept 14th. From yesterday, I got upgraded:

[2021-09-20T11:28:25-0600] [ALPM] upgraded audit (3.0.4-1 -> 3.0.5-1)
[2021-09-20T11:28:25-0600] [ALPM] upgraded xz (5.2.5-1 -> 5.2.5-2)
[2021-09-20T11:28:25-0600] [ALPM] upgraded grep (3.6-1 -> 3.7-1)
[2021-09-20T11:28:25-0600] [ALPM] upgraded i2c-tools (4.2-3 -> 4.3-1)
[2021-09-20T11:28:25-0600] [ALPM] upgraded inetutils (2.1-1 -> 2.2-1)
[2021-09-20T11:28:25-0600] [ALPM] upgraded inotify-tools (3.20.11.0-1 -> 3.21.9.0-1)
[2021-09-20T11:28:25-0600] [ALPM] upgraded libedit (20210714_3.1-1 -> 20210910_3.1-1)
[2021-09-20T11:28:25-0600] [ALPM] upgraded libfido2 (1.7.0-2.1 -> 1.8.0-1)
[2021-09-20T11:28:25-0600] [ALPM] upgraded libnotify (0.7.9-1 -> 0.7.9-2)
[2021-09-20T11:28:27-0600] [ALPM] upgraded linux (5.14.2.artix1-2 -> 5.14.6.artix1-1)
[2021-09-20T11:28:29-0600] [ALPM] upgraded linux-docs (5.14.2.artix1-2 -> 5.14.6.artix1-1)
[2021-09-20T11:28:32-0600] [ALPM] upgraded linux-headers (5.14.2.artix1-2 -> 5.14.6.artix1-1)
[2021-09-20T11:28:32-0600] [ALPM] upgraded perl-yaml-libyaml (0.75-6 -> 0.83-1)
[2021-09-20T11:28:32-0600] [ALPM] upgraded python-pandas (1.3.2-1 -> 1.3.3-1)
[2021-09-20T11:28:32-0600] [ALPM] upgraded tinyxml (2.6.2-7 -> 2.6.2-8)
[2021-09-20T11:28:32-0600] [ALPM] upgraded wayland-protocols (1.22-1 -> 1.23-1)
[2021-09-20T11:28:32-0600] [ALPM] upgraded xf86-input-libinput (1.1.0-1 -> 1.2.0-1)
[2021-09-20T11:50:06-0600] [ALPM] upgraded via (4.2.0.2105106-1 -> 4.2.0.2105106-3)
[2021-09-20T17:52:46-0600] [ALPM] upgraded asciidoc (9.1.0-1 -> 9.1.1-1)
[2021-09-20T18:24:27-0600] [ALPM] upgraded asciidoc (9.1.1-1 -> 9.1.1-2)
[2021-09-20T18:24:27-0600] [ALPM] upgraded libcap (2.57-1 -> 2.58-1)
[2021-09-20T18:24:27-0600] [ALPM] upgraded lib32-libcap (2.57-1 -> 2.58-1)
[2021-09-20T18:24:27-0600] [ALPM] upgraded lib32-vulkan-icd-loader (1.2.190-1 -> 1.2.191-1)
[2021-09-20T18:24:27-0600] [ALPM] upgraded libimagequant (2.15.1-1 -> 2.16.0-1)
[2021-09-20T18:24:27-0600] [ALPM] upgraded vulkan-icd-loader (1.2.190-1 -> 1.2.191-1)

And from Today's upgrade:

[2021-09-21T14:07:42-0600] [ALPM] upgraded cantarell-fonts (1:0.301-1 -> 1:0.303-1)
[2021-09-21T14:07:42-0600] [ALPM] upgraded libxcrypt (4.4.25-1 -> 4.4.26-1)
[2021-09-21T14:07:43-0600] [ALPM] upgraded cmake (3.21.2-2 -> 3.21.3-1)
[2021-09-21T14:07:43-0600] [ALPM] upgraded glib2 (2.68.4-1 -> 2.70.0-1)
[2021-09-21T14:07:43-0600] [ALPM] upgraded glib2-docs (2.68.4-1 -> 2.70.0-1)
[2021-09-21T14:07:43-0600] [ALPM] upgraded gobject-introspection-runtime (1.68.0-1.1 -> 1.70.0-1)
[2021-09-21T14:07:43-0600] [ALPM] upgraded gobject-introspection (1.68.0-1.1 -> 1.70.0-1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded tracker3 (3.1.2-1 -> 3.2.0-1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded harfbuzz (2.9.1-1 -> 3.0.0-1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded gtk3 (1:3.24.30-2.1 -> 1:3.24.30+62+g8d04980f38-2)
[2021-09-21T14:07:44-0600] [ALPM] upgraded harfbuzz-icu (2.9.1-1 -> 3.0.0-1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded ldb (2:2.3.0-1 -> 2:2.4.0-1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded lib32-libffi (3.3-2 -> 3.3-4.1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded lib32-libxcrypt (4.4.25-1 -> 4.4.26-1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded lib32-glib2 (2.68.4-1 -> 2.70.0-1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded lib32-harfbuzz (2.9.1-1 -> 3.0.0-1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded libxnvctrl (470.63.01-1 -> 470.74-1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded perl-crypt-openssl-rsa (0.31-6 -> 0.32-1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded perl-libwww (6.56-1 -> 6.57-1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded pstoedit (3.75-5 -> 3.76-1)
[2021-09-21T14:07:44-0600] [ALPM] upgraded python-tabulate (0.8.9-1 -> 0.8.9-2)
[2021-09-21T14:07:44-0600] [ALPM] upgraded qt5-webengine (5.15.6-1 -> 5.15.6-2)
[2021-09-21T14:07:45-0600] [ALPM] upgraded smbclient (4.14.7-2 -> 4.15.0-1)
[2021-09-21T14:07:45-0600] [ALPM] upgraded samba (4.14.7-2 -> 4.15.0-1)
[2021-09-21T14:07:45-0600] [ALPM] upgraded sdl (1.2.15-14 -> 1.2.15+387+gfbfcca32-1)
[2021-09-21T14:07:45-0600] [ALPM] upgraded xdg-desktop-portal (1.8.1-1 -> 1.10.1-1)
[2021-09-21T19:01:36-0600] [ALPM] upgraded curl (7.79.0-3 -> 7.79.0-4)
[2021-09-21T19:01:36-0600] [ALPM] upgraded htop (3.0.5-1 -> 3.1.0-1)
[2021-09-21T19:01:36-0600] [ALPM] upgraded libva-mesa-driver (21.2.1-1 -> 21.2.2-1)
[2021-09-21T19:01:36-0600] [ALPM] upgraded mesa (21.2.1-1 -> 21.2.2-1)
[2021-09-21T19:01:36-0600] [ALPM] upgraded mesa-vdpau (21.2.1-1 -> 21.2.2-1)
[2021-09-21T19:01:36-0600] [ALPM] upgraded qemu (6.1.0-1 -> 6.1.0-2)
[2021-09-21T19:01:36-0600] [ALPM] upgraded vulkan-intel (21.2.1-1 -> 21.2.2-1)
[2021-09-21T19:01:36-0600] [ALPM] upgraded vulkan-mesa-layers (21.2.1-1 -> 21.2.2-1)

I can't see what package upgrade could have broken freetube, perhaps the gtk3 or harfbuzz upgrades, no idea...

At any rate, not sure what can be wrong, any hints on how to fix it? As mentioned, rebuilding doesn't help, :(

picokan commented on 2021-09-10 08:14 (UTC)

That problem must come from the combination of AUR helper bugs and Manjaro not having an electron13 package. Using only makepkg on Arch, the PKGBUILD pulls the correct electron13 package from community and installs.

If this is happening to you, you should consider reporting this bug to your AUR helper's issue tracker.

je-vv commented on 2021-09-09 22:18 (UTC)

hmm, I do have the "community" provided electron13, essentially because "element" also depends on "electron13", and when getting the "freetube" upgrades, there's NO attempt whatsoever to grab electron13 from AUR. Perhaps what some are experiencing is due to the AUR helper of choice? I use "aurutils", which does things pretty close to the manual process of makepkg...

cb474 commented on 2021-09-09 20:24 (UTC)

My system doesn't have electron14 installed yet either. But I don't understand why the pkgbuild for freetube depends on a version of electron13 in AUR, when there is still a version of electron13 available in the community repo. Why not use that version?

hazardfrog commented on 2021-09-09 07:28 (UTC)

I've the same problem as cb474. I suspect that this happens because our official electron package is still on version 13.x and this package requires the AUR package electron13 and does not check the version of the official electron package. I'm using Manjaro 21.1.2, which may explain why I don't have electron 14 installed.

cb474 commented on 2021-09-08 21:57 (UTC) (edited on 2021-09-08 21:57 (UTC) by cb474)

When I try to build I get this error:

Error: Failed to commit transaction: conflicting files: - electron13-bin: /usr/bin/electron13 already exists in filesystem (owned by electron)

If electron13 is a dependency and I already have electron13 on my system, then why does the Freetube pkgbuild try to install electron13 separately from AUR and fail?

picokan commented on 2021-09-08 08:37 (UTC)

Sorry for the multiple updates in quick succession, but Arch very recently changed the electron package to be using version 14, which has caused multiple bugs in Freetube.

The default version of electron in Freetube (e.g. for pre-compiled binaries) is likely to be changed back to 13, and I'm also changing the diff files and dependencies here to use it.

6543 commented on 2021-05-19 13:09 (UTC)

deleting the .npm or node_modules ... and so on did not have any efect, i updated & build the freetube-bin myselfe ... this works

picokan commented on 2021-05-19 08:22 (UTC)

@willemw I understand, thank you for pointing that out.

willemw commented on 2021-05-19 06:51 (UTC)

@je-vv: Hi. Both freetube-bin and freetube-git already define that they cannot be installed together (side-by-side) with another freetube package that provides "freetube". It is redundant to define that exclusion again the other way (for packages providing "freetube-bin" and "freetube-git") in the freetube package.

je-vv commented on 2021-05-19 06:39 (UTC)

@willemw, why? I might want to try one instead of the other, for some reason, and I find it pretty convenient uninstalling the prior one installed prior to installing the new package. Don't you think? Also, they might (I'm not sure) share owned files and dirs, which without uninstalling, for sure might be problematic...

willemw commented on 2021-05-19 06:04 (UTC)

freetube-bin, freetube-git in conflicts are redundant.

je-vv commented on 2021-05-18 22:55 (UTC)

@Popolon, I guess that's on buil, right? If so, perhaps you can try newer 0.13.0, and before building, cleaning ~/.npm...

je-vv commented on 2021-05-18 22:53 (UTC)

@6543, I'm also building on artix, and I have no issues building. Could it be you have old js libs in ~/.npm that are affecting your build? Perhaps removing entirely that dir might help if it exists.

6543 commented on 2021-05-18 21:11 (UTC) (edited on 2021-05-18 21:17 (UTC) by 6543)

cant build this package :/

6583 verbose stack TypeError: semver.simplifyRange is not a function
6583 verbose stack     at Advisory.[calculateRange] (/usr/lib/node_modules/npm/node_modules/@npmcli/metavuln-calculator/lib/advisory.js:191:16)
6583 verbose stack     at Advisory.load (/usr/lib/node_modules/npm/node_modules/@npmcli/metavuln-calculator/lib/advisory.js:148:28)
6583 verbose stack     at Calculator.[calculate] (/usr/lib/node_modules/npm/node_modules/@npmcli/metavuln-calculator/lib/index.js:59:14)
6583 verbose stack     at async Promise.all (index 0)
6583 verbose stack     at async Map.[init] (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/audit-report.js:178:7)
6583 verbose stack     at async Map.run (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/audit-report.js:106:7)
6584 verbose cwd /tmp/a/freetube/src/FreeTube-0.13.0-beta
6585 verbose Linux 5.12.4-artix1-1
6586 verbose argv "/usr/bin/node" "/usr/bin/npm" "--cache" "/tmp/a/freetube/src/npm-cache" "install"
6587 verbose node v14.16.0
6588 verbose npm  v7.13.0
6589 error semver.simplifyRange is not a function
6590 verbose exit 1

Popolon commented on 2021-05-07 10:31 (UTC)

cp: cannot stat './FreeTube-0.12.0-beta/build/linux-unpacked/resources/app.asar': No such file or directory
==> ERROR: A failure occurred in package().

I found this file instead not sure this is the same:

FreeTube-0.12.0-beta/node_modules/electron/dist/resources/default_app.asar

picokan commented on 2021-05-01 14:23 (UTC) (edited on 2021-05-01 14:50 (UTC) by picokan)

The most recent error that kept Freetube from compiling was due to a new version of nodejs breaking something. For the mean time, freetube and freetube-git will use node-lts-fermium as a dependency instead.

picokan commented on 2021-04-26 09:34 (UTC)

@Renfield Compilation is failing on my machine even when compiling manually. This looks like it's a bug from the program itself, I'll try contacting the developer.

Renfield commented on 2021-04-25 14:01 (UTC)

I'm getting a lot of errors with this package. Here are the first of them:


Error: editions-autoloader-none-broadened: Unable to determine a suitable edition, even after broadening.
    at new Errlop (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/errlop/edition-es5/index.js:61:18)
    at Object.errtion (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/editions/edition-es5/util.js:23:14)
    at determineEdition (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/editions/edition-es5/index.js:317:21)
    at solicitEdition (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/editions/edition-es5/index.js:350:16)
    at Object.requirePackage (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/editions/edition-es5/index.js:364:9)
    at Object.<anonymous> (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/istextorbinary/index.cjs:4:38)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Function.Module._load (node:internal/modules/cjs/loader:828:14)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at Object.<anonymous> (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/app-builder-lib/electron-osx-sign/util.js:135:22)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
↳ Error: editions-autoloader-none-suitable: Unable to determine a suitable edition, as none were suitable.
    at new Errlop (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/errlop/edition-es5/index.js:61:18)
    at Object.errtion (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/editions/edition-es5/util.js:23:14)
    at determineEdition (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/editions/edition-es5/index.js:327:19)
    at determineEdition (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/editions/edition-es5/index.js:312:12)
    at solicitEdition (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/editions/edition-es5/index.js:350:16)
    at Object.requirePackage (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/editions/edition-es5/index.js:364:9)
    at Object.<anonymous> (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/istextorbinary/index.cjs:4:38)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Function.Module._load (node:internal/modules/cjs/loader:828:14)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at Object.<anonymous> (/home/jlm/.cache/pacaur/freetube/src/FreeTube-0.12.0-beta/node_modules/app-builder-lib/electron-osx-sign/util.js:135:22)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)

je-vv commented on 2021-03-31 00:08 (UTC)

@picokan, could you please use --cache "${srcdir}/npm-cache" on every npm command, so that the FS doesn't get polluted when building? Thanks !

alium commented on 2021-03-30 08:09 (UTC)

you can´t remove system´s electron from PKGBUILD and after call system´s electron to run freetube ;-)

users must install it or you should remove call electron at start ;-)

AndyRTR commented on 2021-03-20 10:45 (UTC)

'electron' runtime dependency is missing. Freetube fails to start if it's not installed.

picokan commented on 2021-03-15 19:51 (UTC)

@marcih Looking at it again, I see that the npm ERR! cc: error: unrecognized command-line option ‘-m64’ indicates that, for whatever reason, electron's trying to build an x86_64 binary, which won't work on your aarch64 cpu. I'm very curious, but I don't have a cpu to test if this also fails on building from the git repo. I don't know why it wouldn't work using the PKGBUILD, I don't think I changed anything that would force an x64 build.

marcih commented on 2021-03-14 14:14 (UTC) (edited on 2021-03-14 14:15 (UTC) by marcih)

@picokan Thanks for the update! As for my build failure, I have made no changes to your PKGBUILD. I tried clean building 0.12.0-2 just now with the same result:

renderer (webpack 5.24.3) compiled successfully in 137727 ms

> freetube@0.12.0 build-release
> node _scripts/build.js

  • electron-builder  version=22.10.5 os=5.11.6-2-MANJARO-ARM
  • electron-rebuild not required if you use electron-builder, please consider to remove excess dependency from devDependencies

To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-builder install-app-deps" to your `package.json`
  • writing effective config  file=build/builder-effective-config.yaml
  • rebuilding native dependencies  dependencies=node-expat@2.3.18 platform=linux arch=x64
  ⨯ cannot execute  cause=exit status 1
                    errorOut=npm ERR! code 1
    npm ERR! path /home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-expat
    npm ERR! command failed
    npm ERR! command sh -c node-gyp rebuild
    npm ERR! make: Entering directory '/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-expat/build'
    npm ERR!   CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
    npm ERR!   CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
    npm ERR!   CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
    npm ERR! make: Leaving directory '/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-expat/build'
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp info using node-gyp@7.1.2
    npm ERR! gyp info using node@15.11.0 | linux | arm64
    npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
    npm ERR! gyp info spawn /usr/bin/python3
    npm ERR! gyp info spawn args [
    npm ERR! gyp info spawn args   '/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-gyp/gyp/gyp_main.py',
    npm ERR! gyp info spawn args   'binding.gyp',
    npm ERR! gyp info spawn args   '-f',
    npm ERR! gyp info spawn args   'make',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   '/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-expat/build/config.gypi',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   '/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-gyp/addon.gypi',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   '/home/manjaro/.electron-gyp/12.0.0/include/node/common.gypi',
    npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
    npm ERR! gyp info spawn args   '-Dvisibility=default',
    npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/manjaro/.electron-gyp/12.0.0',
    npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-gyp',
    npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/manjaro/.electron-gyp/12.0.0/<(target_arch)/node.lib',
    npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-expat',
    npm ERR! gyp info spawn args   '-Dnode_engine=v8',
    npm ERR! gyp info spawn args   '--depth=.',
    npm ERR! gyp info spawn args   '--no-parallel',
    npm ERR! gyp info spawn args   '--generator-output',
    npm ERR! gyp info spawn args   'build',
    npm ERR! gyp info spawn args   '-Goutput_dir=.'
    npm ERR! gyp info spawn args ]
    npm ERR! gyp info spawn make
    npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
    npm ERR! cc: error: unrecognized command-line option ‘-m64’
    npm ERR! make: *** [deps/libexpat/expat.target.mk:122: Release/obj.target/expat/deps/libexpat/lib/xmlparse.o] Error 1
    npm ERR! make: *** Waiting for unfinished jobs....
    npm ERR! cc: error: unrecognized command-line option ‘-m64’
    npm ERR! make: *** [deps/libexpat/expat.target.mk:122: Release/obj.target/expat/deps/libexpat/lib/xmltok.o] Error 1
    npm ERR! cc: error: unrecognized command-line option ‘-m64’
    npm ERR! make: *** [deps/libexpat/expat.target.mk:122: Release/obj.target/expat/deps/libexpat/lib/xmlrole.o] Error 1
    npm ERR! gyp ERR! build error 
    npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
    npm ERR! gyp ERR! stack     at ChildProcess.onExit (/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-gyp/lib/build.js:194:23)
    npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:378:20)
    npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
    npm ERR! gyp ERR! System Linux 5.11.6-2-MANJARO-ARM
    npm ERR! gyp ERR! command "/usr/bin/node" "/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/.bin/node-gyp" "rebuild"
    npm ERR! gyp ERR! cwd /home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-expat
    npm ERR! gyp ERR! node -v v15.11.0
    npm ERR! gyp ERR! node-gyp -v v7.1.2
    npm ERR! gyp ERR! not ok

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/manjaro/.npm/_logs/2021-03-14T14_10_49_746Z-debug.log

                    command=/usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js rebuild node-expat@2.3.18
                    workingDir=
ExecError: /home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/app-builder-bin/linux/arm64/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
    at ChildProcess.<anonymous> (/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/builder-util/src/util.ts:243:14)
    at Object.onceWrapper (node:events:485:26)
    at ChildProcess.emit (node:events:378:20)
    at maybeClose (node:internal/child_process:1067:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
  exitCode: 2,
  alreadyLogged: true,
  code: 'ERR_ELECTRON_BUILDER_CANNOT_EXECUTE'
}
==> Entering fakeroot environment...
==> Starting package()...
cp: cannot stat './FreeTube-0.12.0-beta/build/linux-unpacked/resources/app.asar': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
error making: freetube

picokan commented on 2021-03-13 19:31 (UTC) (edited on 2021-03-13 19:31 (UTC) by picokan)

@marcih Thank you for all of the information. Unfortunately, I don't know what's causing sh -c node-gyp rebuild. If you made changes to the PKGBUILD to fix some of my errors you may have accidentally written something that leads to that error. As for the sed command, the purpose was to have the freetube package use the system electron if available, and I thought that sed was necessary as I saw it being used on one of the packages mentioned here. After re-reading it and a bit of testing, I've changed the way it's done to something that won't stop working as intended as soon as Freetube changes it's target electron version or the system electron package is updated. Lastly, since this is already using makepkg, I don't think telling makepkg to make a pacman package of the pacman package electron made will work, but I haven't tried. The rest of the recommended changes have been applied, thank you to all who helped me.

ZorinArch commented on 2021-03-08 09:10 (UTC)

update line 15 to source=(https://github.com/FreeTubeApp/FreeTube/archive/v$pkgver-beta.tar.gz

marcih commented on 2021-03-07 16:00 (UTC)

Again, FYI, freetube has moved to electron 12, making line 23 of the PKGBUILD obsolete - in fact: a) freetube hasn't used electron v11.1.0 since 0.10.0; b) the regex itself is written wrong, the comma should be after the double quotes.

I don't know what the reasoning was to removing the build dependency on electron and whether it is still necessary, but if you want to keep it removed then line 23 ought to be: sed -i 's@"electron": "^12.0.0",@@g' "$srcdir/$_pkgname-$pkgver-beta/package.json"

Also, question: since the build system can output what seems to be a pacman package directly (see "package-only-necessary.diff"), can we not somehow use that?

AndyRTR commented on 2021-03-07 12:00 (UTC)

New release builds well in a clean chroot on x86_64. Please add %U to .desktop file as suggested. I've confirmed this working to open links from Firefox using privacy redirect extension.

marcih commented on 2021-03-07 11:40 (UTC) (edited on 2021-03-07 15:27 (UTC) by marcih)

0.12.0-1 doesn't build for me on Manjaro aarch64:

renderer (webpack 5.24.3) compiled successfully in 127860 ms

> freetube@0.12.0 build-release
> node _scripts/build.js

  • electron-builder  version=22.10.5 os=5.11.3-1-MANJARO-ARM
  • electron-rebuild not required if you use electron-builder, please consider to remove excess dependency from devDependencies

To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-builder install-app-deps" to your `package.json`
  • writing effective config  file=build/builder-effective-config.yaml
  • rebuilding native dependencies  dependencies=node-expat@2.3.18 platform=linux arch=x64
  ⨯ cannot execute  cause=exit status 1
                    errorOut=npm ERR! code 1
    npm ERR! path /home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-expat
    npm ERR! command failed
    npm ERR! command sh -c node-gyp rebuild
    npm ERR! make: Entering directory '/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-expat/build'
    npm ERR!   CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
    npm ERR!   CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
    npm ERR!   CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
    npm ERR! make: Leaving directory '/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-expat/build'
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp info using node-gyp@7.1.2
    npm ERR! gyp info using node@15.11.0 | linux | arm64
    npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
    npm ERR! gyp info spawn /usr/bin/python3
    npm ERR! gyp info spawn args [
    npm ERR! gyp info spawn args   '/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-gyp/gyp/gyp_main.py',
    npm ERR! gyp info spawn args   'binding.gyp',
    npm ERR! gyp info spawn args   '-f',
    npm ERR! gyp info spawn args   'make',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   '/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-expat/build/config.gypi',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   '/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-gyp/addon.gypi',
    npm ERR! gyp info spawn args   '-I',
    npm ERR! gyp info spawn args   '/home/manjaro/.electron-gyp/12.0.0/include/node/common.gypi',
    npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
    npm ERR! gyp info spawn args   '-Dvisibility=default',
    npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/manjaro/.electron-gyp/12.0.0',
    npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-gyp',
    npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/manjaro/.electron-gyp/12.0.0/<(target_arch)/node.lib',
    npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-expat',
    npm ERR! gyp info spawn args   '-Dnode_engine=v8',
    npm ERR! gyp info spawn args   '--depth=.',
    npm ERR! gyp info spawn args   '--no-parallel',
    npm ERR! gyp info spawn args   '--generator-output',
    npm ERR! gyp info spawn args   'build',
    npm ERR! gyp info spawn args   '-Goutput_dir=.'
    npm ERR! gyp info spawn args ]
    npm ERR! gyp info spawn make
    npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
    npm ERR! cc: error: unrecognized command-line option ‘-m64’
    npm ERR! make: *** [deps/libexpat/expat.target.mk:122: Release/obj.target/expat/deps/libexpat/lib/xmlparse.o] Error 1
    npm ERR! cc: error: unrecognized command-line option ‘-m64’
    npm ERR! make: *** Waiting for unfinished jobs....
    npm ERR! make: *** [deps/libexpat/expat.target.mk:122: Release/obj.target/expat/deps/libexpat/lib/xmltok.o] Error 1
    npm ERR! cc: error: unrecognized command-line option ‘-m64’
    npm ERR! make: *** [deps/libexpat/expat.target.mk:122: Release/obj.target/expat/deps/libexpat/lib/xmlrole.o] Error 1
    npm ERR! gyp ERR! build error 
    npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
    npm ERR! gyp ERR! stack     at ChildProcess.onExit (/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-gyp/lib/build.js:194:23)
    npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:378:20)
    npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
    npm ERR! gyp ERR! System Linux 5.11.3-1-MANJARO-ARM
    npm ERR! gyp ERR! command "/usr/bin/node" "/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/.bin/node-gyp" "rebuild"
    npm ERR! gyp ERR! cwd /home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/node-expat
    npm ERR! gyp ERR! node -v v15.11.0
    npm ERR! gyp ERR! node-gyp -v v7.1.2
    npm ERR! gyp ERR! not ok

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/manjaro/.npm/_logs/2021-03-07T11_35_56_520Z-debug.log

                    command=/usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js rebuild node-expat@2.3.18
                    workingDir=
ExecError: /home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/app-builder-bin/linux/arm64/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
    at ChildProcess.<anonymous> (/home/manjaro/.cache/yay/freetube/src/FreeTube-0.12.0-beta/node_modules/builder-util/src/util.ts:243:14)
    at Object.onceWrapper (node:events:485:26)
    at ChildProcess.emit (node:events:378:20)
    at maybeClose (node:internal/child_process:1067:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
  exitCode: 2,
  alreadyLogged: true,
  code: 'ERR_ELECTRON_BUILDER_CANNOT_EXECUTE'
}
==> Entering fakeroot environment...
==> Starting package()...
cp: cannot stat './FreeTube-0.12.0-beta/build/linux-unpacked/resources/app.asar': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
error making: freetube

Any ideas?

marcih commented on 2021-03-07 11:11 (UTC)

I appreciate the addition of ARM to supported architectures but please note that, in context of a PKGBUILD, "arm" is not a catch-all for all ARM arches, it defines specifically armv5; building natively on a PinePhone (aarch64) therefore still complains about unsupported architecture.

See also: https://wiki.archlinux.org/index.php/PKGBUILD#arch

marcih commented on 2021-03-07 11:03 (UTC) (edited on 2021-03-07 11:04 (UTC) by marcih)

FYI, in order to handle "freetube" URI schemes properly, the "Exec" entry should have a "%U" after the command, see desktop file from upstream deb pacakge:

[Desktop Entry]
Name=FreeTube
Exec=/opt/FreeTube/freetube %U
Terminal=false
Type=Application
Icon=freetube
StartupWMClass=FreeTube
Comment=A private YouTube client
MimeType=x-scheme-handler/freetube;
Categories=Network;

Autodidaddy commented on 2021-03-06 16:36 (UTC)

Doesn't build;

npm ERR! semver.simplifyRange is not a function

malcolm commented on 2021-02-15 03:08 (UTC) (edited on 2021-02-15 03:08 (UTC) by malcolm)

The freetube.desktop file of the maintainer builds has the MimeType field, could you add it as well?

[Desktop Entry]
Name=FreeTube
Exec=AppRun %U
Terminal=false
Type=Application
Icon=freetube
StartupWMClass=FreeTube
X-AppImage-Version=0.11.2
Comment=A private YouTube client
MimeType=x-scheme-handler/freetube;
Categories=Network;

greektex commented on 2021-01-22 20:54 (UTC)

@picokan Yes, I can confirm this was an issue with the app itself, and it is resolved with the next release, 0.11.2 beta, as reported in this ticket:

https://github.com/FreeTubeApp/FreeTube/issues/948

picokan commented on 2021-01-18 12:03 (UTC) (edited on 2021-01-18 12:04 (UTC) by picokan)

I'm sorry, "run makepkg as you normally would" is incorrect, you need to use the -e flag to not re-extract the source code and overwrite your changes.

picokan commented on 2021-01-18 11:45 (UTC)

@greektex This is a bug on the developer side. For some reason his scripts had a hiccup and failed to mark this version as 0.11.1 in the package.json file. You can fix it manually by running makepkg -o, which will download only the source code and apply patches. Then go into the src directory and change the version in package.json to be 0.11.1 and run makepkg as you normally would.

greektex commented on 2021-01-17 16:44 (UTC)

I applied the recent update, but the app identifies itself as version v0.11.0 Beta in the "About" section and I get a notification on the starting page that I should update to v 0.11.1 Beta.

However, I would think that this is the version that I have installed?! Here is the output during makepkg:

Erstelle freetube...
==> Erstelle Paket: freetube 0.11.1-1 (So 17 Jan 2021 17:34:27 CET)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
  -> v0.11.1-beta.tar.gz gefunden
  -> package-only-necessary.diff gefunden
  -> freetube.desktop gefunden
  -> freetube.sh gefunden
==> Überprüfe source Dateien mit sha256sums...
    v0.11.1-beta.tar.gz ... Durchgelaufen
    package-only-necessary.diff ... Übersprungen
    freetube.desktop ... Übersprungen
    freetube.sh ... Übersprungen
==> Entferne existierendes $srcdir/ Verzeichnis...
==> Entpacke Quellen...
  -> Entpacke v0.11.1-beta.tar.gz mit bsdtar
==> Beginne prepare()...
patching file /var/tmp/[snip]/freetube/src/FreeTube-0.11.1-beta/_scripts/build.js
==> Beginne build()...
[snip]
==> Betrete fakeroot Umgebung...
==> Beginne package()...
==> Säubere Installation...
  -> Entferne libtool Dateien...
  -> Bereinige ungewollte Dateien...
  -> Entferne statische Bibliotheken...
  -> Entferne unnötige Symbole aus Binär-Dateien und Bibliotheken...
  -> Komprimiere Man-Pages und Info-Seiten...
==> Prüfe auf Paketierungsprobleme...
==> WARNUNG: Paket enthält einen Verweis auf $srcdir
usr/lib/freetube/app.asar
==> Erstelle Paket "freetube"...
  -> Erstelle .PKGINFO Datei...
  -> Erstelle .BUILDINFO Datei...
  -> Erstelle .MTREE-Datei...
  -> Komprimiere Paket... 
==> Verlasse fakeroot Umgebung.
==> Beendete Erstellung: freetube 0.11.1-1 (So 17 Jan 2021 17:38:57 CET)
==> Räume auf...

Überprüfe Schlüsselring...
Integrität wird überprüft...
Paketdateien werden geladen...
Dateikonflikte werden überprüft...
Überprüfe verfügbaren Speicherplatz...
Reinstalliere freetube (0.11.1-1)...
Starte Post-Transaction-Hooks...
Arming ConditionNeedsUpdate...
Updating the desktop file MIME type cache...
Vorgang erfolgreich abgeschlossen.

je-vv commented on 2020-12-27 00:23 (UTC)

Thanks a lot @picokan !

picokan commented on 2020-12-26 16:42 (UTC)

I apologise for the recent inconvenience and frequently updating freetube and freetube-bin, but the way it was using the system electron before was poor and I thought the change was worth it. You should note that with this update the package size went from ~200MB to ~100MB and that it will now share the electron package with other programs like element-desktop.

je-vv commented on 2020-12-25 01:19 (UTC)

@picokan, nothing broke, thanks a lot !

picokan commented on 2020-12-24 19:07 (UTC)

I've added the modifications to use the system electron according to the tips I've been given. Please test and warn me if something broke.

je-vv commented on 2020-12-13 22:46 (UTC)

BTW, according to the answer on https://github.com/FreeTubeApp/FreeTube/issues/865, what could be tried is modifying "package.json" so that the electron version matches the system one. Haven't tried it yet, but sounds like something doable, :)

je-vv commented on 2020-12-13 00:26 (UTC)

Perhaps someone who knows can contribute get this package to use system electron, and as many system deps as possible, to prevent it downloading and building/using non system packaged sw... I have no clue how it can be done, but there's slack-electron and jitsi-desktop, which, as examples, use system electron. This would be just great. Thanks ! I made the question on https://github.com/FreeTubeApp/FreeTube/issues/865, but I doubt upstream would be interested on helping about this, :)

picokan commented on 2020-11-15 15:10 (UTC)

@rebal28 What extension in particular are you talking about? Right now, the only supported extension that I know of is Privacy Redirect. Support for the other Freetube redirect extension was probably dropped, as the developer was only supporting it because Freetube wasn't in Privacy Redirect until recently.

rebal28 commented on 2020-11-09 18:14 (UTC)

Are there any solution to the firefox/chromium redirect extension?

just adding MimeType=x-scheme-handler/freetube; to the desktop file did not help.

it still gives me an error Unable to create io-slave. klauncher said: Unknown protocol 'freetube'.

picokan commented on 2020-10-31 22:20 (UTC) (edited on 2020-10-31 22:21 (UTC) by picokan)

@satcom886 It's not nonsense. The developer of FreeTube made it this way, that's all there is to it. He could have it like you said, but I don't specifically know if that change would be easy or not.

@icewind That dependency is very temporary, only to have a hacky patch to make searches work better since the modules were disrupted by a recent Youtube update. It should not be needed very soon.

satcom886 commented on 2020-10-31 19:43 (UTC) (edited on 2020-10-31 19:44 (UTC) by satcom886)

I'm sorry if what I'm saying here is nonsense, I know almost nothing about JS and Electron.

Is it really necessary to download electron with npm? Why not have electron as a dependency. It's already a package in Arch...

icewind commented on 2020-10-23 13:35 (UTC)

requires git as makedepends (a git npm dependency is used)

alium commented on 2020-10-20 20:55 (UTC)

some feedback :-) https://paste.artixlinux.org/view/a12266f3

je-vv commented on 2020-10-03 21:29 (UTC) (edited on 2020-12-25 01:22 (UTC) by je-vv)

@logos, you can take a look at both PKGBUILs. The <...>-bin downloads a binary package, whereas this one downloads the tarball released source and builds the binaries from that source. Not so relevant to your question, at this point the <...>-bin AUR package is out of date, but nothing a PKGBUILD upgrade from the dev/maintainer doesn't solve...

logos commented on 2020-10-03 16:09 (UTC)

What's the difference between this and freetube-bin package?

picokan commented on 2020-10-03 08:51 (UTC)

My mistake, I copied a lot from the freetube-git package and I forgot to change that.

je-vv commented on 2020-10-03 02:09 (UTC)

Not that it bothers me, but why keeping git as a dependency, if this package thankfully uses the latest released tarball?