Skip to content

Commit

Permalink
fix: store hash properly lol
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Oct 28, 2024
1 parent 345ecb1 commit c68e8c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit c68e8c4

Please sign in to comment.