I have tried both builder and packager, after building the top menu is available which allows access to developer tools..how do I get rid of it?
If I've understood well you want to get rid of DevTools and the Menu bar
To disable DevTools you have to add webPreferences.devTools = false to all your Windows as shown here:
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
// Your window configuration
webPreferences: {
devTools: false // This will disable dev tools
}
});
If you do this even by going to Menu > View > Toggle Developer Tools the DevTools panel won't show up
And to get rid of the Menubar:
app.dock.hide(); // Only mac
mainWindow.setMenuBarVisibility(false); // Only Windows and Linux
// Or you can also use mainWindow.setMenu(null); on Windows and Linux
Everything on the main process
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With