This is what happens now: 1. Updates checked for in versino 0.0.1, says that 0.0.2 is available 2. The partial update downloads and applies as per above, and a restart is prompted 3. After restart, the old version is still running, and checking for updates downloads the full update 4. After restart, the full update installs and lands in Contents/MacOS/Contents/MacOS and Contents/MacOS/Contents/Resources etc, and the previous files are removed, thus leaving the app in a broken state, unable to run.
Running "cp -r Contents/MacOS/* ." from the .app directory unbreaks it and allows starting the new updated version of the app. For instance, here is the log of a very small partial update: SOURCE DIRECTORY /Users/motin/tmp/My App.app/Contents/MacOS/../Resources/updates/0 DESTINATION DIRECTORY /Users/motin/tmp/My App.app/Contents/MacOS UPDATE TYPE partial PREPARE PATCH Contents/Resources/chrome/app.jar PREPARE PATCH Contents/Resources/application.ini PREPARE ADD Contents/MacOS/libsoftokn3.chk PREPARE ADD Contents/MacOS/libnssdbm3.chk PREPARE ADD Contents/MacOS/libfreebl3.chk PREPARE PATCH Contents/Info.plist PREPARE ADD precomplete EXECUTE PATCH Contents/Resources/chrome/app.jar unable to open destination file: Contents/Resources/chrome/app.jar, err: 2 ### execution failed FINISH PATCH Contents/Resources/chrome/app.jar backup_restore: backup file doesn't exist: Contents/Resources/chrome/app.jar.moz-backup FINISH PATCH Contents/Resources/application.ini backup_restore: backup file doesn't exist: Contents/Resources/application.ini.moz-backup FINISH ADD Contents/MacOS/libsoftokn3.chk backup_restore: backup file doesn't exist: Contents/MacOS/libsoftokn3.chk.moz-backup FINISH ADD Contents/MacOS/libnssdbm3.chk backup_restore: backup file doesn't exist: Contents/MacOS/libnssdbm3.chk.moz-backup FINISH ADD Contents/MacOS/libfreebl3.chk backup_restore: backup file doesn't exist: Contents/MacOS/libfreebl3.chk.moz-backup FINISH PATCH Contents/Info.plist backup_restore: backup file doesn't exist: Contents/Info.plist.moz-backup FINISH ADD precomplete backup_restore: backup file doesn't exist: precomplete.moz-backup failed: 6 calling QuitProgressUI The DESTINATION DIRECTORY ought to be /Users/motin/tmp/My App.app Updates work fine on Windows and Linux. Any help appreciated! PS I tried with 17.0.1 but then the app fails completely with "Could not find the Mozilla runtime." regardless of what I do. Anyway I didn't find any update-related patches between 17.0 and 17.0.1 so I believe an upgrade to 17.0.1 wouldn't help anyway. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform