mirror of
https://github.com/zadam/trilium.git
synced 2025-02-11 16:56:42 +08:00
fixed builds for linux desktop
This commit is contained in:
parent
ed6181a85e
commit
08c612c876
8 changed files with 382 additions and 450 deletions
bin
better-sqlite3
build-linux-x64.shdeps
linux-x64/sqlite
mac-x64/sqlite/electron-v9.0-darwin-x64
win-x64/sqlite/electron-v9.0-win32-x64
BIN
bin/better-sqlite3/linux-better_sqlite3.node
Executable file
BIN
bin/better-sqlite3/linux-better_sqlite3.node
Executable file
Binary file not shown.
|
@ -7,15 +7,11 @@ then
|
||||||
./bin/copy-trilium.sh $SRC_DIR
|
./bin/copy-trilium.sh $SRC_DIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Copying required linux-x64 binaries"
|
|
||||||
|
|
||||||
rm -r $SRC_DIR/node_modules/sqlite3/lib/binding/*
|
|
||||||
rm -r $SRC_DIR/node_modules/pngquant-bin/vendor/*
|
|
||||||
|
|
||||||
rm -r $SRC_DIR/src/public/app-dist/*.mobile.*
|
rm -r $SRC_DIR/src/public/app-dist/*.mobile.*
|
||||||
|
|
||||||
cp -r bin/deps/linux-x64/sqlite/* $SRC_DIR/node_modules/sqlite3/lib/binding/
|
echo "Copying required linux-x64 binaries"
|
||||||
cp bin/deps/linux-x64/image/pngquant $SRC_DIR/node_modules/pngquant-bin/vendor/
|
|
||||||
|
cp -r bin/better-sqlite3/linux-better_sqlite3.node $SRC_DIR/node_modules/better-sqlite3/build/Release/better_sqlite3.node
|
||||||
|
|
||||||
./node_modules/.bin/electron-packager $SRC_DIR --asar --out=dist --executable-name=trilium --platform=linux --arch=x64 --overwrite
|
./node_modules/.bin/electron-packager $SRC_DIR --asar --out=dist --executable-name=trilium --platform=linux --arch=x64 --overwrite
|
||||||
|
|
||||||
|
@ -41,4 +37,4 @@ tar cJf trilium-linux-x64-${VERSION}.tar.xz trilium-linux-x64
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
bin/build-debian.sh
|
bin/build-debian.sh
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
805
package-lock.json
generated
805
package-lock.json
generated
File diff suppressed because it is too large
Load diff
15
package.json
15
package.json
|
@ -25,7 +25,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async-mutex": "0.2.4",
|
"async-mutex": "0.2.4",
|
||||||
"axios": "0.19.2",
|
"axios": "0.20.0",
|
||||||
"better-sqlite3": "7.1.0",
|
"better-sqlite3": "7.1.0",
|
||||||
"body-parser": "1.19.0",
|
"body-parser": "1.19.0",
|
||||||
"cls-hooked": "4.2.2",
|
"cls-hooked": "4.2.2",
|
||||||
|
@ -54,11 +54,12 @@
|
||||||
"jimp": "0.16.0",
|
"jimp": "0.16.0",
|
||||||
"mime-types": "2.1.27",
|
"mime-types": "2.1.27",
|
||||||
"multer": "1.4.2",
|
"multer": "1.4.2",
|
||||||
"node-abi": "2.18.0",
|
"node-abi": "2.19.0",
|
||||||
"open": "7.1.0",
|
"open": "7.2.0",
|
||||||
"portscanner": "2.2.0",
|
"portscanner": "2.2.0",
|
||||||
"rand-token": "1.0.1",
|
"rand-token": "1.0.1",
|
||||||
"rcedit": "2.2.0",
|
"rcedit": "2.2.0",
|
||||||
|
"request": "^2.88.2",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"sanitize-filename": "1.6.3",
|
"sanitize-filename": "1.6.3",
|
||||||
"sanitize-html": "1.27.3",
|
"sanitize-html": "1.27.3",
|
||||||
|
@ -77,15 +78,15 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cross-env": "7.0.2",
|
"cross-env": "7.0.2",
|
||||||
"electron": "10.0.0-beta.23",
|
"electron": "10.0.0-beta.25",
|
||||||
"electron-builder": "22.8.0",
|
"electron-builder": "22.8.0",
|
||||||
"electron-packager": "15.0.0",
|
"electron-packager": "15.1.0",
|
||||||
"electron-rebuild": "1.11.0",
|
"electron-rebuild": "2.0.0",
|
||||||
"esm": "3.2.25",
|
"esm": "3.2.25",
|
||||||
"jasmine": "3.6.1",
|
"jasmine": "3.6.1",
|
||||||
"jsdoc": "3.6.5",
|
"jsdoc": "3.6.5",
|
||||||
"lorem-ipsum": "2.0.3",
|
"lorem-ipsum": "2.0.3",
|
||||||
"webpack": "5.0.0-beta.22",
|
"webpack": "5.0.0-beta.28",
|
||||||
"webpack-cli": "4.0.0-beta.8"
|
"webpack-cli": "4.0.0-beta.8"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
|
|
Loading…
Reference in a new issue