From 08a21369cf7944eed30debf68c47fd6b9830c395 Mon Sep 17 00:00:00 2001 From: "Billy.Zheng" Date: Fri, 6 Dec 2024 14:45:50 +0800 Subject: [PATCH] Add git hash as rev version --- src/sentry.cr | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sentry.cr b/src/sentry.cr index fdde022..28d55dd 100644 --- a/src/sentry.cr +++ b/src/sentry.cr @@ -5,5 +5,10 @@ require "./sentry/sound_file_storage" require "./sentry/process_runner.cr" module Sentry - VERSION = {{ `shards version "#{__DIR__}"`.chomp.stringify }} + VERSION = {{ + `shards version "#{__DIR__}"`.chomp.stringify + + " (rev " + + `git rev-parse --short HEAD`.chomp.stringify + + ")" + }} end