Fix build on win
This commit is contained in:
parent
121f3f3037
commit
e156a46833
3 changed files with 6 additions and 3 deletions
|
@ -28,7 +28,8 @@ async function getZoteroNoteEditor(signatures) {
|
|||
);
|
||||
}
|
||||
catch (e) {
|
||||
await exec('npm ci;npm run build', { cwd: 'note-editor' });
|
||||
await exec('npm ci', { cwd: 'note-editor' });
|
||||
await exec('npm run build', { cwd: 'note-editor' });
|
||||
await fs.copy('note-editor/build/zotero', targetDir);
|
||||
}
|
||||
signatures['note-editor'] = { hash };
|
||||
|
|
|
@ -28,7 +28,8 @@ async function getPDFReader(signatures) {
|
|||
);
|
||||
}
|
||||
catch (e) {
|
||||
await exec('npm ci;npm run build', { cwd: 'pdf-reader' });
|
||||
await exec('npm ci', { cwd: 'pdf-reader' });
|
||||
await exec('npm run build', { cwd: 'pdf-reader' });
|
||||
await fs.copy('pdf-reader/build/zotero', targetDir);
|
||||
}
|
||||
signatures['pdf-reader'] = { hash };
|
||||
|
|
|
@ -27,7 +27,8 @@ async function getPDFWorker(signatures) {
|
|||
);
|
||||
}
|
||||
catch (e) {
|
||||
await exec('npm ci;npm run build', { cwd: 'pdf-worker' });
|
||||
await exec('npm ci', { cwd: 'pdf-worker' });
|
||||
await exec('npm run build', { cwd: 'pdf-worker' });
|
||||
await fs.copy('pdf-worker/build/worker.js', targetDir + 'worker.js');
|
||||
}
|
||||
signatures['pdf-worker'] = { hash };
|
||||
|
|
Loading…
Add table
Reference in a new issue