Skip to content

Commit

Permalink
added link to appimage draft
Browse files Browse the repository at this point in the history
  • Loading branch information
mijorus committed Aug 8, 2024
1 parent d9fe4cd commit 5992c5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/AppImageProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,8 @@ def reload_metadata(self, el: AppImageListElement):
self.install_file(el)

def get_appimage_type(self, el: AppImageListElement) -> str:
# https://github.com/AppImage/AppImageSpec/blob/fb05d9e1b8b8616dbeb7491303edc537dca573f3/draft.md#type-1-image-format

appimage_type = 0
with open(el.file_path, 'rb') as f:
magic = f.read(11)[-3:]
Expand Down

0 comments on commit 5992c5d

Please sign in to comment.