1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-26 18:58:21 +02:00

Merge branch 'master' of github.com:laurent22/joplin

This commit is contained in:
Laurent Cozic 2019-06-13 00:26:55 +01:00
commit 7bffe86439

View File

@ -1,7 +1,8 @@
const fs = require('fs-extra');
const { execCommand } = require('./tool-utils.js');
const clipperDir = __dirname + '/../Clipper/joplin-webclipper';
const clipperDir = __dirname + '/../Clipper/joplin-webclipper';
const tmpSourceDir = __dirname + '/../Clipper/joplin-webclipper-source';
async function copyDir(baseSourceDir, sourcePath, baseDestDir) {
await fs.mkdirp(baseDestDir + '/' + sourcePath);
@ -76,6 +77,12 @@ async function main() {
console.info(await execCommand('mv ' + dist.name + '.zip ..'));
}
console.info('Creating source tarball for code validation...');
process.chdir(clipperDir + '/../');
console.info(await execCommand("rsync -a --delete --exclude 'node_modules/' --exclude 'build/' --exclude 'dist/' " + clipperDir + '/ ' + tmpSourceDir + '/'));
console.info(await execCommand('7z a -tzip joplin-webclipper-source.zip joplin-webclipper-source'));
console.info(await execCommand('mv joplin-webclipper-source.zip ' + clipperDir + '/dist/ && rm -rf joplin-webclipper-source'));
console.info(await execCommand('git pull'));
console.info(await execCommand('git add -A'));
console.info(await execCommand('git commit -m "Clipper release v' + newVersion + '"'));