Skip to content

Commit

Permalink
暂时更换 Mozilla CA 来源
Browse files Browse the repository at this point in the history
因为 curl.se 奇怪的证书问题
  • Loading branch information
SeaHOH committed Oct 23, 2021
1 parent 7e994b6 commit 3e64603
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,34 @@ addons:
- p7zip-full

script:
- export PYTHON_VERSION=3.9.6
- export PYTHON_VERSION=3.9.7
- export PYTHON_IMPL_VERSION=cp39
- export RELEASE_VERSION=$(grep -oP '[0-9\.ab]+' local/__init__.py)

before_deploy:
- curl -L -o cert/cacerts/mozilla.pem https://curl.haxx.se/ca/cacert.pem
#- curl -L -o cert/cacerts/mozilla.pem https://curl.se/ca/cacert.pem
- curl -L -o cert/cacerts/mozilla.pem https://raw.githubusercontent.com/gisle/mozilla-ca/master/lib/Mozilla/CA/cacert.pem
- curl -L -o cert/cacerts/google.pem https://pki.google.com/roots.pem
- python launcher/buildipdb.py -u -d --17mon
- python launcher/builddomains.py -u -d --felix

- cd python/site-packages
- 7za a -tzip -mx=9 -mfb=258 -mtc=off helpers-win32.egg winsystray
- 7z a -tzip -mx=9 -mfb=258 -mtc=off helpers-win32.egg winsystray
- rm -rf winsystray
- cd ../..

- rm -rf .git*
- rm -rf .travis*

- 7za a -mx=9 -mfb=258 -mtc=off GotoX-${RELEASE_VERSION}-py3-any.zip *
- 7z a -mx=9 -mfb=258 -mtc=off GotoX-${RELEASE_VERSION}-py3-any.zip *
- mv *.zip ..
- cd ..

- pack() {
cp -r GotoX GotoX-${3};
cd GotoX-${3};
python pack_portable.py ${1}-${3};
7za a -mx=9 -m0=BCJ2 -m1=LZMA2:mf=bt3 -m2=LZMA:d19 -m3=LZMA:d19 -m4=LZMA:d19
7z a -mx=9 -m0=BCJ2 -m1=LZMA2:mf=bt3 -m2=LZMA:d19 -m3=LZMA:d19 -m4=LZMA:d19
-mb0s0:1 -mb0s1:2 -mb0s2:3 -mb0s3:4 GotoX-${RELEASE_VERSION}-${2}-${3}.7z *;
mv *.7z ..;
cd ..;
Expand Down
2 changes: 1 addition & 1 deletion cert/cacerts/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
下载后放入此文件夹,文件名随便,但是不要修改后缀 pem。

Mozilla
https://curl.haxx.se/ca/cacert.pem
https://curl.se/ca/cacert.pem

Google
https://pki.google.com/roots.pem

0 comments on commit 3e64603

Please sign in to comment.