fix(v0.4.16): pkg lipo 覆盖 .dylib(ARM 真机托盘打不开修复)+ 版本 bump 0.4.16 - #94
Merged
Conversation
liwmj
force-pushed
the
fix/v0.4.16-pkg-dylib-lipo
branch
from
August 25, 2026 10:45
4336c5e to
7a3800d
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



背景
v0.4.15 pkg 在 ARM Mac 上托盘打不开(昨天 Intel 测试通过,今天 ARM 暴露)。根因:build_pkg.sh 的 lipo 合并只匹配
*.so,Pillow 的.dylibs/动态库(libtiff.6.dylib 等 18 个)只取了 x86_64 slice,未合并 arm64 → ARM 机器 dyld 加载_imaging.so的 arm64 slice 时找不到 arm64 的 libtiff → ImportError → HAS_TRAY=False 托盘不出现。修复
find "$VENDOR" \( -name "*.so" -o -name "*.dylib" \) -type f→ .dylib 也做 lipo 合并,单 pkg 通吃 Intel/ARM验证
链路
tag v0.4.16 → build.yml → pkg(.so + .dylib 双架构)→ Release + PyPI 自动发布