Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winexe for MACOS? #12

Open
omairnabiel opened this issue Jun 29, 2020 · 3 comments
Open

winexe for MACOS? #12

omairnabiel opened this issue Jun 29, 2020 · 3 comments

Comments

@omairnabiel
Copy link

Looking at the lib code couldn't find anything for macos. Are there any workarounds for it to work on macos (Catalina)?

@NetBUG
Copy link

NetBUG commented Jun 29, 2020

Hi @omairnabiel ,
The library was intended to be run from shared servers in the infrastructure which typically operate Debian or CentOS.

I had success ~2 years ago building Winexe (https://sourceforge.net/projects/winexe/) under OS X 10.14. It required Samba4 source package and some patches, but ultimately we decided that the portability was not the main feature for it.

I would suggest you using Docker and use full image (i.e. not Alpine) as the first layer, as they are Debian based. I would be glad to see your PR if you succeed with it
If not, I can have a look next week

@omairnabiel
Copy link
Author

Hi @NetBUG

As a workaround I ran my app (which uses winexe) in a Docker container with the full image and it works fine.

I tried experimenting a bit. The best I could do, Installed winexe using homebrew, then picked the binary file, put it in the bin folder of winexe and then added

if (process.platform == 'darwin') {
this.winexe = path.join(__dirname, '..', 'bin', 'winexe_mac'); // binary I downloaded from Homebrew
}

The problem this didn't work was winexe itself. It didn't even work if I used winexe directly from terminal, so I had to switch to locally using docker for development.

@omairnabiel
Copy link
Author

@NetBUG Any luck?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants