DevMate / DevMateKit

Development and Distribution Assistance Platform for Mac Developers
https://devmate.com
21 stars 3 forks source link

Failed for manual update #30

Open jeffwubj opened 6 years ago

jeffwubj commented 6 years ago

With latest devmate, I have uploaded the 3rd version of App, and use 2rd version app to update, after download, click OK to install the update bundle, I will get below error: "An error occurred while extracting the archive. Please try again later." I have tried many times with different Mac, any thing can I do to make it work?

jeffwubj commented 6 years ago

any one can help me on this ? thanks

dimaty commented 6 years ago

Check the log file for updated (Sparkle one):~/Library/Logs/SparkleUpdateLog.log for non-sandboxed apps and same path in your app container (.../Library/Logs/SparkleUpdateLog.log) for sandboxed apps. There should be more info about the reason of update failure.

jeffwubj commented 6 years ago

The app is sandboxed, I'm using dmg as release file, the log shows:

2018-03-23 07:57:47 +0000: Extracting /Users/xxx/Library/Containers/com.xxx.xxx/Data/Library/Caches/com.xxx.xxx/Sparkle/xxx 1.2.6/xxx-1.2.6.dmg as a DMG
2018-03-23 07:57:47 +0000: Couldn't copy volume content: 4007 - Source does not exist on disk.
2018-03-23 07:58:49 +0000: Error: An error occurred while extracting the archive. Please try again later. (null) (URL (null))

I can find the cached dmg file under container folder and can manually open that dmg file to get app file.

When I disable sandbox for the version that will be upgraded, then it will success (target version is still sandboxed)