chromedriver
Advanced tools
Comparing version
@@ -93,2 +93,16 @@ 'use strict'; | ||
return 'linux64'; | ||
} else if (process.arch === 'riscv64') { | ||
// Check if --chromedriver_filepath is provided via env vars | ||
const configuredfilePath = process.env.npm_config_chromedriver_filepath || process.env.CHROMEDRIVER_FILEPATH; | ||
if (!configuredfilePath) { | ||
console.error( | ||
'Error: RISC-V detected: No official Chromedriver binary is available for RISC-V 64-bit. ' + | ||
'Please provide a local Chromedriver binary using the --chromedriver_filepath option. ' + | ||
'Example: npm install chromedriver --chromedriver_filepath=/path/to/chromedriver ' + | ||
'You may need to build Chromedriver from source or obtain it from a third-party source.' | ||
); | ||
process.exit(1); | ||
} | ||
// Return a placeholder platform; actual file will come from configuredfilePath | ||
return 'linux64'; // Compatible with downstream logic, though download is skipped | ||
} else { | ||
@@ -190,3 +204,3 @@ console.error('Only Linux 64 bits supported.'); | ||
} | ||
catch (error) { | ||
catch { | ||
deferred.resolve(false); | ||
@@ -193,0 +207,0 @@ } |
{ | ||
"name": "chromedriver", | ||
"version": "134.0.2", | ||
"version": "134.0.3", | ||
"keywords": [ | ||
@@ -30,3 +30,3 @@ "chromedriver", | ||
"test:ci": "jest --ci --reporters=default --reporters=jest-junit", | ||
"lint": "eslint" | ||
"lint": "eslint --max-warnings=0" | ||
}, | ||
@@ -43,8 +43,12 @@ "dependencies": { | ||
"devDependencies": { | ||
"@types/jest": "^29.5.12", | ||
"eslint": "^8.56.0", | ||
"@eslint/eslintrc": "^3.3.0", | ||
"@eslint/js": "^9.22.0", | ||
"@types/jest": "^29.5.14", | ||
"@types/node": "^22.13.10", | ||
"eslint": "^9.22.0", | ||
"globals": "^16.0.0", | ||
"jest": "^29.7.0", | ||
"jest-junit": "^16.0.0", | ||
"semver": "^7.6.0", | ||
"typescript": "^5.3.3" | ||
"semver": "^7.7.1", | ||
"typescript": "^5.8.2" | ||
}, | ||
@@ -51,0 +55,0 @@ "engines": { |
@@ -148,3 +148,8 @@ # ChromeDriver | ||
``` | ||
## Installing on RISC-V 64-bit Systems | ||
Chromedriver does not provide an official binary for RISC-V 64-bit architectures. To install on a RISC-V system, you must supply your own Chromedriver binary using the `--chromedriver_filepath` option. For example: | ||
```bash | ||
npm install chromedriver --chromedriver_filepath=/path/to/chromedriver | ||
``` | ||
## Custom download options | ||
@@ -151,0 +156,0 @@ |
48041
5.74%7
16.67%556
11.65%384
1.32%10
66.67%32
6.67%