Skip to content

Commit

Permalink
fix: use proper cache directory for electron-updater on macOS (#7032)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng authored Oct 19, 2022
1 parent edb28c0 commit caa32e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/smooth-hounds-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"electron-updater": patch
---

fix: use appropriate `electron-updater` cache directory on macOS
2 changes: 1 addition & 1 deletion packages/electron-updater/src/AppAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function getAppCacheDir() {
if (process.platform === "win32") {
result = process.env["LOCALAPPDATA"] || path.join(homedir, "AppData", "Local")
} else if (process.platform === "darwin") {
result = path.join(homedir, "Library", "Application Support", "Caches")
result = path.join(homedir, "Library", "Caches")
} else {
result = process.env["XDG_CACHE_HOME"] || path.join(homedir, ".cache")
}
Expand Down

0 comments on commit caa32e0

Please sign in to comment.