using zeit/pkg to package easy to use linux server edition

This commit is contained in:
azivner
2018-07-06 00:05:06 +02:00
parent 2bca94529e
commit daf96fcbf2
3 changed files with 381 additions and 5 deletions
+14 -2
View File
@@ -4,6 +4,9 @@
"version": "0.16.0",
"license": "AGPL-3.0-only",
"main": "electron.js",
"bin": {
"trilium": "./src/www"
},
"repository": {
"type": "git",
"url": "https://github.com/zadam/trilium.git"
@@ -17,7 +20,8 @@
"start-forge": "electron-forge start",
"package-forge": "electron-forge package",
"make-forge": "electron-forge make",
"publish-forge": "electron-forge publish"
"publish-forge": "electron-forge publish",
"build-pkg": "pkg . --targets node8-linux-x64 --output dist/trilium-linux-x64-server.elf"
},
"dependencies": {
"async-mutex": "^0.1.3",
@@ -70,7 +74,8 @@
"electron-rebuild": "^1.8.1",
"lorem-ipsum": "^1.0.5",
"tape": "^4.9.1",
"xo": "^0.21.1"
"xo": "^0.21.1",
"pkg": "^4.3.3"
},
"config": {
"forge": {
@@ -109,5 +114,12 @@
"node",
"browser"
]
},
"pkg": {
"assets": [
"./db/**/*",
"./src/public/**/*",
"./src/views/**/*"
]
}
}