mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00: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:
|
try:
|
||||||
# Normalize Python-style version to conform to Decky style
|
# Normalize Python-style version to conform to Decky style
|
||||||
v = Version(importlib.metadata.version("decky_loader"))
|
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}'
|
version_str = f'v{v.major}.{v.minor}.{v.micro}'
|
||||||
|
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ class Updater:
|
|||||||
"current": self.localVer,
|
"current": self.localVer,
|
||||||
"remote": self.remoteVer,
|
"remote": self.remoteVer,
|
||||||
"all": self.allRemoteVers,
|
"all": self.allRemoteVers,
|
||||||
"updatable": self.localVer != "unknown"
|
"updatable": self.localVer != "unknown" and self.localVer != "dev"
|
||||||
}
|
}
|
||||||
|
|
||||||
async def check_for_updates(self):
|
async def check_for_updates(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user