forge
forge copied to clipboard
cacheRoot option not working in forge.config.ts
Pre-flight checklist
- [X] I have read the contribution documentation for this project.
- [X] I agree to follow the code of conduct that this project uses.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
6.4.1
Electron version
26.1.0
Operating system
Windows 10
Last known working Electron Forge version
No response
Expected behavior
Expecting electron forge to use the cached electron binary instead of github.com when including cacheRoot
to the config file.
forge.config.ts
...
const config: ForgeConfig = {
packageConfig: {
name: 'App',
extraResource: ['./resources'],
overwrite: true,
download: {
cacheRoot: 'C:\\Users\\{username goes here}\\AppData\\Local\\electron\\Cache'
}
}
}
...
I currently install electron using that same cache directory, so I know I have the correct binary.
Actual behavior
Running electron-forge make
produces this error:
RequestError: getaddrinfo ENOTFOUND github.com
Steps to reproduce
Create a new electron app and build using cacheRoot
instead of accessing github.com.
Additional information
No response