diff --git a/.gitignore b/.gitignore index e69de29..90e4b38 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,127 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg +out/ + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ +docs/.doctrees/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type checker +.pytype/ + +# Cython debug symbols +cython_debug/ + +*.bat \ No newline at end of file diff --git a/.idea/iOSAI.iml b/.idea/iOSAI.iml index 6cb8b9a..894b6b0 100644 --- a/.idea/iOSAI.iml +++ b/.idea/iOSAI.iml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index db8786c..c27b771 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index a53c642..3c8f56c 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,17 +5,16 @@ - - + + - - - - + + - + + - { - "keyToString": { - "ASKED_ADD_EXTERNAL_FILES": "true", - "ASKED_MARK_IGNORED_FILES_AS_EXCLUDED": "true", - "Python.12.executor": "Run", - "Python.123.executor": "Run", - "Python.Main.executor": "Run", - "Python.Test.executor": "Run", - "Python.test.executor": "Run", - "Python.tidevice_entry.executor": "Run", - "RunOnceActivity.ShowReadmeOnStart": "true", - "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true", - "RunOnceActivity.git.unshallow": "true", - "SHARE_PROJECT_CONFIGURATION_FILES": "true", - "git-widget-placeholder": "main", - "javascript.nodejs.core.library.configured.version": "20.17.0", - "javascript.nodejs.core.library.typings.version": "20.17.58", - "last_opened_file_path": "F:/company code/AI item/20250820/iOSAI", - "node.js.detected.package.eslint": "true", - "node.js.detected.package.tslint": "true", - "node.js.selected.package.eslint": "(autodetect)", - "node.js.selected.package.tslint": "(autodetect)", - "nodejs_package_manager_path": "npm", - "settings.editor.selected.configurable": "preferences.editor.code.editing", - "vue.rearranger.settings.migration": "true" + +}]]> @@ -197,6 +196,7 @@ \ No newline at end of file diff --git a/Module/log/acList.json b/Module/log/acList.json index e50ce15..d74ee64 100644 --- a/Module/log/acList.json +++ b/Module/log/acList.json @@ -1,22 +1,34 @@ [ { - "anchorId": "giulia.roma", - "country": "意大利" + "anchorId": "user6714600605198", + "country": "" }, { - "anchorId": "marcelo_brasil", - "country": "巴西" + "anchorId": "ldn327_", + "country": "" }, { - "anchorId": "anna_krasnova", - "country": "俄罗斯" + "anchorId": "qyzyfrms8c4", + "country": "" }, { - "anchorId": "lee_jiwoo", - "country": "韩国" + "anchorId": "binge_watch666", + "country": "" }, { - "anchorId": "fatima_dxb", - "country": "阿联酋" + "anchorId": "tianliang30", + "country": "" + }, + { + "anchorId": "user6714600605198", + "country": "" + }, + { + "anchorId": "ldn327_", + "country": "" + }, + { + "anchorId": "qyzyfrms8c4", + "country": "" } ] \ No newline at end of file diff --git a/build-tidevice.bat b/build-tidevice.bat index e69de29..ca3b087 100644 --- a/build-tidevice.bat +++ b/build-tidevice.bat @@ -0,0 +1,9 @@ +pyinstaller -F -n tidevice ^ + --hidden-import=tidevice._proto ^ + --hidden-import=tidevice._instruments ^ + --hidden-import=tidevice._usbmux ^ + --hidden-import=tidevice._wdaproxy ^ + --collect-all tidevice ^ + --noconsole ^ + --add-data="C:\Users\milk\AppData\Local\Programs\Python\Python312\Lib\site-packages\tidevice;tidevice" ^ + tidevice_entry.py \ No newline at end of file diff --git a/build.bat b/build.bat index 6e939bf..ba712c4 100644 --- a/build.bat +++ b/build.bat @@ -1,9 +1,9 @@ -python -m nuitka "Module/Main.py" ^ +python -m nuitka "C:\Users\zhangkai\Desktop\20250916ios\iOSAI\Module\Main.py" ^ --standalone ^ --msvc=latest ^ --windows-console-mode=disable ^ --remove-output ^ ---output-dir="F:/company code/AI item/20250820/iOSAI/out" ^ +--output-dir="C:\Users\zhangkai\Desktop\20250916ios\iOSAI\out" ^ --output-filename=IOSAI ^ --include-package=Module,Utils,Entity,script ^ --include-module=flask ^ @@ -18,7 +18,7 @@ python -m nuitka "Module/Main.py" ^ --include-module=urllib3 ^ --include-module=certifi ^ --include-module=idna ^ ---include-data-dir="F:/company code/AI item/20250820/iOSAI/SupportFiles=SupportFiles" ^ ---include-data-dir="F:/company code/AI item/20250820/iOSAI/resources=resources" ^ ---include-data-files="F:/company code/AI item/20250820/iOSAI/resources/iproxy/*=resources/iproxy/" ^ ---windows-icon-from-ico="F:/company code/AI item/20250820/iOSAI/resources/icon.ico" +--include-data-dir="C:\Users\zhangkai\Desktop\20250916ios\iOSAI\SupportFiles=SupportFiles" ^ +--include-data-dir="C:\Users\zhangkai\Desktop\20250916ios\iOSAI\resources=resources" ^ +--include-data-files="C:\Users\zhangkai\Desktop\20250916ios\iOSAI\resources\iproxy\*=resources/iproxy/" ^ +--windows-icon-from-ico="C:\Users\zhangkai\Desktop\20250916ios\iOSAI\resources\icon.ico" diff --git a/resources/133bffc17635b7a3bd709492b7a519d96710a4a2/bgv.png b/resources/133bffc17635b7a3bd709492b7a519d96710a4a2/bgv.png deleted file mode 100644 index 63226bc..0000000 Binary files a/resources/133bffc17635b7a3bd709492b7a519d96710a4a2/bgv.png and /dev/null differ diff --git a/resources/fc18bc21951daf7be012a8a687b00a4de8b24c18/bgv.png b/resources/fc18bc21951daf7be012a8a687b00a4de8b24c18/bgv.png new file mode 100644 index 0000000..2f3db83 Binary files /dev/null and b/resources/fc18bc21951daf7be012a8a687b00a4de8b24c18/bgv.png differ diff --git a/tidevice_entry.py b/tidevice_entry.py index e69de29..2cc9028 100644 --- a/tidevice_entry.py +++ b/tidevice_entry.py @@ -0,0 +1,18 @@ +# from tidevice.__main__ import main +# if __name__ == '__main__': +# main() + + +# tidevice_entry.py +import sys, traceback, os +from tidevice.__main__ import main + +if __name__ == "__main__": + try: + main() + except Exception: + # 把 traceback 写到日志文件,但**不输出到控制台** + with open(os.path.expanduser("~/tidevice_crash.log"), "a", encoding="utf-8") as f: + traceback.print_exc(file=f) + # 静默退出,**返回码 1**(父进程只认 returncode) + sys.exit(1) \ No newline at end of file