我已经录制了 SkSl 脚本来预热着色器。我使用此构建选项将其应用于我的 Flutter 应用程序的发布版本:
flutter build appbundle --release --bundle-sksl-path flutter_01.sksl.json
它工作得很好,但是当新的 Flutter 版本发布时它停止工作。在这种情况下,我有一个错误:
Expected Flutter b8752bbfff0419c8bf616b602bc59fd28f6a3d1b, but found 2c956a31c0a3d350827aee6c56bb63337c5b4e6e
The SkSL bundle was produced with a different engine version. It must be recreated for the current Flutter version.
我想在不构建我的发布应用程序的情况下检测此错误(作为 CI 的合并检查)。
问题:有可能吗?