electrobun 0.0.19-beta.80 → 0.0.19-beta.81
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/dist/api/bun/core/Updater.ts +9 -14
- package/package.json +1 -1
|
@@ -372,21 +372,16 @@ const Updater = {
|
|
|
372
372
|
"..",
|
|
373
373
|
".."
|
|
374
374
|
);
|
|
375
|
-
} else if (currentOS === 'linux') {
|
|
376
|
-
// On Linux, executable is at app/bin/launcher
|
|
377
|
-
runningAppBundlePath = resolve(
|
|
378
|
-
dirname(process.execPath),
|
|
379
|
-
"..",
|
|
380
|
-
".."
|
|
381
|
-
);
|
|
382
375
|
} else {
|
|
383
|
-
// On Windows,
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
376
|
+
// On Linux/Windows, calculate app path using app data directory structure
|
|
377
|
+
const appDataFolder = await Updater.appDataFolder();
|
|
378
|
+
if (currentOS === 'linux') {
|
|
379
|
+
runningAppBundlePath = join(appDataFolder, "app");
|
|
380
|
+
} else {
|
|
381
|
+
// On Windows, use versioned app folders
|
|
382
|
+
const currentHash = (await Updater.getLocallocalInfo()).hash;
|
|
383
|
+
runningAppBundlePath = join(appDataFolder, `app-${currentHash}`);
|
|
384
|
+
}
|
|
390
385
|
}
|
|
391
386
|
// Platform-specific backup handling
|
|
392
387
|
let backupPath: string;
|
package/package.json
CHANGED