Skip to content

Commit

Permalink
gulp package now zips with version appended
Browse files Browse the repository at this point in the history
  • Loading branch information
nadimtuhin committed Oct 21, 2015
1 parent 9223dc1 commit 4fa7aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ function(){

function packager(name, files, root) {
var tmpPath = ".op" + Math.ceil(Math.random() * 100).toString();
var archiveName = name + ".zip";
var version = getOnepagerVersion();
var archiveName = `${name}-${version}.zip`;

copier(root, tmpPath, files);

shell.exec('sudo find ' + tmpPath + ' -type d -exec chmod 755 {} \\;');
shell.exec('sudo find ' + tmpPath + ' -type f -exec chmod 644 {} \\;');

var version = getOnepagerVersion();
replaceVersion(`${tmpPath}/readme.txt`, version);

zipper(archiveName, tmpPath, name)
Expand Down

0 comments on commit 4fa7aca

Please sign in to comment.