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

一、下载Releases · blogwy/ffprobe-static-installer

二、文件复制到: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
相关推荐
专业抄代码选手1 小时前
01|从手写 DOM 到虚拟 DOM:把 UI 从“操作”变成“描述”
前端·javascript·react.js
喜欢睡觉1 小时前
单词管理系统
前端·后端
YHL1 小时前
向量数据库入门(二):Embedding → 语义搜索 → RAG 日记助手
前端·架构
码视野1 小时前
基于 Vue3 + Element Plus 的【青少年心理健康智能测评与 AI 情绪树洞陪护干预系统】设计与实现(含PRD/三端源码/大屏)
前端·vue.js·人工智能·vue3
专业抄代码选手1 小时前
03|React 为什么需要协调:比较两棵树,而不是重建页面
前端·javascript·react.js
灯澜忆梦1 小时前
【基于GO的Web开发11】gin获取URL‑Path 路径参数
前端·后端·golang·html·gin
王霸天1 小时前
GLB 文件太大怎么办?我把它从 47MB 压到 8MB,全程没碰命令行
前端·javascript·程序员
半个落月1 小时前
Next.js 16 笔记应用实战:Redis 数据链路与组件两版拆分详解
前端·redis·next.js
YIAN1 小时前
告别等后端!React+Vite 前端独立开发全流程:接口封装 + Mock 方案 + 状态管理
前端·react.js·vite