summaryrefslogtreecommitdiff
path: root/magic
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2022-12-21 15:50:59 +0000
committerChristos Zoulas <christos@zoulas.com>2022-12-21 15:50:59 +0000
commite0022ebc2e2a9935e34cd2db10d74660a9279ddc (patch)
tree567d6a1f71fe6688092640b9b2773b875c4c5b3a /magic
parent0918f8b9e790ab0e892db1aee05db086a51b2af3 (diff)
downloadfile-git-e0022ebc2e2a9935e34cd2db10d74660a9279ddc.tar.gz
Add Electron ASAR archives (https://github.com/electron/asar).
(Alexandre Iooss)
Diffstat (limited to 'magic')
-rw-r--r--magic/Magdir/archive12
1 files changed, 11 insertions, 1 deletions
diff --git a/magic/Magdir/archive b/magic/Magdir/archive
index 579f0c0d..a706556d 100644
--- a/magic/Magdir/archive
+++ b/magic/Magdir/archive
@@ -1,5 +1,5 @@
#------------------------------------------------------------------------------
-# $File: archive,v 1.178 2022/12/18 14:47:37 christos Exp $
+# $File: archive,v 1.179 2022/12/21 15:50:59 christos Exp $
# archive: file(1) magic for archive formats (see also "msdos" for self-
# extracting compressed archives)
#
@@ -2260,3 +2260,13 @@
>>>>>10 lelong x \b, decompressed size: %d bytes
>>>>5 byte &0x40 \b, LZ4 compressed
>>>>>10 lelong x \b, decompressed size: %d bytes
+
+# Electron ASAR archive
+# From: Alexandre Iooss <erdnaxe@crans.org>
+# URL: https://github.com/electron/asar
+0 ulelong 4
+# Match JSON header start and end
+>16 string {"files":{"
+>>(12.l+12) string }}}} Electron ASAR archive
+!:ext asar
+>>>12 ulelong x \b, header length: %d bytes