Hacker News new | ask | show | jobs
by 0des 1663 days ago
> if you install something I wrote, you get the source code whether you want it or not. Setup.exe basically dumps a copy of my development directory into the specified installation folder.

This is really cool, can you share a bit about how you do this? Are you using a makefile and putting a gzip as an embed into the setup? Is this a function of the installer you're using? Thanks for any insight.

1 comments

Not a whole lot to it. I just add the makefile, .cpp and .h files, Windows resource script, and other sources to the .iss file that Inno Setup uses to generate the setup program. They all get dumped in the same directory at installation time, for better or worse.

In the case of one commercial application, there are also binary blobs in the form of DLLs that support custom hardware.

It's not one of those practices that scales particularly well, but it works for me...

Seems to me like the fact it doesn't scale is why you do it. It's a decent way to avoid the responsibilities of having to lead an open source project while still giving others the benefits of having the source code available and modifiable. I wish more devs would do this.