Vuejs spa on raspberry pi

Hi guys , Im working on a vuejs spa.
Final goal is to create an electron app to run on raspberry arm platform.
There is one thing I have not clear.
What is the difference between working with electron and electron-builder.
1st option can be:
Build my vuejs ap and move to raspberry.
Install electron in raspberry.
Set electron to start builded app.
similar to this link:
https://www.raspberrypi.org/forums/viewtopic.php?t=268300

2nd choice.
Create vuejs project on raspberry.
add electron-builder.
compile with yarn electron:build command.
similar to this link:
https://itnext.io/electron-application-with-vue-js-and-vuetify-f2a1f9c749b8

Any feedback / idea / though on this will help a lot.
Thanks.