feat: bundle Terebi Sunset as a selectable local theme

This commit is contained in:
hl-valdemar
2026-10-23 11:07:22 +02:00
parent 90cf08729e
commit 08135a407b
8 changed files with 176 additions and 12 deletions
+5
View File
@@ -34,8 +34,12 @@ func TestInstallFromFreshCheckout(t *testing.T) {
t.Fatal(err)
}
}
if err := os.CopyFS(filepath.Join(source, "schemes"), os.DirFS("schemes")); err != nil {
t.Fatal(err)
}
writeExecutable(t, filepath.Join(bin, "tinty"), `#!/bin/sh
case "$1" in
config) printf '%s/tinted-theming/tinty\n' "$XDG_DATA_HOME" ;;
sync|info) exit 0 ;;
apply) printf '%s\n' "$2" >> "$TINTY_LOG" ;;
*) exit 2 ;;
@@ -54,6 +58,7 @@ esac
t.Setenv("GOMODCACHE", strings.TrimSpace(string(cache)))
t.Setenv("PATH", bin+":"+os.Getenv("PATH"))
t.Setenv("TINTY_LOG", log)
t.Setenv("XDG_DATA_HOME", filepath.Join(tmp, "data"))
install := func() {
t.Helper()
cmd := exec.Command("make", "install", "HOME="+home, "XDG_CONFIG_HOME="+config)