跳转到主要内容

Mach-O胖二进制写入器

项目描述

fat-macho

GitHub Actions PyPI

Python对fat-macho Rust包的封装。

安装

pip install fat-macho

使用

生成Mach-O胖二进制文件

from fat_macho import FatWriter


writer = FatWriter()
with open("x86_64_thin_file_path", "rb") as f:
    writer.add(f.read())
with open("arm64_thin_file_path", "rb") as f:
    writer.add(f.read())
# Get Mach-O fat binary as bytes
fat_bytes = writer.generate()
# Write to file
writer.write_to("fat_file_path")

许可证

本作品按MIT许可证发布。许可证的副本包含在LICENSE文件中。

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面