mac brew proxy & scrcpy & android12

scrcpy can not start android 12 occasionally

so need update scrcpy for test

scrcpy

https://github.com/Genymobile/scrcpy/releases

scrcpy v1.18 support for Android 12

brew proxy

terminal

export ALL_PROXY=http://127.0.0.1:1081

~/.bash_profile

export ALL_PROXY=http://127.0.0.1:1081

nano ~/.curlrc

socks5 = "127.0.0.1:1080"

brew git

cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git


cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.git

brew update 

brew update-reset

brew update && brew upgrade && brew cleanup

scrcpy update

brew install scrcpy

or

brew upgrade scrcpy

scrcpy update errors

proxy error

1:
no alternative certificate subject name matches target host name
Error: scrcpy: Failed to download resource "openexr--exr"


2:
scrcpy: Failed to download resource "openexr--exr"
Error: scrcpy: Failed to download resource "openexr--exr"

proxy1 : nano ~/.bachrc

# skip ssl
insecure

# github 404
socks5 = "127.0.0.1:1080"
proxy2: more
wget --no-check-certificate

curl --insecure

proxy3: proxifier

success

scrcpy start

nohup scrcpy -s 8B5NNQ >/dev/null 2>&1 &