Initial Neutralino.js POC for kokoro-widget
Lightweight alternative to the Electron build (~5MB vs ~300MB). Uses system webview (WebKit2GTK on Linux, WKWebView on macOS, WebView2 on Windows). Same UI and feature set as the Electron build: WebSocket audio client, volume control, host/port settings, tray icon, hide-to-tray on close, CLI args (--host, --port, --volume). Note: Linux requires libwebkit2gtk-4.0 or libwebkit2gtk-4.1. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
38
neutralino.config.json
Normal file
38
neutralino.config.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"applicationId": "com.pai.kokoro-widget",
|
||||
"version": "1.0.0",
|
||||
"defaultMode": "window",
|
||||
"documentRoot": "/www/",
|
||||
"url": "/",
|
||||
"enableServer": true,
|
||||
"enableNativeAPI": true,
|
||||
"nativeAllowList": [
|
||||
"app.*",
|
||||
"os.*",
|
||||
"storage.*",
|
||||
"window.*",
|
||||
"events.*",
|
||||
"debug.*"
|
||||
],
|
||||
"modes": {
|
||||
"window": {
|
||||
"title": "PAI Voice",
|
||||
"width": 360,
|
||||
"height": 540,
|
||||
"minWidth": 300,
|
||||
"minHeight": 400,
|
||||
"icon": "/www/icon.png",
|
||||
"alwaysOnTop": false,
|
||||
"borderless": false,
|
||||
"maximize": false
|
||||
}
|
||||
},
|
||||
"cli": {
|
||||
"binaryName": "kokoro-widget",
|
||||
"resourcesPath": "/www/",
|
||||
"extensionsPath": "/extensions/",
|
||||
"clientLibrary": "/www/neutralino.js",
|
||||
"binaryVersion": "6.5.0",
|
||||
"clientVersion": "6.5.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user