Skip to content

Commit

Permalink
don't try to update when running from source
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed Aug 3, 2024
1 parent 3e50ce6 commit dcfaf11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions backend/decky_loader/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'

Expand Down
2 changes: 1 addition & 1 deletion backend/decky_loader/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def get_version_info(self):
"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):
Expand Down

0 comments on commit dcfaf11

Please sign in to comment.