electrobun 0.0.19-beta.76 → 0.0.19-beta.77
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.
|
@@ -14,8 +14,8 @@ function getAppDataDir(): string {
|
|
|
14
14
|
// Use LOCALAPPDATA to match extractor location
|
|
15
15
|
return process.env.LOCALAPPDATA || join(homedir(), "AppData", "Local");
|
|
16
16
|
case 'linux':
|
|
17
|
-
// Use
|
|
18
|
-
return process.env.
|
|
17
|
+
// Use XDG_DATA_HOME or fallback to ~/.local/share to match extractor
|
|
18
|
+
return process.env.XDG_DATA_HOME || join(homedir(), ".local", "share");
|
|
19
19
|
default:
|
|
20
20
|
// Fallback to home directory with .config
|
|
21
21
|
return join(homedir(), ".config");
|
|
@@ -352,6 +352,13 @@ const Updater = {
|
|
|
352
352
|
const parentDir = resolve(extractionFolder, "..");
|
|
353
353
|
newAppBundlePath = join(parentDir, "app_new");
|
|
354
354
|
|
|
355
|
+
// Remove app_new if it already exists
|
|
356
|
+
try {
|
|
357
|
+
rmdirSync(newAppBundlePath, { recursive: true });
|
|
358
|
+
} catch {
|
|
359
|
+
// Ignore if it doesn't exist
|
|
360
|
+
}
|
|
361
|
+
|
|
355
362
|
// Move the extracted app to a temporary location
|
|
356
363
|
renameSync(extractedAppPath, newAppBundlePath);
|
|
357
364
|
} else {
|
package/package.json
CHANGED