Created
January 22, 2025 03:04
-
-
Save G36maid/e7962e3a7c1dd260b8e8f3a37c71c8ba to your computer and use it in GitHub Desktop.
Zed editor on freeBSD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo pkg install -y git rust cmake | |
| git clone https://github.com/zed-industries/zed.git | |
| cd zed | |
| sudo pkg install -y rust ca_root_nss | |
| export RUSTFLAGS="-C link-dead-code" | |
| cargo build --release | |
| cargo build --release --frozen -p zed | |
| sudo install -Dm755 "./target/release/zed" "/usr/local/bin/zed" | |
| # License | |
| mkdir /usr/share/licenses/zed/ | |
| sudo install -Dm644 "./assets/licenses.md" "/usr/share/licenses/zed/LICENSE.md" | |
| # Icons | |
| sudo cp "crates/zed/resources/app-icon.png" "/usr/local/share/icons/hicolor/512x512/apps/zed.png" | |
| sudo cp "crates/zed/resources/app-icon@2x.png" "/usr/local/share/icons/hicolor/512x512@2/apps/zed.png" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment