Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is an error in the script for Windows computer packaging, and I have corrected it #1039

Open
hyfand opened this issue May 29, 2024 · 1 comment

Comments

@hyfand
Copy link

hyfand commented May 29, 2024

PyInstaller.__main__.run([
    'pymobiledevice_3.py',
    '--hidden-import=ipsw_parser',
    '--hidden-import=zeroconf',
    '--hidden-import=pyimg4',
    '--hidden-import=apple_compress',
    '--hidden-import=zeroconf._utils.ipaddress',
    '--hidden-import=zeroconf._handlers.answers',
    '--hidden-import=readchar',
    '--copy-metadata=pyimg4',
    '--copy-metadata=readchar',
    '--copy-metadata=apple_compress',
    #  '--add-data', f"{site_packages_path}/pytun_pmd3/*;pytun_pmd3",  # There will be an error message where the DLL cannot be found
    '--add-data', f"{site_packages_path}/pytun_pmd3;pytun_pmd3",  # Just transfer the entire folder over
    '--collect-submodules', 'pymobiledevice3',
    '--onedir'
])
@doronz88
Copy link
Owner

Please submit this as a PR. I have no way to test it currently.
Also, if you'd like, you can even submit this as a github action so it'll be published automatically along with every release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants