vue-cli-plugin-electron-builder icon indicating copy to clipboard operation
vue-cli-plugin-electron-builder copied to clipboard

can not launch electron app on debian10

Open liudenaxietian opened this issue 2 years ago • 8 comments

Describe the bug i have created an electron-vue project on debian10 with aarch64 and amd64 platform,when use yarn electron:serve to run this project,it complied success but don't show the main window,i have tried so many times with the same result

To Reproduce Steps to reproduce the behavior: 1.vue create test_demo 2.cd test_demo 3.vue add electron-builder 4.yarn electron:serve

Expected behavior compile success and show the normal windows

Screenshots test_demo

Environment (please complete the following information): system:Linux debian10 4.19.0-20-amd64 https://github.com/electron/electron/issues/1 SMP Debian 4.19.235-1(2022-03-17) x86_64 GNU/Linux vue: 3.2.13 electron: 13.0.0 vue-cli-plugin-electron-builder:~2.1.1

Additional context

liudenaxietian avatar May 30 '22 07:05 liudenaxietian

How about building the app and running the compiled executable?

When that is not working, that is probably a sign the current release will not work with Vue3. But I am not sure about that.

MatthijsBurgh avatar May 30 '22 07:05 MatthijsBurgh

How about building the app and running the compiled executable?

When that is not working, that is probably a sign the current release will not work with Vue3. But I am not sure about that.

Thanks,i check the dist_electron,there have no compiled executable file,BTW,I have success run yarn electron:serve in debian10 aarch64 one time,but when i re-run,it never run successed,i have repeat these so many times,

and I have try with Vue2,but have the same question on debian10, Would you mind provide me the normal version of Vue or Electron which can run on debian10?

liudenaxietian avatar May 30 '22 09:05 liudenaxietian

I have really no clue why it isn't working.

Please try to run my project: https://github.com/tue-robotics/hero-display I have been using NPM, not YARN. I have used it on ubuntu 18 and 20. Both electron:serve and electron:build should work.

MatthijsBurgh avatar May 30 '22 10:05 MatthijsBurgh

I have really no clue why it isn't working.

Please try to run my project: https://github.com/tue-robotics/hero-display I have been using NPM, not YARN. I have used it on ubuntu 18 and 20. Both electron:serve and electron:build should work.

thanks a lot,i'll have a try!

liudenaxietian avatar May 30 '22 10:05 liudenaxietian

@liudenaxietian does my project work on your debian 10 machine?

MatthijsBurgh avatar Jun 03 '22 08:06 MatthijsBurgh

same here, I have try to exec yarn electron:serve && npm run electron:serve get same error, but yarn electron:build was work well

@liudenaxietian does my project work on your debian 10 machine?

image image image

jsbay avatar Jun 16 '22 09:06 jsbay

I don't have a debian machine and debian is also not available in GH actions. So it is almost impossible for me to help you.

MatthijsBurgh avatar Jun 16 '22 10:06 MatthijsBurgh

Maybe I have found a solution.

  1. clone a simple demo by git clone https://github.com/electron/electron-quick-start
  2. cd electron-quick-start && npm install
  3. run script npm run start

get error:

The SUID sandbox helper binary was found, but is not configured correctly
image

so, re-run with npm run start --no-sandbox, got same error, then try yarn start --no-sanbox, it will launch successfully

image

So, I wonder if there is a way to pass --no-sanbox to electron in vue-cli-plugin-electron-builder ??

jsbay avatar Jun 17 '22 00:06 jsbay