-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to confirm fuse values at runtime? #6
Comments
Should output some info to the terminal about the current status of fuses |
Thanks for the reply @MarshallOfSound! I see the output |
@MarshallOfSound any thoughts on why this might be? Note that the following code prevents Debugtron from working - which implies it uses the // electron main
for (let i = 0; i < process.argv.length; i++) {
const arg = process.argv[i]
if (arg.indexOf('--inspect') !== -1 || arg.indexOf('--remote-debugging-port') !== -1) {
throw new Error('Not allow debugging this program.')
}
} |
--remote-debugging-port is not affected by fuses, it is a Chromium flag that impacts renderer processes and as such can be filtered by the main app bundle if you choose. Can you confirm if --inspect is working, or whether it is --remote-debugging-port you are seeing work? |
Confirming the fuse works as intended. Sorry to waste time with a bad test case. |
after adding fuse, unable to launch the app after pacakging the application.. removing the LoadBrowserProcessSpecificV8Snapshot resolves the issues in widnows but in mac still unable to launch the app const { FusesPlugin } = require('@electron-forge/plugin-fuses'); if (process.platform === 'darwin') { forgeConfigMac.plugins = [ module.exports = forgeConfigMac; forgeConfigWin.plugins = [ module.exports = forgeConfigWin; |
The fuse for
NODE_OPTIONS
logs to the console when it can't be used -NODE_OPTIONS have been disabled in this app
- but the others seem not to log anything, or perhaps are not being set properly.I ask because it seems like setting
[FuseV1Options.EnableNodeCliInspectArguments]: false
has no effect,--inspect
still seems to work (granted I am not testing it directly, but rather loading the app in Debugtron - which seems to simply run the app with--inspect
)Our configuration of the fuses is adapted from this code for setting fuses: electron-userland/electron-builder#6365 (comment)
The text was updated successfully, but these errors were encountered: