Open chjan opened 2 years ago
The current version has to run under Windows. This is because the plugin is based on the NSIS, which to my knowledge also only runs under Windows. I might be wrong, but at least the current version of the plugin uses some EXEs which are automatically copied to a temporary folder and called. The idea of the project was to make the gradle plugin completely self-contained in order to be able to integrate it as an automatic build script (nightly builds, automatic builds after a commit, etc) in Github (and similar environments). Github offers to choose the OS of the server which runs the build script. I am not sure if Wine or similar might do the job if you want to run gradle locally on your Mac. I am not a Mac user, thus, I can give little support. If you get it to run, I would however be grateful if you provide details on how you did so.
Thanks. I discovered yesterday MAKENSIS which i therefore installed. it might be worth spending 5 minutes looking into how that mac version of nsis could work with your plugin? how to replace your use of exe with a mac alternative and make it work?
I am traditionally a win user too, but made a switch to mac last year. However, this macbook pro 15.3" 2019 model is also running Windows side by side with mac os. This machine is, by far, the best ever Win10 machine I ever had! For example, no fan, and no penalties whatsoever. Recommended. Both operating systems are running in paralell if I want to, and to switch between them is just a 4 finger swipe on the touchpad. Quite amazing. (I have some programs that could not be ported to mac so need both operating systems in a weekly fashion)
My intention is as you outline, to fully automate everything in the production process, but this is still a kindergarten if you look to jpackage etc, you need to BE ON the operating system for which you want to generate the product. Annoying lack of obvious (and not that hard to do) functionality to be able to produce in a cross platform manner. But the alternative is then to create one build per operating system, however, with a strong preference to do everything on a chosen operating system, not switch to and from because it is tedious and more complex to keep track of everything.
FWIW, makensis is available for Linux and macOS as well.
See, for example, for Ubuntu: https://packages.ubuntu.com/hu/focal/nsis
And for macOS, via Homebrew: https://formulae.brew.sh/formula/makensis
This plugin works great for our "local dev" environment which consists of a Windows laptop per developer. We'd REALLY love to use it in our CI environment (Linux workers running in a GitLab instance) though. So, this issue is blocking us from (fully) adopting an otherwise super helpful plugin.
Looking good!
Can this NSIS plugin be used on a Mac Os? I am using Mac, but produce installers also for Win and Linux.