mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
server: Fix translations in standalone build
This commit is contained in:
parent
fa769df7b0
commit
a5fd57308a
@ -24,11 +24,12 @@ rm -r $PKG_DIR/node/include/node
|
|||||||
rm -r $PKG_DIR/node_modules/electron*
|
rm -r $PKG_DIR/node_modules/electron*
|
||||||
rm -r $PKG_DIR/electron*.js
|
rm -r $PKG_DIR/electron*.js
|
||||||
|
|
||||||
printf "#!/bin/sh\n./node/bin/node src/www" > $PKG_DIR/trilium.sh
|
printf "#!/bin/sh\n./node/bin/node src/main" > $PKG_DIR/trilium.sh
|
||||||
chmod 755 $PKG_DIR/trilium.sh
|
chmod 755 $PKG_DIR/trilium.sh
|
||||||
|
|
||||||
cp bin/tpl/anonymize-database.sql $PKG_DIR/
|
cp bin/tpl/anonymize-database.sql $PKG_DIR/
|
||||||
|
|
||||||
|
cp -r translations $PKG_DIR/
|
||||||
cp -r dump-db $PKG_DIR/
|
cp -r dump-db $PKG_DIR/
|
||||||
rm -rf $PKG_DIR/dump-db/node_modules
|
rm -rf $PKG_DIR/dump-db/node_modules
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ const copy = async () => {
|
|||||||
await fs.copy(file, path.join(DEST_DIR, file));
|
await fs.copy(file, path.join(DEST_DIR, file));
|
||||||
}
|
}
|
||||||
|
|
||||||
const dirsToCopy = ["images", "libraries", "db"];
|
const dirsToCopy = ["images", "libraries", "translations", "db"];
|
||||||
for (const dir of dirsToCopy) {
|
for (const dir of dirsToCopy) {
|
||||||
log(`Copying ${dir}`);
|
log(`Copying ${dir}`);
|
||||||
await fs.copy(dir, path.join(DEST_DIR, dir));
|
await fs.copy(dir, path.join(DEST_DIR, dir));
|
||||||
|
@ -77,8 +77,7 @@ module.exports = {
|
|||||||
function getExtraResourcesForPlatform() {
|
function getExtraResourcesForPlatform() {
|
||||||
let resources = [
|
let resources = [
|
||||||
'dump-db/',
|
'dump-db/',
|
||||||
'./bin/tpl/anonymize-database.sql',
|
'./bin/tpl/anonymize-database.sql'
|
||||||
'translations/'
|
|
||||||
];
|
];
|
||||||
const scripts = ['trilium-portable', 'trilium-safe-mode', 'trilium-no-cert-check']
|
const scripts = ['trilium-portable', 'trilium-safe-mode', 'trilium-no-cert-check']
|
||||||
switch (process.platform) {
|
switch (process.platform) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user