Comments (6)
Closing in light of above comment.
from chromedriver.
@ghisvail You may use ELECTRON_CACHE
env var without patching the file (as per npm/electron-download
package. I got this working for my electron flatpak:
...
"build-options": {
"env": {
"ELECTRON_CACHE": "/run/build/rocketchat-desktop/npm-cache"
}
},
"sources": [
"generated-sources.json",
...
{
"type": "file",
"url": "https://github.com/electron/electron/releases/download/v2.0.0/chromedriver-v2.0.0-linux-x64.zip",
"sha256": "a57f4c534bbeee806912f2b25651ef7dd3b38b5a0d7b1c6e3920f9db0dc4319b",
"dest-filename": "chromedriver-v2.0.0-linux-x64.zip",
"dest": "npm-cache"
},
{
"type": "file",
"url": "https://github.com/electron/electron/releases/download/v2.0.0/SHASUMS256.txt",
"sha256": "4d7edbfa504e1dc45ea92b02baafe7125e9f4892a98f3e6ec53fa97ec9acf8c2",
"dest-filename": "SHASUMS256.txt-2.0.0",
"dest": "npm-cache"
}
...
from chromedriver.
Any ideas?
from chromedriver.
Right now, a working solution consists in patching download-chromedriver.js to inject the offline cache location to electronDownload
.
It sounds to me like the sort of things that could be addressed by an environment variable. Thoughts?
from chromedriver.
@ghisvail I have a similar issue like you had here. I would like to apply a patch like you did, but I have no idea of how to create a .patch
file like that. Would you be so kind and point me in the right direction? I have a related issue here flatpak/flatpak-builder-tools#103
Using the ELECTRON_CACHE
envvar did not work for me.
from chromedriver.
I think the move to @electron/get
might have broken this? I don't see ELECTRON_CACHE being read anywhere anymore.
from chromedriver.
Related Issues (20)
- 8964
- Yo
- Respuesta
- Respueta
- v25.2.0 not published to npm? HOT 1
- latest tag is applied to every release on npm
- chrome driver v114 not found for mac arm. Electron v25 support outdated? HOT 2
- Unable to download HOT 4
- Wrong version of chromedriver downloaded? HOT 2
- Package electron-download upgrade to @electron/get
- Running with npm_config_platform=win32 on linux fails
- [Bug] electron download electron-chromedriver version mismatch
- npm install electron-chromedriver failing
- Download failed HOT 1
- Version override not implemented? HOT 1
- ChromeDriver crashes when trying to start the exe program HOT 1
- Chromedriver can resize or get the resolution of a window from Electron Application using Java HOT 1
- line 6 in chromedriver.js HOT 2
- Specify ELECTRON_MIRROR to a directory/or file on disk HOT 2
- Run in Electron Isolated Context HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chromedriver.