prebuild / prebuild

A command line tool for easily doing prebuilds for multiple version of node on a specific platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the meaning of "a" in `--include-regex "\.(node|a)$"`

Leslie-Wong-H opened this issue · comments

Context:
Try to add Windows support back to this fork of opencv4nodejs
Since the original windows-2016 is no longer available at GitHub actions, use windows-2019 to target nodejs 16 and 18.
Yet keep stuck in the publish step. https://github.com/Leslie-Wong-H/opencv4nodejs/actions/runs/4752357606/jobs/8442612069

Installing prebuilt OpenCV v4.1.1-7 for platform win32
Done.
'a' is not recognized as an internal or external command,
operable program or batch file.
Error: Process completed with exit code 255.

image

No idea where "a" is coming from, probably "--include-regex".

Fire an issue here to get some hints, hopefully.

It looks like the regex will need to be correctly quoted/escaped for use with the Windows command line, otherwise Windows will treat a as a command to run.

It might be easier to create a .prebuildrc file when working cross-platform, e.g. https://github.com/lovell/sharp/blob/main/.prebuildrc

I hope this information helped. Please feel free to re-open with more details if further assistance is required.