Skip to content

fix(updater): detect installed AppImage path on Linux#2926

Merged
abose merged 1 commit into
mainfrom
ai
May 17, 2026
Merged

fix(updater): detect installed AppImage path on Linux#2926
abose merged 1 commit into
mainfrom
ai

Conversation

@abose
Copy link
Copy Markdown
Member

@abose abose commented May 17, 2026

isUpgradableLocation() was comparing the FUSE-mounted Electron binary path (process.execPath, e.g. /tmp/.mount_*/phoenix-code) against ~/.phoenix-code/, which never matched. Switch to the new electronAPI.getInstalledAppPath() which returns process.env.APPIMAGE on packaged AppImage runs (and null elsewhere), so the upgradable-location check actually passes for installed builds. Also ensure homeDir has a trailing slash, matching the Tauri-side check.

Related desktop api change: phcode-dev/phoenix-desktop#712

isUpgradableLocation() was comparing the FUSE-mounted Electron binary
path (process.execPath, e.g. /tmp/.mount_*/phoenix-code) against
~/.phoenix-code/, which never matched. Switch to the new
electronAPI.getInstalledAppPath() which returns process.env.APPIMAGE on
packaged AppImage runs (and null elsewhere), so the upgradable-location
check actually passes for installed builds. Also ensure homeDir has a
trailing slash, matching the Tauri-side check.

Also sync src-node/package-lock.json to 5.1.17.
@sonarqubecloud
Copy link
Copy Markdown

@abose abose merged commit 7db2520 into main May 17, 2026
12 of 21 checks passed
@abose abose deleted the ai branch May 17, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant