All of lore.kernel.org
 help / color / mirror / Atom feed
* Installing a .deb produced by npm during build
@ 2021-07-08 21:08 bernhard
  0 siblings, 0 replies; only message in thread
From: bernhard @ 2021-07-08 21:08 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1843 bytes --]

Hi,

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:
https://github.com/votingworks/kiosk-browser

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,
Matt

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://github.com/votingworks/kiosk-browser.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

RDEPENDS_${PN} = "\
    bash \
"

DEPENDS = "\
    libusb \
    dpkg \
"

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

EOF

[-- Attachment #2: Type: text/html, Size: 2410 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-08 21:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-08 21:08 Installing a .deb produced by npm during build bernhard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.