bennord / appstore-tools

Tools for interacting with the AppStore Connect api
MIT License
1 stars 1 forks source link

Non-changed assets are being re-uploaded #3

Open luke14free opened 3 years ago

luke14free commented 3 years ago

I did a simple appstore-tools download ..., created a version on appstore connect and did an appstore-tools upload ... without changing anything. However I believe that the upload script has some issues understanding that the assets did not change and is re-uploading all of them; e.g.

  tr    - updating locale ['whatsNew']
    APP_IPHONE_65 - checking for changes
      1-1.jpg - checksum changed: a89e18b40b9e13dc0d58e09c559dbf9b -> a6119e9477d6791b8bc36b2842e8351a
      3-1.jpg - checksum changed: ff37e7308ae925858834c905b666247c -> 7d270e6d689cda001799f87368b58e59
      2-1.jpg - checksum changed: e96db50772cff91b273f9a83b3850078 -> 9559bc027e9de4e942b2b791b3b3c8d7
      4-1.jpg - checksum changed: c7f5cc63c3712d6cc107e976d3678fca -> 1a01d4a0d05dcae0f41cb79ab7c06c05
      5-1.jpg - checksum changed: 7d80e362a55013d18294034eb3f9ce80 -> df55a25e49dddb8d93f5528d26238cb3
bennord commented 3 years ago

I think this is because the downloaded assets are still processed by the app store, even when downloading the same resolution as the original uploads. If you have the original files that you uploaded, then those should match.

bennord commented 3 years ago

So, if you download them using this tool then it will need to upload them once before the checksums match.

luke14free commented 3 years ago

~Something very weird happened by running this on a different python interpreter (3.9). Now it matches most of the checksums (except for videos, for which you download the m3u) 😱.~ ah no, it actually looks like it was able to recover something from previous runs