-
Notifications
You must be signed in to change notification settings - Fork 56
Add custom build options to pack #34
Comments
There is no support for building the CLI on windows and right now I don't have any plans to change that (they're all written in bash). EDIT: sorry I actually read what you wrote (just woke up 😫). I think we'd need to add some kind of step to run postinstall. Maybe in the package.json scripts? |
First I was just thinking I could run |
A hook might be better here. We do have the |
So, rebuilding is not possible if we don't have npm installed on the machine? Yarn also offers no rebuild capabilty (yarnpkg/yarn#756). I currently see two options:
I think I will try to do the rebuild manually before I |
We don't ship with yarn or npm. I would not recommend that approach as your users will need to also have all the dependencies installed to compile the code. I think you'll need to do something like have the prepare step of your CLI compile for the different targets. |
Something would need to be added here I think: https://github.com/oclif/dev-cli/blob/master/src/tarballs/build.ts#L88 It could run whatever is in the I'm not sure which is better right now |
I am using macos and building an installer for windows. One of my dependencies is
grpc
which uses binary modules.Installing and running the cli on a windows computer results in
Failed to load gRPC binary module because it was not installed for the current system
, which could be fixed with rebuilding it for windows (https://stackoverflow.com/questions/47979568/aws-lambda-error-failed-to-load-grpc-binary-module-because-it-was-not-installed).Is it possible to add an option that somehow triggers the rebuild?
The text was updated successfully, but these errors were encountered: