mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-07 21:39:48 -06:00
use trilium version number in asset paths to avoid caching issues WIP
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
PKG_DIR=dist/trilium-linux-x64-server
|
||||
NODE_VERSION=16.15.0
|
||||
NODE_VERSION=16.18.0
|
||||
|
||||
if [ "$1" != "DONTCOPY" ]
|
||||
then
|
||||
|
||||
@@ -5,7 +5,7 @@ if [[ $# -eq 0 ]] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
n exec 16.15.0 npm run webpack
|
||||
n exec 16.18.0 npm run webpack
|
||||
|
||||
DIR=$1
|
||||
|
||||
@@ -30,7 +30,7 @@ cp -r electron.js $DIR/
|
||||
cp webpack-* $DIR/
|
||||
|
||||
# run in subshell (so we return to original dir)
|
||||
(cd $DIR && n exec 16.15.0 npm install --only=prod)
|
||||
(cd $DIR && n exec 16.18.0 npm install --only=prod)
|
||||
|
||||
# cleanup of useless files in dependencies
|
||||
rm -r $DIR/node_modules/image-q/demo
|
||||
|
||||
Reference in New Issue
Block a user