Skip to content

fix(v0.4.16): pkg lipo 覆盖 .dylib(ARM 真机托盘打不开修复)+ 版本 bump 0.4.16 - #94

Merged
liwmj merged 2 commits into
masterfrom
fix/v0.4.16-pkg-dylib-lipo
Aug 25, 2026
Merged

fix(v0.4.16): pkg lipo 覆盖 .dylib(ARM 真机托盘打不开修复)+ 版本 bump 0.4.16#94
liwmj merged 2 commits into
masterfrom
fix/v0.4.16-pkg-dylib-lipo

Conversation

@liwmj

@liwmj liwmj commented Aug 25, 2026

Copy link
Copy Markdown
Owner

背景

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 托盘不出现。

修复

  • build_pkg.sh lipo 条件扩展:find "$VENDOR" \( -name "*.so" -o -name "*.dylib" \) -type f → .dylib 也做 lipo 合并,单 pkg 通吃 Intel/ARM
  • 版本全量 bump 0.4.15 → 0.4.16(pyproject / init / build_deb.sh / ghlink.iss)

验证

  • 本地拆包确认:v0.4.15 pkg 内 168 个 .so 全 FAT(2),但 18 个 .dylib 全是 THIN x86_64(实锤)
  • 修复后需 CI 重新构建 pkg,李工 ARM 真机验证托盘 + Cask 安装

链路

tag v0.4.16 → build.yml → pkg(.so + .dylib 双架构)→ Release + PyPI 自动发布

@liwmj
liwmj force-pushed the fix/v0.4.16-pkg-dylib-lipo branch from 4336c5e to 7a3800d Compare August 25, 2026 10:45
@sonarqubecloud

Copy link
Copy Markdown

@liwmj
liwmj merged commit cfc2974 into master Aug 25, 2026
6 checks passed
@liwmj
liwmj deleted the fix/v0.4.16-pkg-dylib-lipo branch August 26, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants