Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove fallback location and document how to migrate #55

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.