runbay 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/out/main/index.js CHANGED
@@ -945,9 +945,11 @@ function createWindow() {
945
945
  // Fond peint dans la couleur du thème : pas de flash clair/sombre avant le 1er rendu.
946
946
  backgroundColor: settings.theme === "light" ? "#f5f6f7" : "#111214",
947
947
  title: "RunBay",
948
- // En dev, l'exe est Electron : on force l'icône du projet (barre de titre + taskbar).
949
- // En paqué, l'icône est embarquée dans l'exe par electron-builder.
950
- ...utils.is.dev && { icon: node_path.join(__dirname, "../../build/icon.ico") },
948
+ // Fichier d'icône embarqué dans le paquet (barre de titre + barre des tâches).
949
+ // L'app est lancée depuis npm comme un simple dossier : l'exe est Electron,
950
+ // qui n'a pas de visage à lui — on lui donne le nôtre. Windows préfère le
951
+ // .ico (plusieurs tailles), les autres plateformes le .png du tray.
952
+ icon: appIconPath(process.platform === "win32" ? "icon.ico" : "icon.png"),
951
953
  webPreferences: {
952
954
  preload: node_path.join(__dirname, "../preload/index.js"),
953
955
  sandbox: false
@@ -1003,8 +1005,11 @@ function createWindow() {
1003
1005
  mainWindow.loadFile(node_path.join(__dirname, "../renderer/index.html"));
1004
1006
  }
1005
1007
  }
1008
+ function appIconPath(fileName) {
1009
+ return electron.app.isPackaged ? node_path.join(process.resourcesPath, fileName) : node_path.join(__dirname, "../../build", fileName);
1010
+ }
1006
1011
  function createTray() {
1007
- const iconPath = electron.app.isPackaged ? node_path.join(process.resourcesPath, "icon.png") : node_path.join(__dirname, "../../build/icon.png");
1012
+ const iconPath = appIconPath("icon.png");
1008
1013
  tray = new electron.Tray(electron.nativeImage.createFromPath(iconPath));
1009
1014
  refreshTrayTip();
1010
1015
  tray.setContextMenu(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runbay",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Not an installer. A launcher. Detect, launch, update and uninstall apps installed from the command line (npm, pnpm, yarn, bun, scoop) — in one modern window.",
5
5
  "main": "./out/main/index.js",
6
6
  "bin": {