Skip to content

Commit

Permalink
Changed version name string to show version and date. Moved commit nu…
Browse files Browse the repository at this point in the history
…mber into description string.
  • Loading branch information
Brian Vaughn committed Aug 15, 2019
1 parent 0763c48 commit d0dcbe5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions shells/browser/shared/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,13 @@ const build = async (tempPath, manifestPath) => {
);

const commit = getGitCommit();
const versionDateString = `${commit} (${new Date().toLocaleDateString()})`;

const dateString = new Date().toLocaleDateString();
const manifest = JSON.parse(readFileSync(copiedManifestPath).toString());
const versionDateString = `${manifest.version} (${dateString})`;
if (manifest.version_name) {
manifest.version_name = versionDateString;
} else {
manifest.description += `\n\nCreated from revision ${versionDateString}`;
}
manifest.description += `\n\nCreated from revision ${commit} on ${dateString}.`;

writeFileSync(copiedManifestPath, JSON.stringify(manifest, null, 2));

Expand Down

0 comments on commit d0dcbe5

Please sign in to comment.