File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 90
90
}],
91
91
['OS=="mac"' , {
92
92
"include_dirs" : [
93
- "/usr/local/Cellar/ffmpeg@5/5.1.3/include/"
93
+ "/usr/local/Cellar/ffmpeg@5/5.1.3/include/" ,
94
+ "/opt/homebrew/Cellar/ffmpeg@5/5.1.3/include/" ,
94
95
],
95
96
"library_dirs" : [
96
97
"/usr/local/Cellar/ffmpeg@5/5.1.3/lib/" ,
98
+ "/opt/homebrew/Cellar/ffmpeg@5/5.1.3/lib/" ,
97
99
]
98
100
}],
99
101
]
Original file line number Diff line number Diff line change @@ -185,7 +185,8 @@ async function darwin() {
185
185
output = await exec ( 'brew list ffmpeg@5' ) ;
186
186
returnMessage = 'FFmpeg already present via Homebrew.' ;
187
187
} catch ( err ) {
188
- if ( err . stderr !== 'Error: No such keg: /usr/local/Cellar/ffmpeg@5\n' ) {
188
+ if ( err . stderr . indexOf ( 'Error: No such keg' ) === - 1 &&
189
+ err . stderr . indexOf ( 'ffmpeg@5' ) === - 1 ) {
189
190
console . error ( err ) ;
190
191
console . log ( 'Either Homebrew is not installed or something else is wrong.\nExiting' ) ;
191
192
process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments