The WebUI Bridge connects the UI (Web Browser) with the backend application through WebSocket. This bridge is written in TypeScript, and it needs to be transpiled to JavaScript using ESBuild to produce webui.js, then converted to C header using the Node script js2c.js to generate webui_bridge.h.
- Install Python
- Install Node.js
- cd
webui\bridge npm install esbuild.\node_modules\.bin\esbuild --bundle --target="chrome90,firefox90,safari15" --format=esm --tree-shaking=false --outdir=.\ .\webui.tsnode js2c.js
- cd
webui\bridge build.bat- If you get running scripts is disabled on this
system error. Then run
Set-ExecutionPolicy RemoteSignedto enable script execution. After done, you can roll back by runningSet-ExecutionPolicy Restricted
- Install Python
- Install Node.js
- cd
webui/bridge npm install esbuild./node_modules/.bin/esbuild --bundle --target="chrome90,firefox90,safari15" --format=esm --tree-shaking=false --outdir=./ ./webui.tsnode js2c.js
- cd
webui\bridge - sh
./build.sh
- Install Python
- Install Node.js
- cd
webui/bridge npm install esbuild./node_modules/.bin/esbuild --bundle --target="chrome90,firefox90,safari15" --format=esm --tree-shaking=false --outdir=./ ./webui.tsnode js2c.js
- cd
webui\bridge - sh
./build.sh