• AnyOldName3@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    5 hours ago

    You can’t. Blocking commercial use stops a licence being open source. If you don’t want commercial competition, then you need copyleft, so anyone using your code has to share their modifications with whoever they give binaries to. If they end up using your code to make a better product, then it’ll have to be open source, too, and you can incorporate the improvements back into your version.

    • foremanguy@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      4 hours ago

      Maybe I’m wrong but they are many type of “open-source” licenses, sure they do not respect the GNU Open Source but they are pretty reasonable and I think that it exists license that do not allow you to use it for commercial uses

      EDIT : my bad, I’ve seen that making the commercial uses forbidden is no more open source license but CC-NC so you’re right :)