-
Notifications
You must be signed in to change notification settings - Fork 16.5k
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
38.0.1
What operating system(s) are you using?
Ubuntu
Operating System Version
22.04
What arch are you using?
x64
Last Known Working Electron version
No response
Does the issue also appear in Chromium / Google Chrome?
I don't know how to test
Expected Behavior
It is necessary to clearly specify how to install it in document.
Actual Behavior
1: document guide
according to https://www.electronjs.org/docs/latest/tutorial/installation#cache As mentioned above, the cache directory is stored in the form of [checksum]/[filename],
So if I want to install v35.0.1 offline on Ubuntu, my cache directory should be "~/ cache/electron/96ee99e61ef0a727915e763cf18a5c83536fbf7855702ce47d4d06e971e40d01/electron-v35.0.1-linux-x64.zip",
96ee99e61ef0a727915e763cf18a5c83536fbf7855702ce47d4d06e971e40d01 is from SHASUMS256.txt.
But in reality, it's not possible
2: install debug
debug the code node_modules/@electron/get/dist/cjs/Cache.js
strippedUrl='https://github.com/electron/electron/releases/download/v35.0.1'
crypto
.createHash('sha256')
.update(strippedUrl)
.digest('hex');
so found should put in cache directory like below:
"~/ cache/electron/1dafae12d714b3c9cdf2dd18c3b8e737927d09477e3f6712bd0c4b77bc87f428/electron-v35.0.1-linux-x64.zip"
Why is the document inconsistent with the actual situation?
Testcase Gist URL
No response
Additional Information
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status