Explicity copy node_modules for the CLI version

Fixes #31
main
Alfredo Palhares 2019-09-10 15:31:44 +01:00
parent c779d8abb4
commit c0c7e5215e
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,6 @@ build() {
cd "${srcdir}/${pkgname}-${pkgver}/CliClient/build/"
# NOTE: Manually forcing sqlite 4.0.7 for node v12, remove later on
npm install sqlite3@4.0.7
npm install
# Electron App
@ -62,6 +61,8 @@ package() {
cp -R "${srcdir}/${pkgname}-${pkgver}/CliClient/build/"* \
"${pkgdir}/usr/share/${pkgname}-cli"
cp -R "${srcdir}/${pkgname}-${pkgver}/CliClient/node_modules" \
"${pkgdir}/usr/share/${pkgname}-cli"
cp -R "${srcdir}/${pkgname}-${pkgver}/ElectronClient/app/dist/linux-unpacked/"* \
"${pkgdir}/usr/share/${pkgname}"