Skip to content

Instantly share code, notes, and snippets.

@emaballarin
Created August 22, 2024 17:47
Show Gist options
  • Save emaballarin/40d7e46b12ef2bd8ef753b12a5d23866 to your computer and use it in GitHub Desktop.
Save emaballarin/40d7e46b12ef2bd8ef753b12a5d23866 to your computer and use it in GitHub Desktop.
Build Zed on Windows from the latest commit available. Automated version of https://github.com/zed-industries/zed/blob/main/docs/src/development/windows.md#building-zed-for-windows
#!/usr/bin/env pwsh
rustup update
rustup target add wasm32-wasi
git clone --recursive --recurse-submodules --shallow-submodules --depth 1 --branch "main" https://github.com/zed-industries/zed.git
Set-Location zed
cargo clean --release
cargo build --release
cargo run --release
cp target\release\zed.exe ..\
Set-Location ..\
rm zed -Force -Recurse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment