xywechatpad-binary 0.4__py3-none-win_amd64.whl → 1.0.0__py3-none-win_amd64.whl
Sign up to get free protection for your applications and to get access to all the features.
- xywechatpad_binary/__init__.py +9 -0
- {xywechatpad_binary-0.4.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.4.dist-info/RECORD +0 -6
- {xywechatpad_binary-0.4.dist-info → xywechatpad_binary-1.0.0.dist-info}/WHEEL +0 -0
- {xywechatpad_binary-0.4.dist-info → xywechatpad_binary-1.0.0.dist-info}/top_level.txt +0 -0
xywechatpad_binary/__init__.py
CHANGED
@@ -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
|
|
@@ -0,0 +1,6 @@
|
|
1
|
+
xywechatpad_binary/__init__.py,sha256=UZdz-RVn_5hLJ4h5QKW1wSkT3HbD9s3ZFbEA8PazBDg,2145
|
2
|
+
xywechatpad_binary/binaries/win_x64/XYWechatPad.exe,sha256=1n7iC8UGimN5Y-m1WJ0yI0aM7NrOqlrE5zoEBkINtL4,59504640
|
3
|
+
xywechatpad_binary-1.0.0.dist-info/METADATA,sha256=PVdjElky-RQSdP7Fw6KuNFettVZtZPjvJ8krxsc_CnE,883
|
4
|
+
xywechatpad_binary-1.0.0.dist-info/WHEEL,sha256=2wr--P33L_Xt79Mrb57-zn6CrTlNaEVHEwbOduMxJRg,97
|
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,6 +0,0 @@
|
|
1
|
-
xywechatpad_binary/__init__.py,sha256=W0yNnpgGF7BXiqyIm-tj69xsmBN4bF6b9A7n2sRWN7A,1814
|
2
|
-
xywechatpad_binary/binaries/win_x64/XYWechatPad.exe,sha256=1n7iC8UGimN5Y-m1WJ0yI0aM7NrOqlrE5zoEBkINtL4,59504640
|
3
|
-
xywechatpad_binary-0.4.dist-info/METADATA,sha256=Es9Yp50JlZWjO2ARoBXnJTF3sbQEaJpaXFPRmdnpFEM,881
|
4
|
-
xywechatpad_binary-0.4.dist-info/WHEEL,sha256=2wr--P33L_Xt79Mrb57-zn6CrTlNaEVHEwbOduMxJRg,97
|
5
|
-
xywechatpad_binary-0.4.dist-info/top_level.txt,sha256=BRNwtnBow_nuNSwzbRI87oDT3yD0UME9sQZ0vLtvRzQ,19
|
6
|
-
xywechatpad_binary-0.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|