Installing a .deb produced by npm during build

Matt Bernhard


I've been struggling to add a debian package to my build. I'm trying to build this app and install it on the target:

It's a node app built with yarn, and I've found the instructions in the manual to be a bit off the mark for what I'm trying to do. I want to:
  1. Fetch and build the app using its own makefile
  2. Install the output debian package in the target during buildtime
My recipe is below, but as best I can tell all it does right now is package the source directory and put it on the image. DPKG reports that it's installed, but I can't seem to run the app. I'm sure I'm confused a bit about the build process, and perhaps I'm not invoking a task when I should?

Any pointers would be greatly appreciated.

All the best,

P.S. Here's the recipe:

# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)

SUMMARY = "Generic kiosk-mode browser."
# WARNING ommitted for brevity ...

LICENSE = "Unknown & MIT & ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e49f4652534af377a713df3d9dec60cb \
... Licensing stuff that I'm omitting for brevity ... file://node_modules/xrandr-parse/package.json;md5=671eb8501a73fbcd413813c4832bb560" SRC_URI = " \ git://;protocol=https \ npmsw://${THISDIR}/${BPN}/npm-shrinkwrap.json \ " # Modify these as desired PV = "1.0.0+git${SRCPV}" SRCREV = "c85708f50747c595878d4bc6da6edf72203f87ae" S = "${WORKDIR}/git" inherit npm

bash \

libusb \
dpkg \
" LICENSE_${PN} = "Unknown"
... Licensing stuff that I'm omitting for brevity ...

Join to automatically receive all group messages.