Open mikeseese opened 1 year ago
After packaging my Electron app for production, the min/max/close buttons show as undefined due to
undefined
custom-electron-titlebar
npm run package
release/build
The icons should display correctly.
This is running on Windows 11.
This seems to be due to incorrect OS detection in src/base/common/platform.ts. I was able to resolve this issue myself with this commit: https://github.com/IncantaGames/custom-electron-titlebar/commit/ba16f796694f418f0d2dee80d550a11b9cdac5da
src/base/common/platform.ts
Problem Description
After packaging my Electron app for production, the min/max/close buttons show as
undefined
due toSteps to Reproduce
custom-electron-titlebar
into https://github.com/electron-react-boilerplate/electron-react-boilerplatenpm run package
release/build
directoryExpected Behavior
The icons should display correctly.
Current Behavior
Additional Information
This is running on Windows 11.
Tentative Solution Steps
This seems to be due to incorrect OS detection in
src/base/common/platform.ts
. I was able to resolve this issue myself with this commit: https://github.com/IncantaGames/custom-electron-titlebar/commit/ba16f796694f418f0d2dee80d550a11b9cdac5da