feat: bundle Terebi Sunset as a selectable local theme
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user