ryry-cli 2.97__tar.gz → 2.99__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. {ryry_cli-2.97 → ryry_cli-2.99}/PKG-INFO +1 -1
  2. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/constant.py +2 -2
  3. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/store.py +2 -0
  4. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/upload.py +4 -1
  5. {ryry_cli-2.97 → ryry_cli-2.99}/ryry_cli.egg-info/PKG-INFO +1 -1
  6. {ryry_cli-2.97 → ryry_cli-2.99}/setup.py +1 -1
  7. {ryry_cli-2.97 → ryry_cli-2.99}/LICENSE +0 -0
  8. {ryry_cli-2.97 → ryry_cli-2.99}/README.md +0 -0
  9. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/__init__.py +0 -0
  10. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/main.py +0 -0
  11. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/ryry_server_socket.py +0 -0
  12. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/ryry_service.py +0 -0
  13. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/ryry_webapi.py +0 -0
  14. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/ryry_widget.py +0 -0
  15. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/script_template/__init__.py +0 -0
  16. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/script_template/main.py +0 -0
  17. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/script_template/run.py +0 -0
  18. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/server_func.py +0 -0
  19. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/task.py +0 -0
  20. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/taskUtils.py +0 -0
  21. {ryry_cli-2.97 → ryry_cli-2.99}/ryry/utils.py +0 -0
  22. {ryry_cli-2.97 → ryry_cli-2.99}/ryry_cli.egg-info/SOURCES.txt +0 -0
  23. {ryry_cli-2.97 → ryry_cli-2.99}/ryry_cli.egg-info/dependency_links.txt +0 -0
  24. {ryry_cli-2.97 → ryry_cli-2.99}/ryry_cli.egg-info/entry_points.txt +0 -0
  25. {ryry_cli-2.97 → ryry_cli-2.99}/ryry_cli.egg-info/requires.txt +0 -0
  26. {ryry_cli-2.97 → ryry_cli-2.99}/ryry_cli.egg-info/top_level.txt +0 -0
  27. {ryry_cli-2.97 → ryry_cli-2.99}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.97
3
+ Version: 2.99
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -1,6 +1,6 @@
1
1
  #!!!!! do not change this file !!!!!
2
- app_version="2.97"
3
- app_bulld_anchor="Noh_2025-04-03 13:56:32.263867"
2
+ app_version="2.99"
3
+ app_bulld_anchor="Noh_2025-05-06 11:59:41.924544"
4
4
  app_name="ryry-cli"
5
5
  import sys, os
6
6
  if getattr(sys, 'frozen', False):
@@ -141,6 +141,8 @@ def extend():
141
141
  GLOBAL_EXT_JSON = json.dumps(read_data["extend"])
142
142
  if len(GLOBAL_EXT_JSON) < 10:
143
143
  _genExtend()
144
+ elif read_data.get("device_id", "") != read_data.get("deviceInfo", {}).get("device_id", ""):
145
+ _genExtend()
144
146
  else:
145
147
  _genExtend()
146
148
  return GLOBAL_EXT_JSON
@@ -163,7 +163,10 @@ def getFirstSupportSubdomain():
163
163
  def get_network_hash():
164
164
  import socket
165
165
  from hashlib import md5
166
- local_ip = local_ip = socket.gethostbyname(socket.gethostname())
166
+ try:
167
+ local_ip = socket.gethostbyname('localhost')
168
+ except socket.gaierror:
169
+ local_ip = '127.0.0.1' # 默认回退到 localhost 地址
167
170
  return md5(local_ip.encode('utf-8')).hexdigest()
168
171
  network_hash = get_network_hash()
169
172
  def _getFirstSupportSubdomain():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.97
3
+ Version: 2.99
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -3,7 +3,7 @@ import os
3
3
  import subprocess
4
4
  import datetime
5
5
 
6
- ryry_version = "2.97"
6
+ ryry_version = "2.99"
7
7
  cur_dir = os.path.dirname(os.path.abspath(__file__))
8
8
  constanspy = os.path.join(cur_dir, "ryry", "constant.py")
9
9
  try:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes