Adjust rust beta-sysroot install path format on windows

The upstream install scripts are .sh files and aren't well-equipped to
handle windows filepaths. Empirically, it seems that on windows we need
to pass a relative path in posix format (forward slashes). Otherwise,
it will put the sysroot in various odd locations (including possibly
some that are impossible to create by normal methods, e.g. those with a
colon in the name).

Bug: 407563488
Change-Id: I1fa8b6772ee986b865ead617d7a0db830056ba72
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6915579
Auto-Submit: Devon Loehr <dloehr@google.com>
Commit-Queue: Arthur Eubanks <aeubanks@google.com>
Reviewed-by: Arthur Eubanks <aeubanks@google.com>
Cr-Commit-Position: refs/heads/main@{#1511074}
NOKEYCHECK=True
GitOrigin-RevId: 5d62e3d992d940cc2b7ca8a5c6daee4891257677
diff --git a/build_rust.py b/build_rust.py
index aa6dc4a..f8de660 100755
--- a/build_rust.py
+++ b/build_rust.py
@@ -255,6 +255,9 @@
 
 
 def InstallBetaPackage(package_dir, install_dir):
+    if sys.platform == 'win32':
+        # The install scripts on windows require relative, posix-style paths.
+        install_dir = os.path.relpath(install_dir).replace('\\', '/')
     args = [
         f'--destdir={install_dir}',
         f'--prefix=',