Skip to content

Commit

Permalink
Make date_updated update itself for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle M Hall committed May 31, 2018
1 parent 5c07e54 commit 06a8109
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Koha/Plugin/Com/ByWaterSolutions/CoverFlow.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ our $metadata = {
author => 'Kyle M Hall',
description => 'Convert a report into a coverflow style widget!',
date_authored => '2014-06-29',
date_updated => '2014-06-29',
date_updated => '1900-01-01',
minimum_version => '3.16',
maximum_version => undef,
version => $VERSION,
Expand Down
12 changes: 11 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,17 @@ console.log(release_filename);
console.log(pm_file_path_full_dist);

gulp.task('build', () => {
run('mkdir dist ; cp -ar Koha dist/. ; cp -ar JavaScript dist/. ; sed -i -e "s/{VERSION}/' + package_json.version + '/g" ' + pm_file_path_full_dist + ' ; cd dist ; zip -r ../' + release_filename + ' ./Koha ./JavaScript ; cd .. ; rm -rf dist').exec();
run(`
mkdir dist ;
cp -ar Koha dist/. ;
cp -ar JavaScript dist/. ;
sed -i -e "s/{VERSION}/' + package_json.version + '/g" ' + pm_file_path_full_dist + ' ;
sed -i -e "s/1900-01-01/${today}/g" ${pm_file_path_full_dist} ;
cd dist ;
zip -r ../' + release_filename + ' ./Koha ./JavaScript ;
cd .. ;
rm -rf dist ;
`).exec();

});

Expand Down

0 comments on commit 06a8109

Please sign in to comment.