apache / cloudstack-cloudmonkey

Apache Cloudstack Cloudmonkey
Apache License 2.0
91 stars 60 forks source link

How to run a cross-platform build? #142

Closed synergiator closed 9 months ago

synergiator commented 9 months ago

AFAIK Golang is capable of creating a cross compilation as one-shot run.

Is it possible to take the main branch and use e.g. official Golang Docker container to create a Windows executable?

rohityadavcloud commented 9 months ago

Hi @synergiator that's correct, our build script uses go on whatever platform to build Windows executable: https://github.com/apache/cloudstack-cloudmonkey/blob/main/Makefile#L62

You can run make all and get the platform specific binaries from the dist directory when building from source code - https://github.com/apache/cloudstack-cloudmonkey#development

Hope that answers your question, if it doesn't and you've any issue to report you may re-open the ticket. Thanks.

synergiator commented 9 months ago

@rohityadavcloud thank you - I see now my problem. For some reason, I thought, that "make all" would include also Windows distributables.

However, for that purpose I had to type:

make dist
rohityadavcloud commented 9 months ago

Thanks @synergiator - I've updated the README now https://github.com/apache/cloudstack-cloudmonkey/blob/main/README.md#development to advise on make dist