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 to newest #714

Closed
6 tasks done
mifi opened this issue Apr 2, 2021 · 6 comments
Closed
6 tasks done

Upgrade electron to newest #714

mifi opened this issue Apr 2, 2021 · 6 comments

Comments

@mifi
Copy link
Owner

mifi commented Apr 2, 2021

This would give benefits:

☑️ Upgrade was blocked by electron/electron#26143 and libuv/libuv#3050 - I tested upgrading but losslesscut becomes unbearably slow in newest versions of electron. Now fixed!

May have to look into https://github.com/vercel/hyper/pull/5803/files

TODO

CSP <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval';" />

app.on('ready', async () => {
  // https://github.com/electron/electron/issues/23757
  electron.protocol.registerFileProtocol('file', (request, callback) => {
    const pathname = decodeURIComponent(request.url.replace('file:///', ''));
    callback(pathname);
  });

update package.json browserlist electron version

electron-store,electron-builder,electron-builder-notarize versions have been pinned in package.json (not ^)

we are heavy on electron.remote so probably need to use https://www.npmjs.com/package/@electron/remote

test

  • test all native modules
  • test confirm close after upgrade to 12
  • test packed build and signed (MAS) npx react-scripts build && npx electron-builder --mac
  • ...
mifi added a commit that referenced this issue Apr 5, 2021
mifi added a commit that referenced this issue Aug 25, 2021
due to issues with child_process slowing down UI
@ryneeverett
Copy link

It might be worth noting that electron-8x is EOL so there are likely unpatched security issues, for example:

@mifi
Copy link
Owner Author

mifi commented Jan 5, 2022

Yea. There's still a critical bug in MacOS/electron that is preventing me (and a lot of other electron apps) from upgrading to v12. Although I'd love to upgrade to 12, I'm not going to prioritise implementing a hack workaround in losslesscut until absolutely necessary.

@mifi mifi changed the title Upgrade electron to 12 Upgrade electron to newest Jan 20, 2022
@folknor
Copy link

folknor commented Feb 9, 2022

The app is now no longer working on any recent linux distro without custom launch flags: ValveSoftware/steam-for-linux#8373 (comment)

You might want to mention this in the release notes or in the projects readme. ./LosslessCut.AppImage --no-sandbox works fine, for example. There's at least 2 other builtin flags that will also probably make it run, they're listed in the linked issue thread somewhere.

EDIT: Also see electron/electron#31091

@mifi
Copy link
Owner Author

mifi commented Feb 10, 2022

There is already a line in the readme about no-sandbox: https://github.com/mifi/lossless-cut#troubleshooting--faq
Is there anything else needed to get it to run on linux now?

@robertgzr
Copy link

electron v20 is out 🚀

@mifi
Copy link
Owner Author

mifi commented Nov 23, 2022

now upgraded to electrion 21

@mifi mifi closed this as completed Nov 23, 2022
mifi added a commit that referenced this issue Nov 24, 2022
mifi added a commit that referenced this issue Nov 24, 2022
use instead shell.showItemInFolder #714
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants