zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
26.12k stars 1.78k forks source link

Reduce warnings count caused by bin/copy-trilium.sh #4671

Closed AlexeiKharchev closed 4 months ago

AlexeiKharchev commented 4 months ago

alexei@Aspire:~/build/trilium-0.62.4$ ./bin/build-linux-x64.sh ./bin/copy-trilium.sh: line 8: n: command not found Copying Trilium to build directory ./dist/trilium-linux-x64-src cp: unable to execute stat for 'webpack-': there is no such file or catalog ./bin/copy-trilium.sh: line 30: n: command not found rm: unable to remove './dist/trilium-linux-x64-src/node_modules/image-q/demo': there is no such file or catalog rm: unable to remove './dist/trilium-linux-x64-src/node_modules/better-sqlite3/Release': there is no such file or catalog rm: unable to remove './dist/trilium-linux-x64-src/node_modules/better-sqlite3/deps/sqlite3.tar.gz': there is no such file or catalog rm: unable to remove './dist/trilium-linux-x64-src/node_modules/@jimp/plugin-print/fonts': there is no such file or catalog rm: unable to remove './dist/trilium-linux-x64-src/node_modules/jimp/browser': there is no such file or catalog rm: unable to remove './dist/trilium-linux-x64-src/node_modules/jimp/fonts': there is no such file or catalog find: ‘./dist/trilium-linux-x64-src/node_modules’: there is no such file or catalog find: ‘./dist/trilium-linux-x64-src/node_modules’: there is no such file or catalog find: ‘./dist/trilium-linux-x64-src/node_modules’: there is no such file or catalog cp: Unable to create regular file './dist/trilium-linux-x64-src/src/public/app-dist/': it is not a catalog rm: unable to remove './dist/trilium-linux-x64-src/src/public/app-dist/.mobile.*': there is no such file or catalog Copying required linux-x64 binaries cp: Unable to create regular file './dist/trilium-linux-x64-src/node_modules/better-sqlite3/build/Release/better_sqlite3.node': there is no such file or catalog Packaging linux x64 electron build ... ...

AlexeiKharchev commented 4 months ago

What is "n exec" at line 8 ? n exec 18.18.2 npm run webpack

AlexeiKharchev commented 4 months ago

I found I forgot to add '-p' option at line 13: mkdir -pv "$DIR"

zadam commented 4 months ago

Thanks! n exec comes from https://github.com/tj/n

These build scripts were/are a mess ...