【问题标题】:The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author无法安装应用程序,因为安装程序文件已损坏。尝试从应用程序作者处获取新的安装程序文件
【发布时间】: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


    【解决方案1】:

    据我所知,当您安装了同一应用程序的多个版本且版本号相同时,就会发生此问题。我不记得它是否是版本号,但我确定它是 XML 中的唯一标识符之一。因此,对于每个新版本更改该标识符,一切都应该很好。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-31
      • 2018-05-22
      相关资源
      最近更新 更多