From 32bb2a6e443978f31396fe244919068e9590c197 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Wed, 19 Feb 2020 21:17:56 +0800 Subject: [PATCH] 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 --- buildscripts/winbuild.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildscripts/winbuild.sh b/buildscripts/winbuild.sh index 5b4fc37f..415d91f2 100755 --- a/buildscripts/winbuild.sh +++ b/buildscripts/winbuild.sh @@ -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 }