//go:build darwin
// +build darwin

package config

import (
	"os"
	"path/filepath"

	"github.com/ilius/ayandict/v2/pkg/appinfo"
)

func platformConfigDir() string {
	return filepath.Join(
		os.Getenv(S_HOME),
		"Library/Preferences/AyanDict",
	)
}

func GetCacheDir() string {
	return filepath.Join(os.Getenv(S_HOME), "Library", "Caches", appinfo.APP_DESC)
}
