Skip to content

Commit

Permalink
Update: build with datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
kairi003 committed Apr 6, 2023
1 parent 6b1e2f8 commit c07f716
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const getBranch = () => new Promise((resolve, reject) => {


const build = async (name) => {
const zipPath = `${name}.zip`;
const dt = new Date().toLocaleString('sv').replace(/\D/g, '');
const zipPath = `${name}_${dt}.zip`;
const output = fs.createWriteStream(path.join(__dirname, zipPath));

process.chdir(path.join(__dirname, 'src'));
Expand Down

0 comments on commit c07f716

Please sign in to comment.