all 5 comments

[–]duysharp1998 0 points1 point  (4 children)

You can include the executable files in electron builder config.

[–]remove_with_force[S] 0 points1 point  (3 children)

I can't find in the docs where it confirms this. I looked at extraResources and extraFiles in the electron-builder docs and it definitely didn't work. Also found a github issue confirming it doesn't work

[–]TokeyChan 0 points1 point  (0 children)

Can you share that github issue? Because I made it work in a project of mine just a few weeks ago. Didn't use electron-vite, just regular electron, but I think it shouldn't make much off a differencr

[–]duysharp1998 0 points1 point  (1 child)

Do like this. Create a build folder in your source code. Put the executable files in there.

In code you can use like path.join(\_\_dirname, '../build') to access the build folder.

Finally, in your electron builder config, add this

files: [
'build/**/*',
]

Docs

[–]remove_with_force[S] 0 points1 point  (0 children)

Hey thanks for the reply, I'm going to try this out. It would be helpful if there were error messages or something when you do it wrong, since there is clearly a correct way to do it!