polish(desktop): rename userData folder to Backspace with first-launch migration
Electron derived userData from package.json's `@backspace/desktop` name, leaking the monorepo's pnpm scope into ~/Library/Application Support/. Now `app.setName` runs at module load before any userData consumer, and a one-shot migration atomically moves the historical folder to <appData>/Backspace, cleaning the empty @backspace/ parent. Conservative on conflict — never clobbers an existing populated target. EXDEV fallback to recursive copy. Smoke-recovery path flipped back to Backspace.
This commit is contained in:
@@ -34,7 +34,7 @@ set -euo pipefail
|
||||
# ─── Config ──────────────────────────────────────────────────────────────
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
APP_BINARY="$REPO_ROOT/packages/desktop/dist-electron/mac-arm64/Backspace.app/Contents/MacOS/Backspace"
|
||||
USER_DATA_DIR="$HOME/Library/Application Support/@backspace/desktop"
|
||||
USER_DATA_DIR="$HOME/Library/Application Support/Backspace"
|
||||
INSTANCE_URL_FILE="$USER_DATA_DIR/instance-url.json"
|
||||
INSTANCE_URL_BACKUP="$INSTANCE_URL_FILE.smoketest-backup"
|
||||
TMP_DIR="$(mktemp -d -t backspace-smoke.XXXXXX)"
|
||||
|
||||
Reference in New Issue
Block a user