#Building a menubar app, figuring out complexity

2 messages · Page 1 of 1 (latest)

spiral salmon
#

Hey y'all!

Quick question: I'm using the npm menubar package (here) to quickly make a small system tray Electron app. It's literally just an HTML file with a small JavaScript script.

But, I've realized that I don't actually know how to package this simply without installing all the other Electron things anyway.

Literally all of my dependencies and app code currently is:

// ...
"dependencies": {
    "menubar": "^9.4.0"
},
const { menubar } = require("menubar");
const path = require("path");

const mb = menubar({
    browserWindow: {
        width: 425,
        height: 515,
    },
    icon: path.join(__dirname, "extraResources", "icon.png"),
    tooltip: "My app",
});

It works perfectly in development mode, but do y'all know of a way that I can package this without having to install too much/it getting too big? Should I just do this in "regular" Electron? I'd love to hear your recommendations!

haughty ravine