浏览代码

fix: fix remaining PATH issues

Poly-Pixel 2 年之前
父节点
当前提交
3caa565610
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      frontend/scripts/install_dev_env/install_windows.sh

+ 3 - 2
frontend/scripts/install_dev_env/install_windows.sh

@@ -50,8 +50,9 @@ fi
 printMessage "Setting up Flutter"
 flutter channel stable
 
-# Add pub cache to PATH
+# Add pub cache and cargo to PATH
 powershell '[Environment]::SetEnvironmentVariable("PATH", $Env:PATH + ";" + $Env:LOCALAPPDATA + "\Pub\Cache\Bin", [EnvironmentVariableTarget]::User)'
+powershell '[Environment]::SetEnvironmentVariable("PATH", $Env:PATH + ";" + $Env:USERPROFILE + "\.cargo\bin", [EnvironmentVariableTarget]::User)'
 
 # Enable linux desktop
 flutter config --enable-windows-desktop
@@ -91,4 +92,4 @@ vcpkg integrate install
 
 # Check prerequisites
 printMessage "Checking prerequisites."
-$USERPROFILE/.cargo/bin/cargo make flowy_dev
+PATH="$PATH;$LOCALAPPDATA/Pub/Cache/Bin" $USERPROFILE/.cargo/bin/cargo make flowy_dev