From c4d023ed4327327bdbfa3baf2191beba67e5d47c Mon Sep 17 00:00:00 2001 From: akanyan Date: Thu, 1 May 2025 16:48:24 +0000 Subject: [PATCH] fix: change the deep link domain --- CHANGELOG.md | 1 + rust/src/lib.rs | 4 +++- rust/tauri.conf.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b536924..4996c95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 0.19.1 - Fixed the update button enabling the package +- Fixed deep URLs with rainycolor.org ## 0.19.0 diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 5fe1ce6..8be55b7 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -270,7 +270,7 @@ fn deep_link(app: AppHandle, args: Vec) { log::info!("deep link: {}", url); let regex = regex::Regex::new( - r"rainycolor://v1/install/rainy\.patafour\.zip/([^/]+)/([^/]+)/[0-9]+\.[0-9]+\.[0-9]+/" + r"rainycolor://v1/install/www\.rainycolor\.org/([^/]+)/([^/]+)/[0-9]+\.[0-9]+\.[0-9]+/" ).expect("Invalid regex"); if let Some(caps) = regex.captures(url) { @@ -287,6 +287,8 @@ fn deep_link(app: AppHandle, args: Vec) { } }); } + } else { + log::error!("No caps"); } } } diff --git a/rust/tauri.conf.json b/rust/tauri.conf.json index 7a182da..1250c91 100644 --- a/rust/tauri.conf.json +++ b/rust/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "STARTLINER", - "version": "0.19.0", + "version": "0.19.1", "identifier": "zip.patafour.startliner", "build": { "beforeDevCommand": "bun run dev",