mirror of
https://github.com/runbear-io/beardrive.git
synced 2026-08-25 08:08:08 +02:00
docs: one answer on Windows support — macOS and Linux only (BEA-77) (#126)
"Can my Windows teammate join?" got three answers from three official surfaces: README's feature list said macOS & Linux, its CLI table documented an HKCU Run entry on Windows, and the hub's Installation page named no OS at all. Windows autostart is real code that cannot run — internal/store's flock and internal/daemon's Kill/Setsid are unix-only, so GOOS=windows does not build. The fix is the docs, not the port: every Windows claim comes out of README, web/docs and `bdrive autostart`'s own help, and the Installation page gains one line naming the supported systems. No Go source is deleted; internal/autostart/autostart_windows.go stays compiled-but-dormant for whenever the port happens.
This commit is contained in:
@@ -104,7 +104,6 @@ machine-wide:
|
||||
|---|---|
|
||||
| macOS | `~/Library/LaunchAgents/ai.beardrive.daemon.plist` (launchd loads it at login) |
|
||||
| Linux | `~/.config/systemd/user/beardrive.service` plus the `default.target.wants` symlink that enables it (honors `XDG_CONFIG_HOME`) |
|
||||
| Windows | a `BearDrive` value under `HKCU\Software\Microsoft\Windows\CurrentVersion\Run` — visible in Task Manager's Startup tab, where you can disable it |
|
||||
|
||||
Linux needs systemd as the init system. Without it — Alpine or another
|
||||
runit/OpenRC distro, WSL1, a slim container — `bdrive autostart` says so rather
|
||||
@@ -119,8 +118,5 @@ happen when it can't ask. Answer no, or run `bdrive autostart uninstall`, and
|
||||
the item goes away; sync then resumes on the next `bdrive resume`, `bdrive
|
||||
init`, or agent turn instead of at login.
|
||||
|
||||
On Windows you may see a console window flicker at logon: bdrive is a console
|
||||
program and `resume` exits in milliseconds. Nothing is wrong.
|
||||
|
||||
Either way this is not the only thing that recovers sync: an agent turn in a
|
||||
project syncs it too, so a machine you actually work on catches up on its own.
|
||||
|
||||
@@ -13,7 +13,7 @@ One binary, `bdrive` — the CLI, the sync daemon, and the web server.
|
||||
| `bdrive logout` | Sign this device out — revokes this device's token on the hub, then clears it locally. `--forget` also drops the remembered server |
|
||||
| `bdrive init [folder]` | Create or connect a project and start syncing — the mount is always exactly the folder named. Interactive on a TTY; flags (`--name`, `--project`, `--server`, `--only`, `--template`, `--yes`) for scripts. `--template docs\|wiki\|para` starts a new project from a structure instead of an empty folder. Also registers agent sync hooks for detected platforms (`--no-hooks` skips them) and a login item so sync resumes after a reboot (`--no-autostart` skips), and prints the project's hub link. Re-run to resume |
|
||||
| `bdrive resume` | Restart the sync daemon for every project on this device that isn't paused — after a reboot, a crash, or a manual kill. Idempotent, so running it twice is harmless. This is what the login item runs |
|
||||
| `bdrive autostart [install\|uninstall]` | Show, add, or remove the login registration that runs `bdrive resume` after a reboot: a user LaunchAgent on macOS, a systemd user unit on Linux (needs systemd), a per-user Run entry on Windows. `bdrive init` installs it; `--no-autostart` skips it |
|
||||
| `bdrive autostart [install\|uninstall]` | Show, add, or remove the login registration that runs `bdrive resume` after a reboot: a user LaunchAgent on macOS, a systemd user unit on Linux (needs systemd). `bdrive init` installs it; `--no-autostart` skips it |
|
||||
| `bdrive stop [folder]` | Stop syncing — daemon and agent sync hooks both pause. Files stay on disk; `bdrive init` resumes |
|
||||
| `bdrive scope [add\|rm <dirs...>]` | Show or change which subfolders sync — edits the managed block of `.bdriveignore` rules that `init --only` writes. Run from the mount root; the daemon picks changes up in seconds. `rm` stops syncing a folder but deletes nothing, locally or on the hub |
|
||||
| `bdrive scope --explain` | List every path in the folder, split into what syncs and what does not, with counts — the verifiable answer to "what leaves this machine". Pure read: no daemon, no lock, no network |
|
||||
|
||||
Reference in New Issue
Block a user