node-screenshots icon indicating copy to clipboard operation
node-screenshots copied to clipboard

Mac打包问题

Open ByLiangCheng opened this issue 1 year ago • 0 comments

由于我是基于Electron开发,打包时是做跨平台分发

当在Mac环境下打包arm64和64两个版本的包时,有这么一个问题:

我的Mac电脑是M1的芯片,打包后的文件为:node-screenshots.darwin-arm64.node,这种情况下是没错的

但是当我需要打包64位版本时,打包后出现的也是node-screenshots.darwin-arm64.node

我现在的解决办法时在windows的虚拟机上部署了mac系统,然后在虚拟机内打包的64位

而如果在虚拟机内打包arm64时,打包后出现的也是node-screenshots.darwin-64.node

ByLiangCheng avatar Jun 25 '23 15:06 ByLiangCheng