mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
binaries for better-sqlite3, downgrage to electron 9 since build on windows doesn't for
This commit is contained in:
parent
1d813c82e4
commit
b7947a40ea
BIN
bin/better-sqlite3/linux-better_sqlite3.node
Executable file → Normal file
BIN
bin/better-sqlite3/linux-better_sqlite3.node
Executable file → Normal file
Binary file not shown.
BIN
bin/better-sqlite3/mac-better_sqlite3.node
Normal file
BIN
bin/better-sqlite3/mac-better_sqlite3.node
Normal file
Binary file not shown.
BIN
bin/better-sqlite3/win-better-sqlite3.node
Normal file
BIN
bin/better-sqlite3/win-better-sqlite3.node
Normal file
Binary file not shown.
@ -9,15 +9,7 @@ fi
|
|||||||
|
|
||||||
echo "Copying required mac binaries"
|
echo "Copying required mac binaries"
|
||||||
|
|
||||||
rm -r $SRC_DIR/node_modules/sqlite3/lib/binding/*
|
cp -r bin/better-sqlite3/mac-better_sqlite3.node $SRC_DIR/node_modules/better-sqlite3/build/Release/better_sqlite3.node
|
||||||
rm -r $SRC_DIR/node_modules/mozjpeg/vendor/*
|
|
||||||
rm -r $SRC_DIR/node_modules/pngquant-bin/vendor/*
|
|
||||||
rm -r $SRC_DIR/node_modules/giflossy/vendor/*
|
|
||||||
|
|
||||||
cp -r bin/deps/mac-x64/sqlite/* $SRC_DIR/node_modules/sqlite3/lib/binding/
|
|
||||||
cp bin/deps/mac-x64/image/cjpeg $SRC_DIR/node_modules/mozjpeg/vendor/
|
|
||||||
cp bin/deps/mac-x64/image/pngquant $SRC_DIR/node_modules/pngquant-bin/vendor/
|
|
||||||
cp bin/deps/mac-x64/image/gifsicle $SRC_DIR/node_modules/giflossy/vendor/
|
|
||||||
|
|
||||||
rm -r $SRC_DIR/src/public/app-dist/*.mobile.*
|
rm -r $SRC_DIR/src/public/app-dist/*.mobile.*
|
||||||
|
|
||||||
|
@ -18,9 +18,7 @@ mv dist/node-v${NODE_VERSION}-linux-x64 $PKG_DIR/node
|
|||||||
|
|
||||||
rm -r $PKG_DIR/node_modules/electron*
|
rm -r $PKG_DIR/node_modules/electron*
|
||||||
|
|
||||||
rm -r $PKG_DIR/node_modules/sqlite3/lib/binding/*
|
cp -r bin/better-sqlite3/linux-better_sqlite3.node $SRC_DIR/node_modules/better-sqlite3/build/Release/better_sqlite3.node
|
||||||
|
|
||||||
cp -r ./bin/deps/linux-x64/sqlite/node* $PKG_DIR/node_modules/sqlite3/lib/binding/
|
|
||||||
|
|
||||||
printf "#!/bin/sh\n./node/bin/node src/www" > $PKG_DIR/trilium.sh
|
printf "#!/bin/sh\n./node/bin/node src/www" > $PKG_DIR/trilium.sh
|
||||||
chmod 755 $PKG_DIR/trilium.sh
|
chmod 755 $PKG_DIR/trilium.sh
|
||||||
|
@ -9,15 +9,7 @@ fi
|
|||||||
|
|
||||||
echo "Copying required windows binaries"
|
echo "Copying required windows binaries"
|
||||||
|
|
||||||
rm -r $SRC_DIR/node_modules/sqlite3/lib/binding/*
|
cp -r bin/better-sqlite3/win-better_sqlite3.node $SRC_DIR/node_modules/better-sqlite3/build/Release/better_sqlite3.node
|
||||||
rm -r $SRC_DIR/node_modules/mozjpeg/vendor/*
|
|
||||||
rm -r $SRC_DIR/node_modules/pngquant-bin/vendor/*
|
|
||||||
rm -r $SRC_DIR/node_modules/giflossy/vendor/*
|
|
||||||
|
|
||||||
cp -r bin/deps/win-x64/sqlite/* $SRC_DIR/node_modules/sqlite3/lib/binding/
|
|
||||||
cp bin/deps/win-x64/image/cjpeg.exe $SRC_DIR/node_modules/mozjpeg/vendor/
|
|
||||||
cp bin/deps/win-x64/image/pngquant.exe $SRC_DIR/node_modules/pngquant-bin/vendor/
|
|
||||||
cp bin/deps/win-x64/image/gifsicle.exe $SRC_DIR/node_modules/giflossy/vendor/
|
|
||||||
|
|
||||||
rm -r $SRC_DIR/src/public/app-dist/*.mobile.*
|
rm -r $SRC_DIR/src/public/app-dist/*.mobile.*
|
||||||
|
|
||||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -3053,9 +3053,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"electron": {
|
"electron": {
|
||||||
"version": "10.0.0-beta.25",
|
"version": "9.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/electron/-/electron-10.0.0-beta.25.tgz",
|
"resolved": "https://registry.npmjs.org/electron/-/electron-9.2.1.tgz",
|
||||||
"integrity": "sha512-AWtK3dVaIXlGp1S7a7KNcLEBSp48K4GXYCQC0Wp6dUovKP47BsxxV0i6lTrKU8cXVAEHuwAL5Mz4O/mmOlklRA==",
|
"integrity": "sha512-ZsetaQjXB8+9/EFW1FnfK4ukpkwXCxMEaiKiUZhZ0ZLFlLnFCpe0Bg4vdDf7e4boWGcnlgN1jAJpBw7w0eXuqA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@electron/get": "^1.0.1",
|
"@electron/get": "^1.0.1",
|
||||||
|
@ -78,7 +78,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cross-env": "7.0.2",
|
"cross-env": "7.0.2",
|
||||||
"electron": "10.0.0-beta.25",
|
"electron": "9.2.1",
|
||||||
"electron-builder": "22.8.0",
|
"electron-builder": "22.8.0",
|
||||||
"electron-packager": "15.1.0",
|
"electron-packager": "15.1.0",
|
||||||
"electron-rebuild": "2.0.0",
|
"electron-rebuild": "2.0.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user