Open roelti opened 3 years ago
The same problem
Description
Thanks for making a great library!
I have a small Vue app where I want to use Menubar. While developing everything works perfect however after building the app, it doesn't work. The app gets started (the proces is running in Activity Monitor) but there is no icon visible. If I remove the menubar initialization (and build the app), the app works fine. All functions from Menubar work fine while developing, the issue only occurs if the app is built.
Steps to Reproduce the Problem
- Start a fresh Vue app
- Add
npm i vue-cli-plugin-electron-builder
- Add a basic menubar setup
- Build the app with
npm run electron:build
- Start the app from the
electron_dist/
folderExpected Behaviour
The app starts and show the menubar icon
Actual Behaviour
The app starts (and quits) but doesn't show an icon in the menubar.
Specifications
- Menubar version: 9.0.2
- Platform: Mac OS Big Sur
- Electron version: v9.4.1
Other information
The menubar is set up using the following:
const mb = menubar({ icon: join(__static, '../src/assets/IconTemplate.png'), });
This shows the icon fine while developing.
My problem has been solved, it may be an electron-builder problem, I hope it can help you https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues/2511#issuecomment-657175284
Definitely sounds like a path issue
Description
Thanks for making a great library!
I have a small Vue app where I want to use Menubar. While developing everything works perfect however after building the app, it doesn't work. The app gets started (the proces is running in Activity Monitor) but there is no icon visible. If I remove the menubar initialization (and build the app), the app works fine. All functions from Menubar work fine while developing, the issue only occurs if the app is built.
Steps to Reproduce the Problem
npm i vue-cli-plugin-electron-builder
npm run electron:build
electron_dist/
folderExpected Behaviour
The app starts and show the menubar icon
Actual Behaviour
The app starts (and quits) but doesn't show an icon in the menubar.
Specifications
Other information
The menubar is set up using the following:
This shows the icon fine while developing.