From c68e8c41eea91f7c2ea0e8168396a026aee60120 Mon Sep 17 00:00:00 2001 From: SpikeHD <25207995+SpikeHD@users.noreply.github.com> Date: Sun, 27 Oct 2024 21:30:46 -0700 Subject: [PATCH] fix: store hash properly lol --- src-tauri/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index ec68fccd..84250af9 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -38,9 +38,11 @@ mod release; mod util; mod window; +const HASH: Option<&'static str> = env_opt!("GIT_HASH"); + #[tauri::command] fn git_hash() -> String { - option_env!("GIT_HASH").unwrap_or("Unknown").to_string() + HASH.unwrap_or("Unknown").to_string() } #[tauri::command]