Fix build on win

This commit is contained in:
Tom Najdek 2022-03-16 22:50:45 +01:00
parent 121f3f3037
commit e156a46833
No known key found for this signature in database
GPG key ID: EEC61A7B4C667D77
3 changed files with 6 additions and 3 deletions

View file

@ -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 };

View file

@ -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 };

View file

@ -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 };