Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

cli: Rename script zed-wsl to zed, and enable on non-WSL (#37631)

Jakub Konka3d37611b6f20
diff --git a/.gitattributes b/.gitattributes
index 0dedc2d567d..37d28993301 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2,4 +2,4 @@
*.json linguist-language=JSON-with-Comments
# Ensure the WSL script always has LF line endings, even on Windows
-crates/zed/resources/windows/zed-wsl text eol=lf
+crates/zed/resources/windows/zed text eol=lf
diff --git a/crates/zed/resources/windows/zed-wsl b/crates/zed/resources/windows/zed.sh
similarity index 88%
rename from crates/zed/resources/windows/zed-wsl
rename to crates/zed/resources/windows/zed.sh
index d3cbb93af6f..734b1a7eb00 100644
--- a/crates/zed/resources/windows/zed-wsl
+++ b/crates/zed/resources/windows/zed.sh
@@ -20,6 +20,6 @@ if [ $IN_WSL = true ]; then
"$ZED_PATH/zed.exe" --wsl "$WSL_USER@$WSL_DISTRO_NAME" "$@"
exit $?
else
- echo "Only WSL is supported for now" >&2
- exit 1
+ "$ZED_PATH/zed.exe" "$@"
+ exit $?
fi
diff --git a/script/bundle-windows.ps1 b/script/bundle-windows.ps1
index 84ad39fb706..a26abf8413f 100644
--- a/script/bundle-windows.ps1
+++ b/script/bundle-windows.ps1
@@ -150,7 +150,7 @@ function CollectFiles {
Move-Item -Path "$innoDir\zed_explorer_command_injector.appx" -Destination "$innoDir\appx\zed_explorer_command_injector.appx" -Force
Move-Item -Path "$innoDir\zed_explorer_command_injector.dll" -Destination "$innoDir\appx\zed_explorer_command_injector.dll" -Force
Move-Item -Path "$innoDir\cli.exe" -Destination "$innoDir\bin\zed.exe" -Force
- Move-Item -Path "$innoDir\zed-wsl" -Destination "$innoDir\bin\zed" -Force
+ Move-Item -Path "$innoDir\zed.sh" -Destination "$innoDir\bin\zed" -Force
Move-Item -Path "$innoDir\auto_update_helper.exe" -Destination "$innoDir\tools\auto_update_helper.exe" -Force
Move-Item -Path ".\AGS_SDK-6.3.0\ags_lib\lib\amd_ags_x64.dll" -Destination "$innoDir\amd_ags_x64.dll" -Force
}