runbay 0.1.7 → 0.1.8

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
@@ -729,12 +729,15 @@ async function applySelfUpdate() {
729
729
  const install = `call npm install -g ${PKG}@${target}${registryFlag}`;
730
730
  const body = [
731
731
  "@echo off",
732
- "ping -n 5 127.0.0.1 >nul",
733
- // le temps que l'app se ferme et relâche ses fichiers
734
- `${install} > "${log}" 2>&1`,
735
- "if errorlevel 1 (",
732
+ "ping -n 9 127.0.0.1 >nul",
733
+ // le temps que l'app se ferme ET que Windows relâche ses fichiers
734
+ // `||` et non « if errorlevel 1 » : npm sort en code NÉGatif sur EBUSY
735
+ // (-4082), qu'« errorlevel 1 » (qui teste « ≥ 1 ») ne voyait pas comme une
736
+ // erreur — la seconde tentative ne partait jamais. Tout code non nul = on
737
+ // retente, en ligne cette fois (fichiers pas encore relâchés, cache périmé,
738
+ // registre pas encore propagé).
739
+ `${install} > "${log}" 2>&1 || (`,
736
740
  " ping -n 31 127.0.0.1 >nul",
737
- // le registre met parfois une minute à propager une publication prouvée
738
741
  `${install} --prefer-online >> "${log}" 2>&1`,
739
742
  ")",
740
743
  relaunch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runbay",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
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": {