-
Notifications
You must be signed in to change notification settings - Fork 17k
Open
Labels
40-x-yblocked/need-info ❌Cannot proceed without more informationCannot proceed without more informationbug 🪲platform/macOS
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
40.6.1
What operating system(s) are you using?
macOS
Operating System Version
macOs 26.3
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
npm install electron will postinstall the install.js, and this if statement always return fail:
function isInstalled () {
try {
if (fs.readFileSync(path.join(__dirname, 'dist', 'version'), 'utf-8').replace(/^v/, '') !== version) {
return false;
}
if (fs.readFileSync(path.join(__dirname, 'path.txt'), 'utf-8') !== platformPath) {
return false;
}
} catch (ignored) {
return false;
}
const electronPath = process.env.ELECTRON_OVERRIDE_DIST_PATH || path.join(__dirname, 'dist', platformPath);
return fs.existsSync(electronPath);
}as the dist of electron package does not exits the path.txt, in the electron v28, the path.txt is exist.
Actual Behavior
ignore the if statement, if the path.txt file is not exist as expected, why the install.js should be used ?
Testcase Gist URL
No response
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
40-x-yblocked/need-info ❌Cannot proceed without more informationCannot proceed without more informationbug 🪲platform/macOS
Type
Projects
Status
👀 Unsorted Items