ci(macos): restore LibTorch.framework's symlinks before signing

torch_dart's prebuilt tarball stores the framework's Versions/Current,
top-level binary and Resources as copies of Versions/A, and codesign
refuses the result as an ambiguous bundle, failing the app's signature.
relink_framework.sh puts the three symlinks back, after checking that
every copy it replaces matches Versions/A byte for byte.
This commit is contained in:
jwinterm
2026-10-27 15:34:33 -04:00
parent 6bd8f64ed7
commit bf7a47becd
2 changed files with 52 additions and 0 deletions
+4
View File
@@ -169,6 +169,10 @@ jobs:
tar -xzf torch_dart.tar.gz -C torch_dart
rm torch_dart.tar.gz
popd
# The tarball is packed on Linux with the framework's symlinks stored
# as copies, which codesign refuses as an ambiguous bundle.
scripts/macos/relink_framework.sh \
scripts/torch_dart/macos/LibTorch.xcframework/macos-arm64_x86_64/LibTorch.framework
- name: Fetch prebuilt reown_flutter
run: |