Skip to content

Commit c77c103

Browse files
authored
Embedding magic number 0x414901 at offset 8, #144
1 parent a6efcca commit c77c103

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

AppImageAssistant.AppDir/package

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ elf = os.path.realpath(os.path.dirname(__file__)) + "/runtime"
8989
s = open(elf, 'rb')
9090
f = open(destinationfile, 'rb+')
9191
f.write(bytes(s.read()))
92+
print("ok")
93+
print("Embedding magic number 0x414901 at offset 8...")
94+
f.seek(8)
95+
f.write('\x41\x49\x01')
9296
f.close()
9397
s.close()
9498
print("ok")

0 commit comments

Comments
 (0)