folbricht / routedns

DNS stub resolver, proxy and router with support for DoT, DoH, DoQ, and DTLS
BSD 3-Clause "New" or "Revised" License
441 stars 62 forks source link

create goreleaser config to make building and releasing rouetdns packages easier #393

Open mattkeenan opened 1 month ago

mattkeenan commented 1 month ago

I have an initial configuration for goreleaser that I can contribute to make it easier to build binaries and packages. It is just a first version for the moment and doesn't include docs, systemd, sysv-init, etc files (which I can provider after the initial commits).

I'll create a PR for this issue as well.

mattkeenan commented 1 month ago

@folbricht i'll keep this issue open as i add further config changes for a better package.

to that end, what other files do you think we should include by default?

also, i run ubuntu, and have been using debian for a few decades, so i know how to make the deb packages reasonably compliant. but it's been a long long time since i've done active rpm packaging, so not only rusty but also plenty of changes no doubt. would you or anyone else on the team be able to sanity check our rpm packages?

i've also included windows and darwin (macos) in the build process by default.

mattkeenan commented 1 month ago

also, do you want me to create a base doc file for using goreleaser? aka goreleaser.md file with a brief explanation on how to use for not only us, but also in case end users want to use goreleaser for their own local purposes?

folbricht commented 1 month ago

Thanks for doing this. As for your questions:

mattkeenan commented 1 month ago

with the goreleaser.md file; i'll whip up a quick cheat sheet, and you can use it as a starting point for local testing as well as publishing.

As to the rpms sure, if you could test them that would be great.

Given that some of these changes might possibly overwrite (depending on the user's distro / settings) previous local configuration that someone made by hand before installing the package would you prefer to test this on a separate branch before merging to main?

folbricht commented 4 weeks ago

Sounds great. I don't think we need a separate branch for testing.