diff options
author | max ulidtko | 2020-11-16 15:12:50 +0200 |
---|---|---|
committer | max ulidtko | 2020-11-16 15:12:50 +0200 |
commit | 3b2837179b0a3df3083c32de04e0a919d4c766c2 (patch) | |
tree | 6635a33753fdcbce9e98b4a956d6feb3884eb4e6 | |
parent | 5c946fd75c0dbf8f83d78ad9ea1dc81ea123869b (diff) | |
download | aur-3b2837179b0a3df3083c32de04e0a919d4c766c2.tar.gz |
Fix ordering of node_modules fixup, should be after npm i
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 6 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = owasp-threat-dragon pkgdesc = Electron Threat Modelling and diagramming tool by Mike Goodwin @ OWASP pkgver = v1.2 - pkgrel = 2 + pkgrel = 3 url = https://threatdragon.org arch = any license = Apache-2.0 @@ -3,7 +3,7 @@ # Maintainer: Max Ulidtko <ulidtko@gmail.com> pkgname=owasp-threat-dragon pkgver=v1.2 -pkgrel=2 +pkgrel=3 pkgdesc="Electron Threat Modelling and diagramming tool by Mike Goodwin @ OWASP" arch=('any') url="https://threatdragon.org" @@ -36,8 +36,10 @@ pkgver() { prepare() { cd "$srcdir/${pkgname}" patch -p1 -i "$srcdir/relax-coverage-thresholds.patch" +} - # Removing local references +prune_absolute_paths() { + # somehow, sshpk package hardcodes absolute paths into its package.json for module in sshpk; do local target="node_modules/${module}/package.json" jq 'del(.man)' "$target" >tmp.json @@ -50,6 +52,7 @@ build() { npm install --no-audit --no-progress --no-fund npm install --no-audit --no-progress --no-fund \ electron@"$(</usr/lib/electron5/version)" + prune_absolute_paths npm run-script pretest npm run-script build-content npx electron-builder build --linux --dir \ |