mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
try: build
This commit is contained in:
parent
41b9e8dd15
commit
e5a312588a
2 changed files with 5 additions and 5 deletions
2
.nvmrc
2
.nvmrc
|
|
@ -1 +1 @@
|
||||||
v18
|
v20
|
||||||
|
|
|
||||||
|
|
@ -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
|
// 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
|
// 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(`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'),
|
cwd: path.join(cwd, 'node_modules', 'zx'),
|
||||||
shell,
|
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'),
|
cwd: path.join(cwd, 'node_modules', 'zx', 'node_modules', 'globby'),
|
||||||
shell,
|
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: path.join(
|
||||||
cwd,
|
cwd,
|
||||||
'node_modules',
|
'node_modules',
|
||||||
|
|
@ -98,7 +98,7 @@ exports.default = async (
|
||||||
['@tiddlygit', 'tiddlywiki', 'languages'],
|
['@tiddlygit', 'tiddlywiki', 'languages'],
|
||||||
['@tiddlygit', 'tiddlywiki', 'tiddlywiki.js'],
|
['@tiddlygit', 'tiddlywiki', 'tiddlywiki.js'],
|
||||||
// node-llama-cpp etc. include too many source code, so only copy its binary
|
// 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
|
// 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'],
|
['app-path', 'main'],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue