FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

Upgrade electron from 16 > 19

Open PikachuEXE opened this issue 3 years ago • 9 comments

Pull Request Type Please select what type of pull request this is:

  • [x] Feature Implementation

Related issue Might or might not fix issue in #2113

Closes #2358

Description 16.x is not supported anymore From https://www.electronjs.org/blog/electron-17-0 image

Breaking change in 17.x =

Breaking change in 18.x =

Breaking change in 19.x

Screenshots (if appropriate) N/A

Testing (for code that is not small enough to be easily understandable) Use test build daily in different OS

Desktop (please complete the following information):

  • OS: MacOS
  • OS Version: 12.1
  • FreeTube version: 5d4048571f9dcb9f57c4f215ae59b00ebe0d20d1

Additional context Add any other context about the problem here.

PikachuEXE avatar Jul 20 '22 08:07 PikachuEXE

CI build artifacts here: https://github.com/absidue/FreeTube/actions/runs/2703335841

absidue avatar Jul 20 '22 08:07 absidue

Got a couple errors when running pacman -U on the .pacman file. I don't know how to fix it (yet), but I figured I should leave this feedback for now.

(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating icon theme caches...
(3/4) save-package-list.hook
error: local database is inconsistent: name mismatch on package freetube-0.17.0-nightly
error: local database is inconsistent: version mismatch on package freetube-0.17.0-nightly
(4/4) Updating the desktop file MIME type cache...

So far so good. Again testing with the wayland ozone platform.

wildwestrom avatar Jul 24 '22 23:07 wildwestrom

@absidue Could you please run another CI artifact so I can test the latest commit?

wildwestrom avatar Jul 28 '22 17:07 wildwestrom

@wildwestrom The artifacts will be here when the build finishes: https://github.com/absidue/FreeTube/actions/runs/2756087579 (so they will probably be done by the time you see this).

absidue avatar Jul 28 '22 19:07 absidue

For anyone who hasn't dealt with a .pacman file, it's apparently pretty easy to use. First unzip the tarball. Then run pacman -U to install it. Before installing another nightly, you need to manually remove the previous one with pacman -R. Also know that pacman will complain about the database being inconsistent, but that goes away after uninstalling.

wildwestrom avatar Jul 29 '22 19:07 wildwestrom

Just tried a build (freetube-git (with minor modifications to use electron19)) with this patch on Manjaro Linux, all seems to work great. Electron19 also seems to improve performance and UI loading etc.

I am using Wayland by the way.

toby63 avatar Aug 02 '22 14:08 toby63

Anyone wanna try electron 20? 🤣

PikachuEXE avatar Aug 03 '22 01:08 PikachuEXE

sure would u like to open up a PR 😬

@efb4f5ff-1298-471a-8973-3d47447115dc https://github.com/FreeTubeApp/FreeTube/pull/2448

Testing it is another thing...

PikachuEXE avatar Aug 03 '22 02:08 PikachuEXE

PIP fix included Should we remove the WIP label?

PikachuEXE avatar Aug 25 '22 01:08 PikachuEXE