try: build

This commit is contained in:
lin onetwo 2024-04-13 17:06:49 +08:00
parent 41b9e8dd15
commit e5a312588a
2 changed files with 5 additions and 5 deletions

2
.nvmrc
View file

@ -1 +1 @@
v18
v20

View file

@ -69,15 +69,15 @@ exports.default = async (
// not using pnpm, because after using it, it always causing problem here, causing `Error: spawn /bin/sh ENOENT` in github actions
// it can probably being "working directory didn't exist" in https://github.com/nodejs/node/issues/9644#issuecomment-282060923
// await exec(`pnpm i --shamefully-hoist --prod --ignore-scripts`, { cwd: path.join(cwd, 'node_modules', 'zx'), shell });
await exec(`npm i --registry https://registry.npmmirror.com --legacy-building --production`, {
await exec(`npm i --registry https://registry.npmmirror.com --legacy-building --omit=dev`, {
cwd: path.join(cwd, 'node_modules', 'zx'),
shell,
});
await exec(`npm i --registry https://registry.npmmirror.com --legacy-building --production`, {
await exec(`npm i --registry https://registry.npmmirror.com --legacy-building --omit=dev`, {
cwd: path.join(cwd, 'node_modules', 'zx', 'node_modules', 'globby'),
shell,
});
await exec(`npm i --registry https://registry.npmmirror.com --legacy-building --production --ignore-scripts`, {
await exec(`npm i --registry https://registry.npmmirror.com --legacy-building --omit=dev --ignore-scripts`, {
cwd: path.join(
cwd,
'node_modules',
@ -98,7 +98,7 @@ exports.default = async (
['@tiddlygit', 'tiddlywiki', 'languages'],
['@tiddlygit', 'tiddlywiki', 'tiddlywiki.js'],
// node-llama-cpp etc. include too many source code, so only copy its binary
['node-llama-cpp', 'node_modules'],
// ['node-llama-cpp', 'node_modules'],
// we only need its `main` binary, no need its dependency and code, because we already copy it to src/services/native/externalApp
['app-path', 'main'],
];