sindresorhus / electron-serve

Static file serving for Electron apps
MIT License
437 stars 34 forks source link

Using it with electron builder ? #31

Closed x4080 closed 2 years ago

x4080 commented 2 years ago

Hi, I try to build using electron builder, and after build, it seems cannot open the 'app://-' location, is it because the "build" folder that contains single-page web app files is not accessible ?

My electron builder config :

  ...
  "build": {
    "extraFiles": [
      "build"
    ],
  ...

the "build" folder is the single-page web app folder

Anybody has clue ?

Thanks

x4080 commented 2 years ago

Found the cause : cannot use build folder name for static files

trungleduc commented 1 year ago

Hi @x4080, i'm having the same issue, could you share your setup to make it work with electron builder?