mirror of
https://github.com/zadam/trilium.git
synced 2025-01-07 15:49:01 +08:00
23 lines
No EOL
485 B
Bash
Executable file
23 lines
No EOL
485 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [[ $# -eq 0 ]] ; then
|
|
echo "Missing argument of new version"
|
|
exit 1
|
|
fi
|
|
|
|
VERSION=$1
|
|
|
|
PKG_DIR=dist/trilium-linux-x64-server
|
|
|
|
mkdir $PKG_DIR
|
|
|
|
pkg . --targets node8-linux-x64 --output ${PKG_DIR}/trilium
|
|
|
|
chmod +x ${PKG_DIR}/trilium
|
|
|
|
cp node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node ${PKG_DIR}/
|
|
cp node_modules/scrypt/build/Release/scrypt.node ${PKG_DIR}/
|
|
|
|
cd dist
|
|
|
|
7z a trilium-linux-x64-${VERSION}-server.7z trilium-linux-x64-server |