This commit is contained in:
암냥 2025-12-11 01:16:37 +09:00
commit e176b1c094
No known key found for this signature in database
17 changed files with 632 additions and 0 deletions

13
cli/git-commit-build.ts Normal file
View file

@ -0,0 +1,13 @@
async function getGitCommitHash(): Promise<string> {
try {
const proc = Bun.spawn(["git", "rev-parse", "--short", "HEAD"]);
const text = await new Response(proc.stdout).text();
return text.trim();
} catch {
return "unknown";
}
}
Bun.file("version").write(await getGitCommitHash());
export {};