dragonfly icon indicating copy to clipboard operation
dragonfly copied to clipboard

implement creation of deb package via cmake

Open romange opened this issue 3 years ago • 9 comments

part of much bigger #237

a pretty extensive blog post guides on how to build debian packages. Also https://earthly.dev/blog/creating-and-hosting-your-own-deb-packages-and-apt-repo/ but it does not use cmake.

no need to host or build a repo, just to make sure we can build the deb using cpack -G DEB. The goal at this point is to release deb via our release pipeline on github. cmake is just one challenge. another (minor) one - installing the dragonfly will require a systemd service script.

romange avatar Aug 20 '22 14:08 romange

I can take a crack at this one, but I won't have time to start on it for the next 3 or 4 days

acheevbhagat avatar Aug 25 '22 11:08 acheevbhagat

thanks Acheev, much appreciated. and it's not urgent at all.

romange avatar Aug 25 '22 11:08 romange

hi @acheevbhagat, are you planning on working on this?

romange avatar Sep 08 '22 05:09 romange

Ah yes I am. Truthfully, I forgot I had put my name on this issue. Thank you for reminding me, I am still planning on doing this.

acheevbhagat avatar Sep 08 '22 12:09 acheevbhagat

Well, now you are officially assigned 😆 I will keep reminding you from time to time ;)

romange avatar Sep 08 '22 12:09 romange

Just wanted to drop a small update I have created a packing.cmake file to generate the deb package, and it seemingly works installing to my vm, but I want to do some more testing and make sure it's actually working properly + learn some more about cpack to make sure I'm doing things right + create the systemd script I have the changes on my fork if you care to check them out, and if you want me to put up a wip pr I can do that too

acheevbhagat avatar Sep 12 '22 01:09 acheevbhagat

Thanks, Acheev. I actually do not know myself how to generate the deb package, so at this point you already know better than me. I trust you do the necessary checks. Shoot the PR afterwards! :)

romange avatar Sep 12 '22 08:09 romange

If you'd rather use some simple Bash scripting, makedeb could provide a quick and easy way to make the package. It's a project I'm the lead for, but it's already seen some adoption and success among some big projects.

Any thoughts?

hwittenborn avatar Oct 17 '22 14:10 hwittenborn

I do not know enough to say why either option is better. Currently, I just do not have time to learn the domain, waiting for the team to grow and then the task owner will decide.

romange avatar Oct 18 '22 11:10 romange

The first PR will only include the required files/scripts to generate the packages. The second PR will include the changes to the git workflow so that we would generate a version automatically from git actions.

boazsade avatar Jan 16 '23 13:01 boazsade

We now have deb packages for x86 as well as ARM

boazsade avatar Feb 08 '23 08:02 boazsade