Skip to content

Commit c16e5b3

Browse files
committed
chore: bump version to 0.2.0
1 parent adb3370 commit c16e5b3

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

pages/settings.vue

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const toast = useToast();
1010
const downloadDirectory = ref<string>('');
1111
const isLoading = ref(false);
1212
const isSaving = ref(false);
13+
const appVersion = ref<string>('');
1314
1415
// Load current settings
1516
const loadSettings = async () => {
@@ -105,8 +106,15 @@ const openLogsFolder = async () => {
105106
};
106107
107108
108-
onMounted(() => {
109+
onMounted(async () => {
109110
loadSettings();
111+
112+
// Get app version
113+
try {
114+
appVersion.value = await invoke('get_app_version');
115+
} catch (error) {
116+
console.error('Failed to get app version:', error);
117+
}
110118
});
111119
</script>
112120

@@ -180,5 +188,12 @@ onMounted(() => {
180188
</div>
181189
</div>
182190
</div>
191+
192+
<!-- Version info at the bottom -->
193+
<div class="mt-8 text-center">
194+
<p class="text-sm text-autonomi-text-secondary dark:text-autonomi-text-secondary-dark">
195+
Dave version {{ appVersion }}
196+
</p>
197+
</div>
183198
</div>
184199
</template>

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "project-dave"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
description = "A Tauri App"
55
authors = ["you"]
66
edition = "2021"

src-tauri/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,11 @@ fn get_logs_directory() -> Result<String, String> {
10821082
Ok(logs_dir.to_string_lossy().to_string())
10831083
}
10841084

1085+
#[tauri::command]
1086+
fn get_app_version() -> String {
1087+
env!("CARGO_PKG_VERSION").to_string()
1088+
}
1089+
10851090
#[cfg_attr(mobile, tauri::mobile_entry_point)]
10861091
pub async fn run() {
10871092
tauri::Builder::default()
@@ -1122,6 +1127,7 @@ pub async fn run() {
11221127
clear_payment_cache,
11231128
show_item_in_file_manager,
11241129
get_logs_directory,
1130+
get_app_version,
11251131
])
11261132
.run(tauri::generate_context!())
11271133
.expect("error while running tauri application");

0 commit comments

Comments
 (0)