From cbba0700a886815390b88d5e5d58f7c5c3649af9 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Oct 2022 01:04:31 +0200 Subject: [PATCH] Display Git commit date in help/about --- vite.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index cc460f9c..21bd4583 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,7 +7,9 @@ import {resolve} from "path"; import {execSync} from "child_process"; const GIT_VERSION = JSON.stringify( - execSync("git describe --always", {encoding: "utf-8"}).trim() + execSync("git log -1 --format=%cd --date=short", {encoding: "utf-8"}).trim() + + "/" + + execSync("git describe --always", {encoding: "utf-8"}).trim() ); // https://vitejs.dev/config/