由于安装程序文件已损坏,无法安装应用程序。尝试从应用程序作者处获得新的安装程序文件

问题描述:

我们的应用程序的旧版本已成功使用Thawte SHA 256证书进行代码签名。这个证书过期了,我们现在正在使用一个新的证书。由于安装程序文件已损坏,无法安装应用程序。尝试从应用程序作者处获得新的安装程序文件

enter image description here

当从旧版本的应用程序到最新的用户升级,他们会遇到这样的错误: 重新安装应用程序得到解决这个问题,但我们希望有一个更专业的解决方案。

我用下面的shell脚本上签字,这似乎成功运行,但我仍然得到错误

if (($# < 1)) 
then 
echo "Usage: $0 version" 
exit -1 
fi 
echo "Fixing file permissions..." 
chmod a+x bin-debug/bin/SWC 

echo "packaging Air file for mac..." 
cd bin-debug 

/Volumes/Macintosh\ HD/Users/Shared/flex_sdk_4.6/bin/adt -package -storetype pkcs12 -keystore ../../../thawte\ certificates/airSigningBackup2018.p12 -storepass myPassword -target air ../SW_Desktop_mac.air DieBook-app.xml DieBook.swf bin/SWCM bin/SWCMLE builddate icons 
cd .. 

/Volumes/Macintosh\ HD/Users/Shared/flex_sdk_4.6/bin/adt -migrate -storetype pkcs12 -keystore ../../thawte\ certificates/airSigningBackup2016.p12 -storepass myPassword SW_Desktop_mac.air SW_Desktop_mac_migrated.air 

/Volumes/Macintosh\ HD/Users/Shared/flex_sdk_4.6/bin/adt -package -target native SWD_$1.dmg SW_Desktop_mac_migrated.air 

echo "SWD_$1.dmg should be ready now." 

至于我记得,这个问题发生在你有相同的多个版本应用程序安装了相同的版本号。我不记得它的版本号是多少,但我确定它是XML中的唯一标识符之一。所以每个新版本都要更改这个标识符,一切都应该很好。