Closed mklinke closed 5 months ago
Is there any workaround for this issue? I'm also using winax in monorepo based on rushstack and it would be great to at least have a possibility to install winax on other environments
No, Windows API is needed
пт, 2 июл. 2021 г. в 19:36, deelef @.***>:
Is there any workaround for this issue?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/durs/node-activex/issues/89#issuecomment-873122779, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEMMNJXMDQDCZLSXU64AJDTVXTIJANCNFSM4XM75U2Q .
Even though the Windows API is needed, it would be very helpful if the package could still be installed independently of the current OS, for example to support monorepo builds where a single package.json is used and not all dependencies are needed all the time.
FWIW, we have created a custom build to remove the OS restriction and do a check during runtime instead.
Same here. Any progress? We want to build Electron only for Windows but have to build the app on Linux :(
Background
Our developers and CI/CD pipeline use different platforms (Windows, Linux, Mac) for working in a monorepo based on nx. Due to this, we have a single
package.json
with all dependencies.Problem
After adding winax as a dependency,
npm ci
fails on platforms other than Windows, because it cannot build the native binaries usingnode-gyp
:Proposal
It would be great if the winax package could include prebuilt binaries for Windows.
For example, the ffi-napi project includes those binaries and we can at least install the packages on other platforms and even do a build that can be used on Windows. FWIW, they are using prebuildify to build the Windows binaries in an Appveyor build.