SavageCore / node-ffprobe-installer

Platform independent binary installer of FFprobe for node projects
https://www.npmjs.com/package/@ffprobe-installer/ffprobe
73 stars 29 forks source link

custom target faild #228

Open blogwy opened 2 years ago

blogwy commented 2 years ago

My computer is mac intel and I want to build mac arm platform. I have tested the following two npm commands, both are installed on the mac x64 version of ffprobe. I see that the source code has the operation of reading environment variables inside, I don't know why this problem occurs?

cmd:

"scripts": { "test": "cross-env npm_config_platform=darwin npm_config_arch=arm64 npm i @ffprobe-installer/ffprobe", "build": "rm -rf ./release/app/node_modules && electron-builder build --darwin --arm64" },

Sent from PPHub