You can create a download page and display the actual application after starting the web server.
package.json:
{ "name": "pythonApp", "version": "0.0.0", "main": "loading.html", "window": { "title": "App Name", "width": 800, "height": 600, "position": "center", } }
The download page (load.html) will load the js file, which will launch your actual application page in the form of a hidden window, and you can show it when the server is running.
loading.html:
var gui = require('nw.gui'); var currentWindow = gui.Window.get();
In any case, this is the essence, but you may need to make changes for your specific installation. Hope this helps.
source share