【发布时间】:2017-04-10 05:36:24
【问题描述】:
我们有一个旧版本的应用程序已使用 Thawte SHA 256 证书成功进行代码签名。此证书已过期,我们现在正在使用新证书。
当用户从旧版本的应用升级到最新版本时,会遇到这个错误: 重新安装应用程序可以解决问题,但我们需要更专业的解决方案。
我使用以下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."
【问题讨论】:
标签: macos actionscript-3 flash air flash-builder