0.8.5 fixes (#2369)

* 0.8.5 fixes

* Attempt to fix binary name

* bump version + add nsis installmode

* (temp) Use cargo version of tauri CLI

* fix cli build

* Fix build env var

* Bump tauri version

* remove old invalid installs

* Fix old shortcuts + NSIS build
This commit is contained in:
Geometrically
2024-09-10 00:24:17 -07:00
committed by GitHub
parent b3a6393c91
commit 0b31f2eb41
23 changed files with 481 additions and 568 deletions

View File

@@ -501,13 +501,8 @@ impl Profile {
pub async fn remove(
profile_path: &str,
transaction: &mut sqlx::Transaction<'_, sqlx::Sqlite>,
pool: &SqlitePool,
) -> crate::Result<()> {
if let Ok(path) = crate::api::profile::get_full_path(profile_path).await
{
io::remove_dir_all(&path).await?;
}
sqlx::query!(
"
DELETE FROM profiles
@@ -515,9 +510,14 @@ impl Profile {
",
profile_path
)
.execute(&mut **transaction)
.execute(pool)
.await?;
if let Ok(path) = crate::api::profile::get_full_path(profile_path).await
{
io::remove_dir_all(&path).await?;
}
Ok(())
}