Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade electron from 16 > 20 #2448

Merged
merged 4 commits into from Aug 26, 2022

Conversation

PikachuEXE
Copy link
Collaborator

@PikachuEXE PikachuEXE commented Aug 3, 2022

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

  • Feature Implementation

Related issue
Might or might not fix issue in #2113

Closes #2358
Closes #2406
Closes #2359

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

Breaking change in 20.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: f9870f4

Additional context
Add any other context about the problem here.

@PrestonN PrestonN enabled auto-merge (squash) August 3, 2022 02:02
@PikachuEXE PikachuEXE mentioned this pull request Aug 3, 2022
1 task
@PikachuEXE PikachuEXE added PR: dependencies Pull requests that update a dependency file PR: waiting for review For PRs that are complete, tested, and ready for review labels Aug 3, 2022
@wildwestrom
Copy link

wildwestrom commented Aug 3, 2022

Just compiled from source and am using now.
If you want to compile this on Arch, you need the libxcrypt-compat package.
I also did this so as not to do extra work.

diff --git a/_scripts/build.js b/_scripts/build.js
index 14ce4fcd..63b8fffa 100644
--- a/_scripts/build.js
+++ b/_scripts/build.js
@@ -33,7 +33,7 @@ if (platform === 'darwin') {
     arch = Arch.armv7l
   }
 
-  targets = Platform.LINUX.createTarget(['deb', 'zip', 'apk', 'rpm', 'AppImage', 'pacman'], arch)
+  targets = Platform.LINUX.createTarget(['pacman'], arch)
 }
 
 const config = {
@@ -97,7 +97,7 @@ const config = {
   linux: {
     category: 'Network',
     icon: '_icons/icon.svg',
-    target: ['deb', 'zip', 'apk', 'rpm', 'AppImage', 'pacman'],
+    target: ['pacman'],
   },
   // See the following issues for more information
   // https://github.com/jordansissel/fpm/issues/1503

After that, you can:

cd build
sudo pacman -U freetube*.pacman

Copy link
Member

@ChunkyProgrammer ChunkyProgrammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't find any issues (Tested on Windows 11)

@PikachuEXE
Copy link
Collaborator Author

I think the main potential issue source would be linux...

@wildwestrom
Copy link

wildwestrom commented Aug 5, 2022

So far so good on my setup; Sway/wlroots.

@PikachuEXE
I think the main potential issue source would be linux...

It's just a Chromium browser with some node support.
Are we using any weird features of Chromium or V8? Nothing about FreeTube seems very outside the realm of a typical web app.

@efb4f5ff-1298-471a-8973-3d47447115dc
Copy link
Member

When u hover over the PIP window with your cursor

VirtualBoxVM_Y3bR9hU60d.mp4

Is this included in the breaking changes? I'm on Ubuntu everything works fine apart from this.

Edit: I'm willing to make this sacrifice and approve this PR so other users can finally enjoy FT on Wayland instead of seeing black screen.

@PikachuEXE
Copy link
Collaborator Author

I think it's a bug, have you tried 19.x version?

@PikachuEXE
Copy link
Collaborator Author

19.x also got the same issue, but 18.x does not

@ChunkyProgrammer
Copy link
Member

Wait for electron/electron#34406 to ve fixed before merging?

electron/electron#35034

@PikachuEXE PikachuEXE added electron being electron Electron related bugs and trickeries PR: WIP labels Aug 5, 2022
@toby63
Copy link

toby63 commented Aug 12, 2022

Tested on Manjaro Linux and except for the already mentioned color problem (in #2448 (comment)), I could not find any issues yet.

Copy link
Member

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed that the PR that fixes the issue got a label v21-x-y. The author of that OR is a member of the Electron team. So it likely wont be implemented in v20 therefore im willing to make the compromise and approve this so Wayland users can make use of FT again.

Edit: oops im just being dumb it also got the labels v19-x-y and v20-x-y. So im assuming it will get fixed in those versions.

@ChunkyProgrammer
Copy link
Member

ChunkyProgrammer commented Aug 18, 2022

new electron version released (20.0.3), not fixed yet (will hopefully be fixed for next electron version)

@efb4f5ff-1298-471a-8973-3d47447115dc

FYI electron/electron#35034 has been merged we only need to wait for new version to be pushed out!

@PikachuEXE
Copy link
Collaborator Author

I subscribe to released not PR merges... :P
Coz I can't update until they are released!

Wait should I also open a PR for electron 21...?

@efb4f5ff-1298-471a-8973-3d47447115dc

21 will be released in 5 weeks
3 weeks ago 20 was released
Every 8 weeks new electron version being released.

So no u dont have to create a PR for 21 yet...

Hopefully we can enjoy 20 for a little while.

@PikachuEXE
Copy link
Collaborator Author

PIP fix included
Should we remove the WIP label?

@PikachuEXE
Copy link
Collaborator Author

@ChunkyProgrammer @absidue

Also why @ChunkyProgrammer you just remove the label but not review 🤣

@PrestonN PrestonN merged commit 680abbe into FreeTubeApp:development Aug 26, 2022
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Aug 26, 2022
@PikachuEXE PikachuEXE deleted the update/electron/20.x branch September 1, 2022 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electron being electron Electron related bugs and trickeries PR: dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants