Compare commits
2 Commits
dfb03cb362
...
2c3a71fe3c
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c3a71fe3c | |||
| 81bc1f5f50 |
127
.gitignore
vendored
127
.gitignore
vendored
@@ -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
|
||||
2
.idea/iOSAI.iml
generated
2
.idea/iOSAI.iml
generated
@@ -4,7 +4,7 @@
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Python 3.12" jdkType="Python SDK" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.12 (IOS-AI)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -3,5 +3,5 @@
|
||||
<component name="Black">
|
||||
<option name="sdkName" value="Python 3.12" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (IOS-AI)" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
@@ -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": ""
|
||||
}
|
||||
]
|
||||
@@ -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
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 96 KiB |
BIN
resources/fc18bc21951daf7be012a8a687b00a4de8b24c18/bgv.png
Normal file
BIN
resources/fc18bc21951daf7be012a8a687b00a4de8b24c18/bgv.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1020 KiB |
@@ -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)
|
||||
Reference in New Issue
Block a user