Building a .deb file for BirdNET-Pi: questions & discussion #248
Replies: 3 comments 2 replies
-
It sounds like you're on the right path so far!
Definitely -- the way the templates are created now (I think) mirrors how a Note: It's not well documented, but if you just
and then copy the included
you can then edit
Yes, so long as the structure is still semantic. The symlinking that is used to build the webroot is really dumb and not user/developer-friendly, so truly I'm pretty open to any changes that improve readability and aid in development through semantic naming and intuitive structure whenever/wherever possible.
I do not yet have any plan in mind for where a
Not right now, but it should be easily implemented I would think. Adding one example file to the package, then placing it in the directory that is configured for 👍 👍 👍 |
Beta Was this translation helpful? Give feedback.
-
Awesome, that all makes a lot of sense to me. I'll keep plugging away at this, and look for small chunks along the way that can be submitted as standalone PRs...much better than some enormous dump of work. 😁 (One option for package hosting is Github itself: https://docs.github.com/en/packages. That might be the simplest way to get started once we get there.) |
Beta Was this translation helpful? Give feedback.
-
Another question: are you amenable to creating a separate user for running the BirdNETPi processes? Currently, the installation uses the account of the user running the install script; the usual way with packages is to create a new, purpose-specific user (though running as, say, With the default |
Beta Was this translation helpful? Give feedback.
-
Hi @mcguirepr89 -- I'm finally getting a chance to dig into how one might build a .deb file for BirdNET-Pi. Right now I'm considering this a spike/research; I'm working on a fork to see just how much work it would take to get a .deb going, how feasible it is, and so on After that, if things look reasonable, I'll figure out how to start submitting PRs.
Given that, there are a few questions I have so far:
scripts/install_services.sh
, thesystemd
unit files are being templated out and then symlinked into place. Are you amenable to breaking those out to template files within the repo (eg:systemd_templates/birdnet_recording.service
), then usinginstall_services.sh
to copy them into place (modified as needed)? This approach seems to be a better fit for .deb files.I'm sure I'll have more questions, but this ought to be a good start. 😀
Beta Was this translation helpful? Give feedback.
All reactions