Skip to content

Commit

Permalink
Merge pull request elfmz#7 from unxed/7zip
Browse files Browse the repository at this point in the history
 Add support for 7zz tool (more recent 7zip port)
  • Loading branch information
unxed authored May 19, 2024
2 parents 4704c3b + a7b2833 commit 858730f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
30 changes: 15 additions & 15 deletions multiarc/configs/plug/custom.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ ID=01 43 44
IDPos=32768
TypeName=ISO7Z
Extension=iso
ToolNotFound=Please install 7z utility to open this archive
List=7z l -- %%AQ
ToolNotFound=Please install 7zz or 7z utility to open this archive
List=7zz l -- %%AQ || 7z l -- %%AQ
Start=------------------- ----- ------------ ------------ ------------------------
End=------------------- ----- ------------ ------------ ------------------------
Format0=yyyy-tt-dd hh:mm:ss aaaaa zzzzzzzzzzzz pppppppppppp nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Extract=7z x {-p%%P} -y %%AQ @%%LSM
ExtractWithoutPath=7z e {-p%%P} -y %%AQ @%%LSM
Test=7z t {-p%%P} -r0 %%AQ @%%LSM
Extract=7zz x {-p%%P} -y %%AQ @%%LSM || 7z x {-p%%P} -y %%AQ @%%LSM
ExtractWithoutPath=7zz e {-p%%P} -y %%AQ @%%LSM || 7z e {-p%%P} -y %%AQ @%%LSM
Test=7zz t {-p%%P} -r0 %%AQ @%%LSM || 7z t {-p%%P} -r0 %%AQ @%%LSM
AllFilesMask="*"

[BY7Z]
Expand Down Expand Up @@ -66,14 +66,14 @@ ID13=EB 52 90 4E 54 46 53 20
ID13Pos=0
;
IDOnly=1
ToolNotFound=Please install 7z utility to open this archive
List=7z l -- %%AQ
ToolNotFound=Please install 7zz or 7z utility to open this archive
List=7zz l -- %%AQ || 7z l -- %%AQ
Start=------------------- ----- ------------ ------------ ------------------------
End=------------------- ----- ------------ ------------ ------------------------
Format0=yyyy-tt-dd hh:mm:ss aaaaa zzzzzzzzzzzz pppppppppppp nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Extract=7z x {-p%%P} -y %%AQ @%%LSM
ExtractWithoutPath=7z e {-p%%P} -y %%AQ @%%LSM
Test=7z t {-p%%P} -r0 %%AQ @%%LSM
Extract=7zz x {-p%%P} -y %%AQ @%%LSM || 7z x {-p%%P} -y %%AQ @%%LSM
ExtractWithoutPath=7zz e {-p%%P} -y %%AQ @%%LSM || 7z e {-p%%P} -y %%AQ @%%LSM
Test=7zz t {-p%%P} -r0 %%AQ @%%LSM || 7z t {-p%%P} -r0 %%AQ @%%LSM
AllFilesMask="*"

[MSI]
Expand All @@ -82,14 +82,14 @@ TypeName=MSI
ID9=D0 CF 11 E0 A1 B1 1A E1
ID9Pos=0
Extension=msi
ToolNotFound=Please install 7z utility to open this archive
List=7z l -- %%AQ
ToolNotFound=Please install 7zz or 7z utility to open this archive
List=7zz l -- %%AQ || 7z l -- %%AQ
Start=------------------- ----- ------------ ------------ ------------------------
End=------------------- ----- ------------ ------------ ------------------------
Format0=yyyy-tt-dd hh:mm:ss aaaaa zzzzzzzzzzzz pppppppppppp nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Extract=7z x {-p%%P} -y %%AQ @%%LSM
ExtractWithoutPath=7z e {-p%%P} -y %%AQ @%%LSM
Test=7z t {-p%%P} -r0 %%AQ @%%LSM
Extract=7zz x {-p%%P} -y %%AQ @%%LSM || 7z x {-p%%P} -y %%AQ @%%LSM
ExtractWithoutPath=7zz e {-p%%P} -y %%AQ @%%LSM || 7z e {-p%%P} -y %%AQ @%%LSM
Test=7zz t {-p%%P} -r0 %%AQ @%%LSM || 7z t {-p%%P} -r0 %%AQ @%%LSM
AllFilesMask="*"

[IMG]
Expand Down
10 changes: 5 additions & 5 deletions multiarc/src/formats/7z/7z.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,17 +275,17 @@ BOOL WINAPI _export SEVENZ_GetDefaultCommands(int Type,int Command,char *Dest)
/*Extract */"^7z x %%A %%FMq*4096",
/*Extract without paths */"^7z e %%A %%FMq*4096",
/*Test */"^7z t %%A",
/*Delete */"7z d {-p%%P} %%A @%%LN",
/*Delete */"7zz d {-p%%P} %%A @%%LN || 7z d {-p%%P} %%A @%%LN",
/*Comment archive */"",
/*Comment files */"",
/*Convert to SFX */"",
/*Lock archive */"",
/*Protect archive */"",
/*Recover archive */"",
/*Add files */"7z a -y {-p%%P} %%A @%%LN",
/*Move files */"7z a -y -sdel {-p%%P} %%A @%%LN",
/*Add files and folders */"7z a -y {-p%%P} %%A @%%LN",
/*Move files and folders*/"7z a -y -sdel {-p%%P} %%A @%%LN",
/*Add files */"7zz a -y {-p%%P} %%A @%%LN || 7z a -y {-p%%P} %%A @%%LN",
/*Move files */"7zz a -y -sdel {-p%%P} %%A @%%LN || 7z a -y -sdel {-p%%P} %%A @%%LN",
/*Add files and folders */"7zz a -y {-p%%P} %%A @%%LN || 7z a -y {-p%%P} %%A @%%LN",
/*Move files and folders*/"7zz a -y -sdel {-p%%P} %%A @%%LN || 7z a -y -sdel {-p%%P} %%A @%%LN",
/*"All files" mask */"*"
};
if (Command<(int)(ARRAYSIZE(Commands)))
Expand Down

0 comments on commit 858730f

Please sign in to comment.