Skip to content
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

Menubar doesn't work after packaging app when using Vue #318

Open
roelti opened this issue Jan 24, 2021 · 3 comments
Open

Menubar doesn't work after packaging app when using Vue #318

roelti opened this issue Jan 24, 2021 · 3 comments

Comments

@roelti
Copy link

roelti commented Jan 24, 2021

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

  1. Start a fresh Vue app
  2. Add npm i vue-cli-plugin-electron-builder
  3. Add a basic menubar setup
  4. Build the app with npm run electron:build
  5. Start the app from the electron_dist/ folder

Expected 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.

@1zilc
Copy link
Contributor

1zilc commented Jan 29, 2021

The same problem

@1zilc
Copy link
Contributor

1zilc commented Jan 30, 2021

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

  1. Start a fresh Vue app
  2. Add npm i vue-cli-plugin-electron-builder
  3. Add a basic menubar setup
  4. Build the app with npm run electron:build
  5. Start the app from the electron_dist/ folder

Expected 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
electron-react-boilerplate/electron-react-boilerplate#2511 (comment)

@RobbieTheWagner
Copy link
Contributor

Definitely sounds like a path issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants