mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-13 04:05:04 +03:00
don't try to update when running from source
This commit is contained in:
@@ -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}'
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user