Closed ReverseControl closed 4 years ago
nsis is required because it's used by OpenVPN's build process to build the Windows installer.
I want the full build to still be both Linux and Windows and to fail if either one doesn't succeed, but I'll add command line parameters to allow skipping one or the other when doing private builds. I've opened #16. nsis wouldn't be required when skipping the Windows build. In the meantime, you can comment out the call to build_openvpn_windows()
at the bottom of build.py
and that will skip the Windows build.
Based on your output, there are some dependencies that don't appear to be installed that are installed by the gcc-mingw-w64
package on Ubuntu. Since Alpine isn't one of our targeted build platforms I'm not going to investigate this further. If you want to investigate and submit a PR to add the necessary dependencies to build.py
I'd be happy to take it.
Yes, that appears to be the case, mingw is missing things. Also, nsis is a pain to install in alpine. I will skip the windows build for now in alpine, but it seems doable with some manual careful building of dependencies.
Otherwise, it builds fine. Thanks for the command line option. It is much better to have that then it is to edit the code, as building docker containers is more friendly to command line options. :D
I tried building in a docker container and I get this error following the instructions on the readme for the new branch. Since I am building in Linux the build should not fail if the windows-building-process fails.
Also, is nsis really required? Can we get rid of it? :)
Edit 1: I build on alpine base image, not ubuntu or the one in the repo.
Error message