jborean93 / omi

Open Management Infrastructure
Other
111 stars 13 forks source link

can the Mac dylib be packaged and distributed with brew? #5

Closed TheBigBear closed 4 years ago

TheBigBear commented 4 years ago
SUMMARY

What are the exact manual steps required to get latest powershell-core to work using the re-compiled dylib from this project? What effort would be involved in packing this up for brew distribution?

LIBMI VERSION
OS / ENVIRONMENT

Mac OS Catalina fully patched

jborean93 commented 4 years ago

If you are on Catalina you can use the .dylib that's part of the release tag https://github.com/jborean93/omi/releases. You simply copy the dylib to the PowerShell install dir which IIRC is /usr/local/microsoft/powershell/7/libmi.dylib on macOS. I'm unsure if you can use the same binary on older versions of macOS due to ABI changes. In those cases I recommend you use ./build.py macOS to build your own version.

As for brew, I'm unsure what the process would be. I'm sure it would have to be a change in the powershell formula but even then I would be reluctant to include this without making sure it won't affect older versions.

jborean93 commented 4 years ago

Closing as I believe that answers your question.