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:
parent
97b3a70df8
commit
5166b46a1c
3 changed files with 24 additions and 10 deletions
11
make.js
11
make.js
|
@ -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');
|
||||
};
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue