Custom UI (server extension) in jupyterlab-desktop

I am developing an app as a Jupyter server extension, and I would like to distribute it as a desktop app.

It’s easy enough to install it inside the conda environment, but I’m not sure how to go about loading it in the Electron app.

Even if I change the startup command to my extension, it still loads Jupyter Lab.

It looks like the desktop app is actually not loading the localhost JupyterLab running from the conda environment, but directly loading the JS in Electron proper.

Is there any sort of mechanism to load my own app?

If not, and I should just build my own Electron app using Construct, what is the advantage of bundling the JS inside Electron over just loading the localhost app?