Going deep into open source now we need to know what is the difference between open source and freeware then we can easily understand how does it work
so, Open source is not necessarily free, and freeware is not necessarily open source: the terms are not, in fact, mutually exchangeable. However, there's a good deal of overlap between the two, and that which is freeware may also happen to be open source.