Add initial FreeBSD script & installation doc (#30981)

This PR adds initial FreeBSD support for building Zed:

*  Adds `script/freebsd` to install required dependencies on FreeBSD
*  Adds `docs/freebsd.md` with build instructions and notes
* ⚠️ Mentions that `webrtc` is still **work-in-progress** on FreeBSD.

Related to : #15309 
I’m currently working at discussions :
[Discussions](https://github.com/zed-industries/zed/discussions/29550)

Release Notes:

- N/A

---------

Co-authored-by: Peter Tripp <peter@zed.dev>
This commit is contained in:
G36maid 2025-06-07 07:14:25 +08:00 committed by GitHub
parent dc63138089
commit 65a93a0036
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 70 additions and 0 deletions

View file

@ -147,6 +147,7 @@
- [macOS](./development/macos.md)
- [Linux](./development/linux.md)
- [Windows](./development/windows.md)
- [FreeBSD}(./development/freebsd.md)]
- [Local Collaboration](./development/local-collaboration.md)
- [Using Debuggers](./development/debuggers.md)
- [Release Process](./development/releases.md)

View file

@ -0,0 +1,30 @@
# Building Zed for FreeBSD
Note, FreeBSD is not currently a supported platform, and so this is a work-in-progress.
## Repository
Clone the [Zed repository](https://github.com/zed-industries/zed).
## Dependencies
- Install the necessary system packages and rustup:
```sh
script/freebsd
```
If preferred, you can inspect [`script/freebsd`](https://github.com/zed-industries/zed/blob/main/script/freebsd) and perform the steps manually.
---
### ⚠️ WebRTC Notice
Currently, building `webrtc-sys` on FreeBSD fails due to missing upstream support and unavailable prebuilt binaries.
This is actively being worked on.
More progress and discussion can be found in [Zeds GitHub Discussions](https://github.com/zed-industries/zed/discussions/29550).
_Environment:
FreeBSD 14.2-RELEASE
Architecture: amd64 (x86_64)_

View file

@ -45,6 +45,10 @@ Zed requires a Vulkan 1.3 driver, and the following desktop portals:
Not yet available as an official download. Can be built [from source](./development/windows.md).
## FreeBSD
Not yet available as an official download. Can be built [from source](./development/freebsd.md).
## Web
Not supported at this time. See our [Platform Support issue](https://github.com/zed-industries/zed/issues/5391).