@ignix-social/editor 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignix-social/editor",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Ignix Editor: render HTML video compositions (reels, edits, clips) on your own computer. Based on HyperFrames.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/patches/index.mjs CHANGED
@@ -88,4 +88,16 @@ export const patches = [
88
88
  replacement: ' return null; // ignix-editor: sin aviso de la app de escritorio\n if (ready && (installed ?? desktopInstalled({ platform, env })))',
89
89
  }),
90
90
  },
91
+ {
92
+ id: 'chrome-first-launch',
93
+ // Antes de renderizar, el motor pregunta `chrome --version` con 5 s de margen. La
94
+ // primera vez que se abre una copia recién instalada, macOS la revisa entera: 4,7 s
95
+ // medidos en un Mac Intel, y más con el equipo ocupado. El primer render tras instalar
96
+ // fallaba con «Chrome cannot start». 60 s; las demás veces responde en 0,05 s.
97
+ apply: (dist) =>
98
+ replaceAnchor(dist, {
99
+ anchor: 'runCancellableProcess(executablePath, ["--version"], {\n signal,\n timeoutMs: 5e3,',
100
+ replacement: 'runCancellableProcess(executablePath, ["--version"], {\n signal,\n timeoutMs: 6e4, // ignix-editor: primera apertura de una copia nueva',
101
+ }),
102
+ },
91
103
  ];
@@ -8,6 +8,7 @@
8
8
  "no-telemetry",
9
9
  "no-auto-update",
10
10
  "mf-encoder",
11
- "no-desktop-promo"
11
+ "no-desktop-promo",
12
+ "chrome-first-launch"
12
13
  ]
13
14
  }
@@ -211,7 +211,7 @@ async function chromeLaunchOutcome(executablePath, found, signal) {
211
211
  try {
212
212
  const { stdout } = await runCancellableProcess(executablePath, ["--version"], {
213
213
  signal,
214
- timeoutMs: 5e3,
214
+ timeoutMs: 6e4, // ignix-editor: primera apertura de una copia nueva
215
215
  maxBufferBytes: 64 * 1024
216
216
  });
217
217
  return { ...found, versionMajor: extractMajorVersion(stdout) };