armory3d / armory

3D Engine with Blender Integration
https://armory3d.org/engine
zlib License
3.07k stars 315 forks source link

Electron html5 debug runtime #2703

Open tong opened 1 year ago

tong commented 1 year ago

How about adding a electron application as a (debug) runtime for html5, like kode is doing it for vscode? This would make some things a lot easier:

Here https://github.com/tong/armory_html5_runtime is a quick hack to test this. Since the appliction uses haxe/js for it's main process one could easily extend it to add custom functionality.

rpaladin commented 1 year ago

This would require NPM in order to download and initialize the Node dependencies, correct? Kha/armsdk doesn't ship with NPM, only Node, so it would need to be either downloaded separately (which is more work / dependencies), or we ship NPM with the armsdk.

Frankly, I support, but also disagree with these approaches.

tong commented 1 year ago

I don't think bundling npm with the sdk is a good idea.

Currently i am using the armory_electron_runtime as armory Subproject which works fine.
Maybe we can use the khafile.js (when used as Subproject) to check for dependencies, give some instructions or even auto install npm.