appcenter-cli: Incremental updates via CodePush not working

I have been trying to test the incremental updates via CodePush for our app and it seems to not work for me. From what I understand, CodePush only downloads the files that have actually changed between 2 updates. However, whenever I test this, I see the entire www directory being downloaded everytime.

I have an app that is quite big - around 300MB. I tried to first run the app, then change 1 file and push an update to codePush as v1 and then change the same file again and push another update to codePush as v2.

I found that the app detected the updates correctly on both occasions. However, on both updates, the update.zip file that got downloaded contained the entire www directory contents. On both occasions, I used the command “appcenter codepush release-cordova -d Production” to generate the releases and on both occasions the console showed that the file change was picked up correctly: Merging and updating files from [www, platforms/ios/platform_www] to platforms/ios/www copy www/index.html platforms/ios/www/index.html (updated file)

Can someone explain how can I get the incremental updates to work?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Hi @sergey-akhalkov,

After doing countless tests with various combinations, I finally found the problem! I had a file in my repo which was named “Australia_–_Land_of_Tomorrow_poster.jpg”. Notice that the hyphen ‘-’ is not the regular dash character but an em dash or en dash. It was due to this filename that the diff process must be crashing and I always got the full package. Once I changed the filename, it all started working fine.

So now, I have 3 questions:

  1. Why would a special character in the file name cause the package diff to not work?
  2. Are there any other rules around filenames that we need to be aware of?
  3. Is there a way to show such errors somewhere so as developers we can find and fix such issues faster?

Thanks for your help!