Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Mar 3, 2024

Conversation

AlexeiKharchev
Copy link
Contributor

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
Copy link
Contributor Author

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

@AlexeiKharchev
Copy link
Contributor Author

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

@zadam
Copy link
Owner

zadam commented Mar 3, 2024

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

These build scripts were/are a mess ...

@zadam zadam merged commit 9565b0b into zadam:master Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants