nklayman / vue-cli-plugin-electron-builder

Easily Build Your Vue.js App For Desktop With Electron
https://nklayman.github.io/vue-cli-plugin-electron-builder/
MIT License
4.12k stars 280 forks source link

can not launch electron app on debian10 #1762

Open liudenaxietian opened 2 years ago

liudenaxietian commented 2 years ago

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

MatthijsBurgh commented 2 years ago

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.

liudenaxietian commented 2 years ago

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?

MatthijsBurgh commented 2 years ago

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.

liudenaxietian commented 2 years ago

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!

MatthijsBurgh commented 2 years ago

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

jsbay commented 2 years ago

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
MatthijsBurgh commented 2 years ago

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.

jsbay commented 2 years ago

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 ??