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:

2nd choice.
Create vuejs project on raspberry.
add electron-builder.
compile with yarn electron:build command.
similar to this link:

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