don't try to update when running from source

This commit is contained in:
AAGaming
2024-08-03 14:03:56 -04:00
parent 3e50ce65a7
commit dcfaf11696
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -67,6 +67,9 @@ def get_loader_version() -> str:
try:
# Normalize Python-style version to conform to Decky style
v = Version(importlib.metadata.version("decky_loader"))
if v.major == 0 and v.minor == 0 and v.micro == 0:
# We are probably running from source
return "dev"
version_str = f'v{v.major}.{v.minor}.{v.micro}'
+1 -1
View File
@@ -96,7 +96,7 @@ class Updater:
"current": self.localVer,
"remote": self.remoteVer,
"all": self.allRemoteVers,
"updatable": self.localVer != "unknown"
"updatable": self.localVer != "unknown" and self.localVer != "dev"
}
async def check_for_updates(self):