Skip to content

Commit f97a73e

Browse files
committed
Update binaries
1 parent a43ae71 commit f97a73e

File tree

6 files changed

+37
-1
lines changed

6 files changed

+37
-1
lines changed

async_tls_client/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
__title__ = "async_tls_client"
88
__description__ = "Fork of tls-client with asyncio."
9-
__version__ = "1.0.1"
9+
__version__ = "1.0.2"
1010
__author__ = "Diprog"
1111
__license__ = "MIT"
-15.7 MB
Binary file not shown.
-17.8 MB
Binary file not shown.
-10.3 MB
Binary file not shown.
-11.1 MB
Binary file not shown.

scripts/update_shared_library.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import requests
2+
3+
shared_library_version = "1.7.10"
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"../async_tls_client/dependencies/{dependency_filename}", "wb") as f:
36+
f.write(response.content)

0 commit comments

Comments
 (0)