dev-cli icon indicating copy to clipboard operation
dev-cli copied to clipboard

oclif-dev pack to create a single executable file per distribution

Open fboucquez opened this issue 4 years ago • 1 comments

Hi team, amazing framework, tank you so much!

Is it possible to generate a simple executable file (like regular pkg does) instead of a tar file when running "oclif-dev pack". Atm, my clients running on an offline machine need to unzip it and run the executables that can be found inside the ./bin folder.

I would like to send them a .exe or a .bin file that they can just run.

Cheers Fernando

fboucquez avatar Jun 10 '21 15:06 fboucquez

@fboucquez on a quick thought, Did you try yarn oclif-dev pack:win? This creates exe fles in ./dist/win/

Similarly, try attempt yarn oclif-dev pack:macos and yarn oclif-dev pack:deb. I hope this helps.

The docos are not as good as the framework, I have started using oclif less than a week ago and can see how the docos are at times hard to interpret.

There is a package NSIS that I had to install on macos. The pack:win arg errored with this message so that i could make a win exe from a mac.

udaykor avatar Jul 17 '21 02:07 udaykor