diff --git a/Cargo.lock b/Cargo.lock
index 594a84b..cbb4a60 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2130,7 +2130,7 @@ dependencies = [
[[package]]
name = "moonlight-installer"
-version = "0.2.0"
+version = "0.2.1"
dependencies = [
"eframe",
"egui",
diff --git a/assets/Info.plist b/assets/Info.plist
index 050841b..afd8a3f 100644
--- a/assets/Info.plist
+++ b/assets/Info.plist
@@ -19,9 +19,9 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 0.2.0
+ 0.2.1
CFBundleVersion
- 0.2.0
+ 0.2.1
CSResourcesFileMapped
LSRequiresCarbon
diff --git a/crates/libmoonlight/src/installer.rs b/crates/libmoonlight/src/installer.rs
index d3bb171..7f084dd 100644
--- a/crates/libmoonlight/src/installer.rs
+++ b/crates/libmoonlight/src/installer.rs
@@ -1,4 +1,4 @@
-use crate::{get_app_dir, PATCHED_ASAR};
+use crate::{get_app_dir, get_moonlight_dir, PATCHED_ASAR};
use super::{
types::*,
@@ -8,6 +8,7 @@ use std::path::PathBuf;
const USER_AGENT: &str =
"moonlight-installer (https://github.com/moonlight-mod/moonlight-installer)";
+const INSTALLED_VERSION_FILE: &str = ".moonlight-installed-version";
const GITHUB_REPO: &str = "moonlight-mod/moonlight";
const ARTIFACT_NAME: &str = "dist.tar.gz";
@@ -69,6 +70,18 @@ impl Installer {
}
}
+ pub fn get_downloaded_version(&self) -> InstallerResult