File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ import requests
2+
3+ shared_library_version = "1.7.2"
4+ github_download_url = "https://github.com//bogdanfinn/tls-client/releases/download/v{}/{}"
5+ github_repo_filenames = [
6+ # Windows
7+ f"tls-client-windows-32-v{ shared_library_version } .dll" ,
8+ f"tls-client-windows-64-v{ shared_library_version } .dll" ,
9+ # MacOS
10+ f"tls-client-darwin-arm64-v{ shared_library_version } .dylib" ,
11+ f"tls-client-darwin-amd64-v{ shared_library_version } .dylib" ,
12+ # Linux
13+ f"tls-client-linux-alpine-amd64-v{ shared_library_version } .so" ,
14+ f"tls-client-linux-ubuntu-amd64-v{ shared_library_version } .so" ,
15+ f"tls-client-linux-arm64-v{ shared_library_version } .so"
16+ ]
17+ dependency_filenames = [
18+ # Windows
19+ "tls-client-32.dll" ,
20+ "tls-client-64.dll" ,
21+ # MacOS
22+ "tls-client-arm64.dylib" ,
23+ "tls-client-x86.dylib" ,
24+ # Linux
25+ "tls-client-amd64.so" ,
26+ "tls-client-x86.so" ,
27+ "tls-client-arm64.so"
28+ ]
29+
30+ for github_filename , dependency_filename in zip (github_repo_filenames , dependency_filenames ):
31+ response = requests .get (
32+ url = github_download_url .format (shared_library_version , github_filename )
33+ )
34+
35+ with open (f"../tls_client/dependencies/{ dependency_filename } " , "wb" ) as f :
36+ f .write (response .content )
You can’t perform that action at this time.
0 commit comments