A shepherd for your Appimages.
0

Configure Feed

Select the types of activity you want to include in your feed.

cleanup

Aly Raffauf (Jun 18, 2026, 12:52 PM EDT) 4f0c2cd2 bf5b62b6

+8 -9
+7 -6
internal/appherder/appimage.go
··· 125 125 } 126 126 } 127 127 128 + // readerAt is the subset of io.ReaderAt used by filesystem detection helpers. 129 + type readerAt interface { 130 + ReadAt([]byte, int64) (int, error) 131 + } 132 + 128 133 // isSquashFS reports whether a SquashFS superblock begins at offset. 129 - func isSquashFS(file interface { 130 - ReadAt([]byte, int64) (int, error) 131 - }, offset int64) bool { 134 + func isSquashFS(file readerAt, offset int64) bool { 132 135 magic := make([]byte, 4) 133 136 _, err := file.ReadAt(magic, offset) 134 137 return err == nil && string(magic) == "hsqs" ··· 136 139 137 140 // scanForSquashFS searches for a SquashFS superblock in 4096-byte steps over 138 141 // the next 64 MiB starting from offset. Returns the found position or false. 139 - func scanForSquashFS(file interface { 140 - ReadAt([]byte, int64) (int, error) 141 - }, offset int64) (int64, bool) { 142 + func scanForSquashFS(file readerAt, offset int64) (int64, bool) { 142 143 const window = 64 * 1024 * 1024 143 144 buf := make([]byte, 4096) 144 145 for pos := offset; pos < offset+window; pos += 4096 {
+1 -3
internal/appherder/dwarfs.go
··· 56 56 } 57 57 58 58 // isDwarFS reports whether the payload at offset starts with the DwarFS magic. 59 - func isDwarFS(file interface { 60 - ReadAt([]byte, int64) (int, error) 61 - }, offset int64) bool { 59 + func isDwarFS(file readerAt, offset int64) bool { 62 60 magic := make([]byte, 6) 63 61 _, err := file.ReadAt(magic, offset) 64 62 return err == nil && string(magic) == "DWARFS"