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 XDG_CONFIG_HOME or fallback to ~/.config
18
- return process.env.XDG_CONFIG_HOME || join(homedir(), ".config");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "0.0.19-beta.76",
3
+ "version": "0.0.19-beta.77",
4
4
  "description": "Build ultra fast, tiny, and cross-platform desktop apps with Typescript.",
5
5
  "license": "MIT",
6
6
  "author": "Blackboard Technologies Inc.",