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

@@ -271,6 +271,7 @@ pub struct License {
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct GalleryItem {
pub url: String,
pub raw_url: String,
pub featured: bool,
pub title: Option<String>,
pub description: Option<String>,
@@ -703,6 +704,16 @@ impl CachedEntry {
.await?;
for row in query {
let row_exists = row.data.is_some();
let parsed_data = row
.data
.and_then(|x| serde_json::from_value::<CacheValue>(x).ok());
// If data is corrupted/failed to parse ignore it
if row_exists && parsed_data.is_none() {
continue;
}
if row.expires <= Utc::now().timestamp() {
if cache_behaviour == CacheBehaviour::MustRevalidate {
continue;
@@ -727,10 +738,7 @@ impl CachedEntry {
.unwrap_or(false)
});
if let Some(data) = row
.data
.and_then(|x| serde_json::from_value::<CacheValue>(x).ok())
{
if let Some(data) = parsed_data {
return_vals.push(Self {
id: row.id,
alias: row.alias,