Skip to content

fix: use StateRoot for backup export and make dev.sh work on macOS#41

Open
zzabolazza wants to merge 1 commit into
black-ant:masterfrom
zzabolazza:fix/backup-export-state-root-macos-dev
Open

fix: use StateRoot for backup export and make dev.sh work on macOS#41
zzabolazza wants to merge 1 commit into
black-ant:masterfrom
zzabolazza:fix/backup-export-state-root-macos-dev

Conversation

@zzabolazza

Copy link
Copy Markdown

Summary

  • Backup export now reuses BackupGetScopeDefinition, which resolves against apppath.StateRoot instead of the install root. Fixes macOS .app export failures that looked for Contents/MacOS/data while writable state lives under Application Support.
  • dev.sh falls back to lsof when ss is unavailable so the macOS local launcher can start.

Test plan

  • On a macOS installed .app (detached), run 导出配置 and confirm it succeeds
  • Confirm export ZIP content comes from ~/Library/Application Support/ant-browser rather than .app/Contents/MacOS
  • On macOS, run bash ./dev.sh and confirm it no longer fails with Missing required command: ss
  • On Linux/Windows portable layout, backup export and dev.sh still work as before

Made with Cursor

Backup export incorrectly scanned the install root on detached macOS apps;
reuse BackupGetScopeDefinition. Also allow lsof when ss is unavailable.

Co-authored-by: Cursor <cursoragent@cursor.com>
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