1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Port the publish target to Gulp

This commit is contained in:
Tim van der Meij 2016-04-26 23:28:36 +02:00
parent 97b3a70df8
commit 5166b46a1c
3 changed files with 24 additions and 10 deletions

11
make.js
View file

@ -385,16 +385,7 @@ target.dist = function() {
};
target.publish = function() {
target.generic();
var VERSION = getCurrentVersion();
config.stableVersion = config.betaVersion;
config.betaVersion = VERSION;
fs.writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2));
cd(GENERIC_DIR);
var distFilename = 'pdfjs-' + VERSION + '-dist.zip';
exec('zip -r ' + ROOT_DIR + BUILD_DIR + distFilename + ' *');
echo('Built distribution file: ' + distFilename);
cd(ROOT_DIR);
exec('gulp publish');
};
//