Update app.rs
This commit is contained in:
parent
99ca3a3393
commit
44b0a5491b
1 changed files with 1 additions and 4 deletions
|
@ -1,5 +1,4 @@
|
||||||
use anyhow::ensure;
|
use anyhow::ensure;
|
||||||
use log::debug;
|
|
||||||
use tauri_sys::app;
|
use tauri_sys::app;
|
||||||
|
|
||||||
pub async fn get_name() -> anyhow::Result<()> {
|
pub async fn get_name() -> anyhow::Result<()> {
|
||||||
|
@ -25,10 +24,8 @@ pub async fn get_version() -> anyhow::Result<()> {
|
||||||
pub async fn get_tauri_version() -> anyhow::Result<()> {
|
pub async fn get_tauri_version() -> anyhow::Result<()> {
|
||||||
let version = app::get_tauri_version().await?;
|
let version = app::get_tauri_version().await?;
|
||||||
|
|
||||||
debug!("version {}", version);
|
|
||||||
|
|
||||||
ensure!(version.major == 1);
|
ensure!(version.major == 1);
|
||||||
ensure!(version.minor == 1);
|
ensure!(version.minor == 2);
|
||||||
ensure!(version.patch == 0);
|
ensure!(version.patch == 0);
|
||||||
ensure!(version.build.is_empty());
|
ensure!(version.build.is_empty());
|
||||||
ensure!(version.pre.is_empty());
|
ensure!(version.pre.is_empty());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue