From a8ff404116f843835e53229f7c2096c2cf2fcf2e Mon Sep 17 00:00:00 2001 From: Arnie Date: Fri, 12 Jun 2026 20:16:07 +0200 Subject: [PATCH] refactor: remove tv-connect and tv-install helpers tv-deploy covers the normal workflow. Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 4 +--- flake.nix | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 9ff4806..676b760 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -35,9 +35,7 @@ post-25.11). No file rewriting; `gradle.properties` stays untouched. - Single APK: `gradle --no-daemon :app:assembleWeatherRelease` - Deploy all: `tv-deploy` — connects, installs all flavor APKs, disconnects (bump `versionCode` in app/build.gradle.kts first for upgrades) -- Connect ADB: `tv-connect` (uses $TV_IP from .envrc) -- Single flavor: `tv-install ` e.g. `tv-install weather` -- Fresh install: `adb uninstall cz.c3c.webviewkiosk. && tv-install ` +- Fresh install: `adb connect $TV_IP:5555 && adb uninstall cz.c3c.webviewkiosk. && adb install app/build/outputs/apk//release/-release.apk` ## Key facts diff --git a/flake.nix b/flake.nix index c598195..8ad77ce 100644 --- a/flake.nix +++ b/flake.nix @@ -65,8 +65,6 @@ FONTCONFIG_FILE = pkgs.makeFontsConf { fontDirectories = fonts; }; shellHook = '' - tv-connect() { adb connect "$TV_IP:5555"; } - tv-install() { adb install -r "app/build/outputs/apk/$1/release/$1-release.apk"; } tv-deploy() ( trap 'adb disconnect "$TV_IP:5555"' EXIT adb connect "$TV_IP:5555" || return 1