xywechatpad-binary 0.3__py3-none-manylinux2014_aarch64.whl → 1.0.0__py3-none-manylinux2014_aarch64.whl
Sign up to get free protection for your applications and to get access to all the features.
- xywechatpad_binary/__init__.py +16 -7
- xywechatpad_binary/binaries/linux_aarch64/XYWechatPad +0 -0
- {xywechatpad_binary-0.3.dist-info → xywechatpad_binary-1.0.0.dist-info}/METADATA +1 -1
- xywechatpad_binary-1.0.0.dist-info/RECORD +6 -0
- xywechatpad_binary-0.3.dist-info/RECORD +0 -5
- {xywechatpad_binary-0.3.dist-info → xywechatpad_binary-1.0.0.dist-info}/WHEEL +0 -0
- {xywechatpad_binary-0.3.dist-info → xywechatpad_binary-1.0.0.dist-info}/top_level.txt +0 -0
xywechatpad_binary/__init__.py
CHANGED
@@ -16,17 +16,17 @@ def copy_binary(target_dir: Path) -> Path:
|
|
16
16
|
# 平台到二进制路径的映射
|
17
17
|
BIN_MAP = {
|
18
18
|
"linux": {
|
19
|
-
"x86_64": "binaries/linux_x64/
|
20
|
-
"amd64": "binaries/linux_x64/
|
21
|
-
"aarch64": "binaries/linux_aarch64/
|
19
|
+
"x86_64": "binaries/linux_x64/XYWechatPad",
|
20
|
+
"amd64": "binaries/linux_x64/XYWechatPad",
|
21
|
+
"aarch64": "binaries/linux_aarch64/XYWechatPad"
|
22
22
|
},
|
23
23
|
"darwin": { # macOS
|
24
|
-
"x86_64": "binaries/macos_x64/
|
25
|
-
"arm64": "binaries/macos_arm64/
|
24
|
+
"x86_64": "binaries/macos_x64/XYWechatPad",
|
25
|
+
"arm64": "binaries/macos_arm64/XYWechatPad"
|
26
26
|
},
|
27
27
|
"windows": {
|
28
|
-
"x86_64": "binaries/win_x64/
|
29
|
-
"amd64": "binaries/win_x64/
|
28
|
+
"x86_64": "binaries/win_x64/XYWechatPad.exe",
|
29
|
+
"amd64": "binaries/win_x64/XYWechatPad.exe"
|
30
30
|
}
|
31
31
|
}
|
32
32
|
|
@@ -46,6 +46,15 @@ def copy_binary(target_dir: Path) -> Path:
|
|
46
46
|
# 构建目标路径
|
47
47
|
dest_path = target_dir / src_path.name
|
48
48
|
|
49
|
+
# 如果目标文件已存在且内容相同,直接返回
|
50
|
+
if dest_path.exists():
|
51
|
+
# 验证文件内容是否一致
|
52
|
+
if dest_path.stat().st_size == src_path.stat().st_size:
|
53
|
+
return dest_path
|
54
|
+
|
55
|
+
# 文件存在但大小不同则删除旧文件
|
56
|
+
dest_path.unlink()
|
57
|
+
|
49
58
|
# 执行复制
|
50
59
|
shutil.copy2(src_path, dest_path)
|
51
60
|
|
Binary file
|
@@ -0,0 +1,6 @@
|
|
1
|
+
xywechatpad_binary/__init__.py,sha256=CXKU9NGJ5qb-388Eh1VBHQuJbD5QDOjDVY4g4PBe0vc,2080
|
2
|
+
xywechatpad_binary/binaries/linux_aarch64/XYWechatPad,sha256=Xt6FTfadee5MNjH0bvaLC6kjFbr_ziv8EFSSHHToHto,52297863
|
3
|
+
xywechatpad_binary-1.0.0.dist-info/METADATA,sha256=VuQyeVEqvqUQQvoEBi7DYAeWknm3_akSt3sFReGLat0,852
|
4
|
+
xywechatpad_binary-1.0.0.dist-info/WHEEL,sha256=CAAIYj673m82uITKVUyoDW3NEf1U9lO9qYeWaWdK-w8,109
|
5
|
+
xywechatpad_binary-1.0.0.dist-info/top_level.txt,sha256=BRNwtnBow_nuNSwzbRI87oDT3yD0UME9sQZ0vLtvRzQ,19
|
6
|
+
xywechatpad_binary-1.0.0.dist-info/RECORD,,
|
@@ -1,5 +0,0 @@
|
|
1
|
-
xywechatpad_binary/__init__.py,sha256=2giITP8Ossj09FKCREcCg1VdIIYSOQxYxumaKY0o1m0,1779
|
2
|
-
xywechatpad_binary-0.3.dist-info/METADATA,sha256=tNIPWe13XxDpcn2M5Y24g53sTXLHnBnZArD2nViQ_ms,850
|
3
|
-
xywechatpad_binary-0.3.dist-info/WHEEL,sha256=CAAIYj673m82uITKVUyoDW3NEf1U9lO9qYeWaWdK-w8,109
|
4
|
-
xywechatpad_binary-0.3.dist-info/top_level.txt,sha256=BRNwtnBow_nuNSwzbRI87oDT3yD0UME9sQZ0vLtvRzQ,19
|
5
|
-
xywechatpad_binary-0.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|