Create npm prefix
This commit is contained in:
parent
07d8d796fe
commit
3b27a762af
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue