Create npm prefix

This commit is contained in:
Antoine Martin 2023-05-03 14:47:18 -04:00
parent 07d8d796fe
commit 3b27a762af

View file

@ -27,12 +27,14 @@ prepare() {
default_prepare
sed -i "s|@electronversion@||" ../trilium.sh
mkdir -p "$srcdir/node_modules/lib"
}
_trilium_desktop_src_dir=./dist/trilium-linux-x64-src
build() {
export npm_config_cache="$srcdir/npm_cache"
export npm_config_prefix="$srcdir/node_modules"
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
npm install --build-from-source