资讯中心

electron打包mac ,apple m4出错:ffprobe是x86,不是arm64

📅 2026/9/24 12:49:58
electron打包mac ,apple m4出错:ffprobe是x86,不是arm64
一、下载Releases · blogwy/ffprobe-static-installer解压gunzip -c darwin-arm64.gz ffprobe二、文件复制到node_modules/ffprobe-static/bin/darwin/arm64/ffprobe# 3. 设置权限 chmod 755 node_modules/ffprobe-static/bin/darwin/arm64/ffprobe # 4. 对下载的文件移除隔离属性 xattr -d com.apple.quarantine node_modules/ffprobe-static/bin/darwin/arm64/ffprobe # 5. 验证架构 file node_modules/ffprobe-static/bin/darwin/arm64/ffprobe三、测试执行codesign --sign 53DFA9FC3CAC8AC84EA8B216D95F47E04016CD9E --force node_modules/ffprobe-static/bin/darwin/arm64/ffprobe

看完文章,想为自己的企业也做一次专业网站诊断?

尧图顾问免费为您评估现有网站,并给出建站/改版建议与报价方案。

免费获取方案