Is there a reason to not license it under a dual license?
Have the source code open with a non commercial license and also distribute the binaries under a commercial license.
I’m not sure that it will have a significant impact on the revenue since most people would likely opt out and purchase the binary rather than building it on their own.