Optionally set git root CA in wine build

- I want to use a https cache for build, that requires to add a new root CA for
  pip, and I can't find a way to do that cleanly  without modifying the
  winebuild.sh script
This commit is contained in:
Peter Šurda 2020-02-19 21:17:56 +08:00
parent ac2df26e96
commit 32bb2a6e44
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ function install_python(){
echo "Installing vc_redist (2008) for 32 bit "
wine vcredist_x86.exe /Q
fi
# add cert
if [ -f /usr/local/share/ca-certificates/bitmessage-proxy.crt ]; then
wine python -m pip config set global.cert 'z:\usr\local\share\ca-certificates\bitmessage-proxy.crt'
fi
echo "Upgrading pip"
wine python -m pip install --upgrade pip
}