diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7343ff..7c186d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -200,6 +200,7 @@ jobs: bin=$(find build -name zonos2-app -type f | head -1) out=$("$bin" --help 2>&1 || true) echo "$out" | grep -q "usage:" || { echo "app smoke failed:"; echo "$out"; exit 1; } + bash tests/app-download-smoke.sh "$bin" - name: Package if: startsWith(github.ref, 'refs/tags/v') shell: bash diff --git a/README.md b/README.md index adf373d..f29fb72 100644 --- a/README.md +++ b/README.md @@ -148,11 +148,14 @@ curl -s http://localhost:1919/tts/generate \ ## Desktop App (zonos2-app) The same server and web UI, packaged as a native window (a [saucer](https://github.com/saucer/saucer) -webview: WebView2 / WKWebView / WebKitGTK). First launch opens a setup page to pick your `.gguf` -files with native file dialogs; the choice is saved (`~/.config/zonos2/app.json`, or the platform -equivalent) and later launches boot straight into the UI. The embedded server binds an ephemeral -`127.0.0.1` port and its whole HTTP API stays reachable while the app runs; closing the window -shuts it down. Release tags ship prebuilt bundles: `zonos2-linux-x64-app.tar.gz`, +webview: WebView2 / WKWebView / WebKitGTK). First launch opens a setup page: pick a model quality +and click **Download & Launch** and it fetches the model files for you (into +`~/.config/zonos2/models`, or the platform equivalent) — same one-click path as the launcher +scripts, no terminal needed. If you already have the `.gguf` files, "I already have the model files" +reveals native file pickers instead. The choice is saved (`~/.config/zonos2/app.json`, or the +platform equivalent) and later launches boot straight into the UI. The embedded server binds an +ephemeral `127.0.0.1` port and its whole HTTP API stays reachable while the app runs; closing the +window shuts it down. Release tags ship prebuilt bundles: `zonos2-linux-x64-app.tar.gz`, `zonos2-macos-arm64-app.zip` (a `Zonos2.app`), and `zonos2-app.exe` inside the Windows `zonos2-windows-x64-vulkan.zip`. diff --git a/src/app-pages.h b/src/app-pages.h index 1d646a9..ebbcfa7 100644 --- a/src/app-pages.h +++ b/src/app-pages.h @@ -23,6 +23,14 @@ static const char * ZONOS2_APP_STYLE = R"html( input[type=text] { flex: 1; background: #0d0f13; color: #e6e8ee; border: 1px solid #2a3040; border-radius: 7px; padding: 8px 10px; font-size: 13px; min-width: 0; } input[type=text]:focus { outline: none; border-color: #5b7fd4; } + select { width: 100%; background: #0d0f13; color: #e6e8ee; border: 1px solid #2a3040; + border-radius: 7px; padding: 8px 10px; font-size: 13px; } + select:focus { outline: none; border-color: #5b7fd4; } + a { color: #7fa0ff; text-decoration: none; } + a:hover { text-decoration: underline; } + .bar { height: 8px; background: #0d0f13; border: 1px solid #2a3040; border-radius: 6px; + overflow: hidden; margin: 4px 0 14px; } + .barfill { height: 100%; width: 0; background: #3b5bd6; transition: width .3s ease; } button { background: #222836; color: #e6e8ee; border: 1px solid #323a4d; border-radius: 7px; padding: 8px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; } button:hover { background: #2a3242; } @@ -46,49 +54,127 @@ static const char * ZONOS2_APP_STYLE = R"html( static const char * ZONOS2_APP_SETUP_PAGE = R"html(
-

Zonos2

-

Pick the model files to use. They are saved for the next launch.

+
+

Zonos2

+

Download the model files to get started, or point to files you already have.

- -
-
+
+ + +
+
+
- -
-
+ - -
-
+
+
-
+
+ + +

I already have the model files

+
-
- +