pymobiledevice3 icon indicating copy to clipboard operation
pymobiledevice3 copied to clipboard

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

Open hyfand opened this issue 1 year ago • 1 comments
trafficstars

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'
])

hyfand avatar May 29 '24 08:05 hyfand

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

doronz88 avatar May 29 '24 10:05 doronz88