How can I have my Electron application route to one of two different versions of the app?

Hi. Is there a way to have an Electron desktop application route to one of two different versions of the app?

Reason I’m asking is, we have Day 1 application code, and need to start adding Day 2 code.

The business logic is mostly identical. The UI will be completely rewritten.

I can imagine adding in additional .html pages for the new Day 2 application, while leaving the Day 1 UI around for maintenance.

My question is, how can I route the app to the correct page based on the correct version? I’m thinking of having command line arguments, but I have no idea where to begin. Any pointers to existing articles or other questions/answers would be appreciated.

Thanks.