Skip to content

Commit

Permalink
Make the file extension check for .AppImage case-insensitive.
Browse files Browse the repository at this point in the history
The problem is that we often have .AppImage instead of the more Unixy .appimage, but the later occurs too.

So, We'll tolerate whatever CrAzY Casing you can come up with.

Resolves lutris#5396
  • Loading branch information
danieljohnson2 authored and dobriev committed Apr 3, 2024
1 parent 6558137 commit 3daea77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lutris/util/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def guess_extractor(path):
extractor = "exe"
elif path.endswith(".deb"):
extractor = "deb"
elif path.endswith(".AppImage"):
elif path.casefold().endswith(".appimage"):
extractor = "AppImage"
else:
extractor = None
Expand Down

0 comments on commit 3daea77

Please sign in to comment.