Merge pull request #2423 from tnajdek/build-on-win

Fix build on win
This commit is contained in:
Martynas Bagdonas 2022-04-05 13:01:52 +07:00 committed by GitHub
commit ce4b82a332
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 };