Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:

runs-on: ${{ matrix.os }}

env:
APP_VERSION: ${{ github.ref_name }}

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion src/app/apps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ pub struct App {
impl App {
/// This returns the basic apps that rustcast has, such as quiting rustcast and opening preferences
pub fn basic_apps() -> Vec<App> {
let app_version = option_env!("APP_VERSION").unwrap_or("Unknown Version");

vec![
App {
open_command: Function::Quit,
Expand All @@ -56,7 +58,7 @@ impl App {
open_command: Function::Nothing,
desc: RUSTCAST_DESC_NAME.to_string(),
icons: None,
name: "RustCast Version: 0.2.7".to_string(),
name: format!("RustCast Version: {app_version}"),
name_lc: "version".to_string(),
},
]
Expand Down