@glassnote/client 2.4.18 → 2.4.19

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.
Files changed (2) hide show
  1. package/autoStart.js +10 -0
  2. package/package.json +2 -2
package/autoStart.js CHANGED
@@ -111,6 +111,14 @@ class AutoStart {
111
111
  // La carpeta de trabajo: la del paquete en modo npm, la del ejecutable en nativo.
112
112
  const workingDir = launchArgs.length ? launchArgs[0] : path.dirname(executablePath);
113
113
 
114
+ // En modo npm el acceso directo apunta a electron.exe, que trae el icono de Electron:
115
+ // en el menu Inicio y en la busqueda de Windows no aparecia el de Glassnote. Se le
116
+ // pone el .ico del paquete. El glassnote.exe nativo ya lo lleva adentro.
117
+ const iconPath = npmMode.isNpmMode() ? path.join(npmMode.PACKAGE_ROOT, 'images', 'icon.ico') : null;
118
+ const iconLine = iconPath && fs.existsSync(iconPath)
119
+ ? `oLink.IconLocation = "${iconPath},0"`
120
+ : '';
121
+
114
122
  let allSuccess = true;
115
123
 
116
124
  for (const startupPath of startupPaths) {
@@ -135,6 +143,8 @@ class AutoStart {
135
143
  oLink.Arguments = "${launchArgs.map((a) => `""${a.replace(/\\/g, '\\\\')}""`).join(' ')}"
136
144
  oLink.WorkingDirectory = "${workingDir.replace(/\\/g, '\\\\')}"
137
145
  oLink.WindowStyle = 7
146
+ oLink.Description = "Glassnote"
147
+ ${iconLine}
138
148
  oLink.Save
139
149
  `;
140
150
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glassnote/client",
3
- "version": "2.4.18",
3
+ "version": "2.4.19",
4
4
  "description": "GlassNote — cliente de escritorio de notas superpuestas. Se instala con npx, sin instaladores nativos ni firmas.",
5
5
  "main": "main.js",
6
6
  "publishConfig": {
@@ -75,7 +75,7 @@
75
75
  "url": "git+ssh://git@intermarkec/intermarkec/glassnote-electron.git"
76
76
  },
77
77
  "dependencies": {
78
- "@glassnote/renderer": "2.3.2",
78
+ "@glassnote/renderer": "2.3.3",
79
79
  "cors": "^2.8.5",
80
80
  "electron": "^29.4.6",
81
81
  "express": "^4.18.2",