From fe3cf930c923ddb677f8620ac6113d9c675e1cf8 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 10 May 2017 12:05:20 -0700 Subject: [PATCH] Remove fallback location and document how to migrate --- lib/index.js | 5 ----- readme.md | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/index.js b/lib/index.js index 82ae19ca2..51db2adb7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -53,11 +53,6 @@ class ElectronDownloader { } get cachedZip () { - const oldLocation = path.join(os.homedir(), './.electron', this.filename) - if (pathExists.sync(oldLocation)) { - return oldLocation - } - return path.join(this.cache, this.filename) } diff --git a/readme.md b/readme.md index 1059c9d41..89e558a4b 100644 --- a/readme.md +++ b/readme.md @@ -66,8 +66,12 @@ electron_mirror=https://10.1.2.105/ ``` ### Cache location + The location of the cache depends on the operating system, the defaults are: - Linux: `$XDG_CACHE_HOME` or `~/.cache/electron/` - MacOS: `~/Library/Caches/electron/` - Windows: `$LOCALAPPDATA/electron/Cache` or `~/AppData/Local/electron/Cache/` +**Note:** In previous releases `~/.electron` was used as the cache location. +You can move the files in that folder to the new locations mentioned above +to reuse the cached assets.