PyUpdater icon indicating copy to clipboard operation
PyUpdater copied to clipboard

macOS. Issues with releases built with --archive-format=zip

Open anatolyzenkov opened this issue 5 years ago • 4 comments

macOS, Plugin: SCP command example: $ pyupdater build --app-version=2.0.1 --archive-format=zip -wyD mac.spec tar.gz-release successfully updates to the next tar.gz-release zip-relase doesn't "see" next zip-release zip-relase doesn't "see" next tar.gz-release tar.gz-release crashes when trying to update to the next zip-release

anatolyzenkov avatar Jul 19 '20 22:07 anatolyzenkov

I found that the content of the app packages is different between zip and tar.gz. There are some aliases to directories in Resources in tar.gz-releases. In zip-releases these are empty directories instead of aliases. Zip-release can't find local certificate file while trying to make update_check. Screenshot 2020-07-21 at 00 02 01 Screenshot 2020-07-21 at 00 02 15

anatolyzenkov avatar Jul 20 '20 22:07 anatolyzenkov

It seams that the problem is with shutil.make_archive. It changes symlinks to empty folders when making zip file. (macOS, Python 3.8.1)

anatolyzenkov avatar Jul 20 '20 22:07 anatolyzenkov

Found open ticket https://bugs.python.org/issue37601

anatolyzenkov avatar Jul 20 '20 23:07 anatolyzenkov

Thanks for the report & great find!

Looks like we'll need to do it the long way :)

JMSwag avatar Jul 30 '20 02:07 JMSwag