diff --git a/cmd/root.go b/cmd/root.go index 6c4369f..6f72312 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -131,6 +131,8 @@ func init() { baseLocalDir = os.Getenv("APPDATA") case "linux": baseLocalDir = filepath.Join(os.Getenv("HOME"), ".local", "share") + case "darwin": + baseLocalDir = filepath.Join(os.Getenv("HOME"), "Library", "Application Support") default: panic("unsupported platform: " + runtime.GOOS) } diff --git a/tools.go b/tools.go index dc2b940..bbd3f57 100644 --- a/tools.go +++ b/tools.go @@ -46,6 +46,8 @@ func main() { baseLocalDir = os.Getenv("APPDATA") case "linux": baseLocalDir = filepath.Join(os.Getenv("HOME"), ".local", "share") + case "darwin": + baseLocalDir = filepath.Join(os.Getenv("HOME"), "Library", "Application Support") default: panic("unsupported platform: " + runtime.GOOS) }