I've asked this on StackOverflow proper and while I hate to feel like I'm spamming questions, I wonder if this might be the more appropriate place to get a good answer.
I've got this very simple NPM package that I'd like to have installed as a service on my company's development machines. I'd like to make this service available in the package managers that are commonly used on each OS used by our team, so that I don't have to ask people to screw around with file system permissions, service managers, and so forth.
I found this for Homebrew which was super helpful in getting this tap together, but I've been completely unable to find anything about how to set up a similar PPA for installing on Ubuntu. Ultimately, it seems like it just needs to copy my node script and its node_modules
folder into a subfolder in /usr/share
, create a system user specifically for running this service, and create a Unit file for systemd
to start and stop the service as this user. I'm able to put all this stuff in place manually with relative ease, but it would be nice to be able to tell the other developers at my company that they can just add a PPA and run sudo apt install graphql-playground-server
.
I've found node-deb which creates a .deb
package that I can install with dpkg
just fine, but PPA's do not allow uploading of pre-built .deb
packages. So it seems that I need to create something like node-deb that will produce something I can actually upload to a PPA with dput
.
Unfortunately, I have found this documentation to be incredibly confusing and I've spent the better part of the past two days tearing my hair out trying to make any progress at all. It kind of blows my mind that I can't seem to find a more straightforward guide to doing this.
Any help would be appreciated. I realize I am no Ubuntu expert by any means, so I'm well aware this could be a very stupid question with an easy answer somewhere on the web, so I'd be happy to be pointed in the right direction if so. :)
I am using Linux Mint 19.3 with the Cinnamon desktop.