build: fix depot tool pathing on Windows (#47194)
build: properly set depot_tools pathing for Windows
This commit is contained in:
parent
2e8fc17f07
commit
b2d0074cc6
1 changed files with 7 additions and 3 deletions
|
@ -15,12 +15,16 @@ runs:
|
||||||
fi
|
fi
|
||||||
export BUILD_TOOLS_SHA=6e8526315ea3b4828882497e532b8340e64e053c
|
export BUILD_TOOLS_SHA=6e8526315ea3b4828882497e532b8340e64e053c
|
||||||
npm i -g @electron/build-tools
|
npm i -g @electron/build-tools
|
||||||
|
# Update depot_tools to ensure python
|
||||||
e d update_depot_tools
|
e d update_depot_tools
|
||||||
e auto-update disable
|
e auto-update disable
|
||||||
|
# Disable further updates of depot_tools
|
||||||
e d auto-update disable
|
e d auto-update disable
|
||||||
if [ "$(expr substr $(uname -s) 1 10)" == "MSYS_NT-10" ]; then
|
if [ "$(expr substr $(uname -s) 1 10)" == "MSYS_NT-10" ]; then
|
||||||
e d cipd.bat --version
|
e d cipd.bat --version
|
||||||
cp "C:\Python311\python.exe" "C:\Python311\python3.exe"
|
cp "C:\Python311\python.exe" "C:\Python311\python3.exe"
|
||||||
fi
|
echo "C:\Users\ContainerAdministrator\.electron_build_tools\third_party\depot_tools" >> $GITHUB_PATH
|
||||||
|
else
|
||||||
echo "$HOME/.electron_build_tools/third_party/depot_tools" >> $GITHUB_PATH
|
echo "$HOME/.electron_build_tools/third_party/depot_tools" >> $GITHUB_PATH
|
||||||
echo "$HOME/.electron_build_tools/third_party/depot_tools/python-bin" >> $GITHUB_PATH
|
echo "$HOME/.electron_build_tools/third_party/depot_tools/python-bin" >> $GITHUB_PATH
|
||||||
|
fi
|
Loading…
Add table
Add a link
Reference in a new issue