A shepherd for your Appimages.
0

Configure Feed

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

fix fmt

Aly Raffauf (Jun 18, 2026, 12:51 PM EDT) bf5b62b6 05a3f36a

+9 -3
+6 -2
internal/appherder/appimage.go
··· 126 126 } 127 127 128 128 // isSquashFS reports whether a SquashFS superblock begins at offset. 129 - func isSquashFS(file interface{ ReadAt([]byte, int64) (int, error) }, offset int64) bool { 129 + func isSquashFS(file interface { 130 + ReadAt([]byte, int64) (int, error) 131 + }, offset int64) bool { 130 132 magic := make([]byte, 4) 131 133 _, err := file.ReadAt(magic, offset) 132 134 return err == nil && string(magic) == "hsqs" ··· 134 136 135 137 // scanForSquashFS searches for a SquashFS superblock in 4096-byte steps over 136 138 // the next 64 MiB starting from offset. Returns the found position or false. 137 - func scanForSquashFS(file interface{ ReadAt([]byte, int64) (int, error) }, offset int64) (int64, bool) { 139 + func scanForSquashFS(file interface { 140 + ReadAt([]byte, int64) (int, error) 141 + }, offset int64) (int64, bool) { 138 142 const window = 64 * 1024 * 1024 139 143 buf := make([]byte, 4096) 140 144 for pos := offset; pos < offset+window; pos += 4096 {
+3 -1
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{ ReadAt([]byte, int64) (int, error) }, offset int64) bool { 59 + func isDwarFS(file interface { 60 + ReadAt([]byte, int64) (int, error) 61 + }, offset int64) bool { 60 62 magic := make([]byte, 6) 61 63 _, err := file.ReadAt(magic, offset) 62 64 return err == nil && string(magic) == "DWARFS"