feat: add hash tag

This commit is contained in:
hamster1963
2024-12-03 15:16:36 +08:00
parent 8811904133
commit b84be53ab8
6 changed files with 85 additions and 51 deletions

7
scripts/get-version.js Normal file
View File

@@ -0,0 +1,7 @@
const { execSync } = require("child_process");
// Get the short version of the git hash
const gitHash = execSync("git rev-parse --short HEAD").toString().trim();
// Write it to stdout
console.log(gitHash);