← Commit history

1.9.56: bake the production service URL again (1.9.55 shipped the local fallback and could not speak); build.sh refuses a local URL

John Lauer ·3f2c1bc680 ·19d ago ·parent 2c6598c
7 files changed +14−27
Cargo.lock+1−1
@@ -4,7 +4,7 @@ version = 4  [[package]] name = "adom-tts"-version = "1.9.55"+version = "1.9.56" dependencies = [  "anyhow",  "base64",
Cargo.toml+1−1
@@ -1,6 +1,6 @@ [package] name = "adom-tts"-version = "1.9.55"+version = "1.9.56" edition = "2021" license = "AGPL-3.0-or-later" repository = "https://github.com/adom-inc/adom-tts"
VERSION+1−1
@@ -1 +1 @@-1.9.55+1.9.56
bin/adom-tts
⋯ 1 unchanged line ⋯
build.sh+9−1
@@ -4,6 +4,14 @@ # 1.0.5 bug). release.sh runs this; run it manually before any `adompkg publish`. set -euo pipefail cd "$(dirname "$0")"+# The production service URL is baked in at compile time (build.rs). Without SERVICE_TTS_URL the+# build falls back to http://127.0.0.1:8783, which only works next to a local service-tts, so a+# published binary built that way can't speak anywhere (1.9.55 shipped like this). Refuse it.+: "${SERVICE_TTS_URL:=https://adom-tts-f84dy9x2ezq9.adom.cloud}"+export SERVICE_TTS_URL+case "$SERVICE_TTS_URL" in+  http://127.0.0.1*|http://localhost*) [ "${ADOM_TTS_DEV_BUILD:-}" = 1 ] || { echo "build.sh: SERVICE_TTS_URL is local ($SERVICE_TTS_URL); set ADOM_TTS_DEV_BUILD=1 for a dev build" >&2; exit 1; } ;;+esac cargo build --release install -m 0755 target/release/adom-tts bin/adom-tts-echo "build.sh: bin/adom-tts refreshed → $(ADOM_TTS_NO_HINTS=1 ./bin/adom-tts --version)"+echo "build.sh: bin/adom-tts refreshed → $(ADOM_TTS_NO_HINTS=1 ./bin/adom-tts --version), service $(ADOM_TTS_NO_HINTS=1 ./bin/adom-tts config | grep 'service url' | awk '{print $4}')"
package.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "adom-tts",-  "version": "1.9.55",+  "version": "1.9.56",   "type": "app",   "description": "Adom's shared text-to-speech CLI + Playground. Reads your AI answers back to you while driving, and renders perfectly-timed voiceover tracks for demo videos.",   "license": "MIT",
page.json+1−22
@@ -4,7 +4,7 @@   "slug": "adom-tts",   "title": "Adom TTS: Text to Speech",   "brief": "Adom's shared voice service. Reads your AI's answers back to you while you drive, and renders perfectly-timed voiceover tracks for your demo videos, so you never record your own voice.",-  "version": "1.9.55",+  "version": "1.9.56",   "license": "MIT",   "tags": [     "tts",@@ -12,7 +12,6 @@     "audio",     "demo",     "accessibility",-    "cli",     "open-source",     "mit"   ],@@ -65,25 +64,5 @@   ],   "install": {     "binary_name": "adom-tts"-  },-  "description": "Adom's shared text-to-speech CLI + Playground. Reads your AI answers back to you while driving, and renders perfectly-timed voiceover tracks for demo videos.",-  "dependencies": {},-  "scripts": {-    "install": "./install.sh",-    "uninstall": "./uninstall.sh"-  },-  "needs_sudo": false,-  "files": [-    "package.json",-    "install.sh",-    "uninstall.sh",-    "bin/adom-tts",-    "skills/**",-    "completions/**"-  ],-  "org": "adom",-  "author": {-    "name": "John Lauer",-    "email": "[email protected]"   } }\ No newline at end of file