mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-04-26 07:11:04 -07:00
feat: init sqlite for wikiWorker
This commit is contained in:
parent
18606a3553
commit
cf7fae2dcf
16 changed files with 351 additions and 33 deletions
|
|
@ -43,6 +43,13 @@ exports.default = async (buildPath, electronVersion, platform, arch, callback) =
|
|||
// we only need its `main` binary
|
||||
await fs.mkdirp(path.join(cwd, 'node_modules', 'app-path'));
|
||||
await fs.copy(path.join(projectRoot, 'node_modules', 'app-path', 'main'), path.join(cwd, 'node_modules', 'app-path', 'main'), { dereference: true });
|
||||
await fs.copy(path.resolve(projectRoot, 'node_modules/better-sqlite3/build/Release/better_sqlite3.node'), path.resolve(cwd, 'node_modules/better-sqlite3/build/Release/better_sqlite3.node'), { dereference: true });
|
||||
const sqliteVssPackages = ['sqlite-vss', 'sqlite-vss-linux-x64', 'sqlite-vss-darwin-x64', 'sqlite-vss-darwin-arm64']
|
||||
for (const sqliteVssPackage of sqliteVssPackages) {
|
||||
try {
|
||||
await fs.copy(path.resolve(projectRoot, `node_modules/${sqliteVssPackage}`), path.resolve(cwd, `node_modules/${sqliteVssPackage}`), { dereference: true });
|
||||
} catch {}
|
||||
}
|
||||
// await exec(`npm i --legacy-building`, { cwd: path.join(cwd, 'node_modules', 'app-path') });
|
||||
// await exec(`npm i --legacy-building`, { cwd: path.join(cwd, 'node_modules', 'app-path', 'node_modules', 'cross-spawn') });
|
||||
// await exec(`npm i --legacy-building`, { cwd: path.join(cwd, 'node_modules', 'app-path', 'node_modules', 'get-stream') });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue