1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-06 23:56:13 +02:00

Tools: Fix desktop build performance issue (#6762)

This commit is contained in:
asrient
2022-08-19 23:40:39 +05:30
committed by GitHub
parent 7e8a6dfb54
commit b4ece67092
3 changed files with 25 additions and 28 deletions

View File

@ -48,20 +48,6 @@ function convertJsx(paths) {
});
}
function build(path) {
chdir(path);
const result = spawnSync('yarn', ['run', 'build'], { shell: true });
if (result.status !== 0) {
const msg = [];
if (result.stdout) msg.push(result.stdout.toString());
if (result.stderr) msg.push(result.stderr.toString());
console.error(msg.join('\n'));
if (result.error) console.error(result.error);
process.exit(result.status);
}
}
module.exports = function() {
convertJsx([
`${__dirname}/../gui`,
@ -70,8 +56,6 @@ module.exports = function() {
`${__dirname}/../plugins`,
]);
build(`${__dirname}/../../pdf-viewer`);
const libContent = [
fs.readFileSync(`${basePath}/packages/lib/string-utils-common.js`, 'utf8'),
fs.readFileSync(`${basePath}/packages/lib/markJsUtils.js`, 'utf8'),