UPD: Use SevenZip plugin to open .deb under Windows

This commit is contained in:
Alexander Koblov 2018-08-06 18:54:21 +00:00
commit a8a327b7cf
2 changed files with 10 additions and 3 deletions

View file

@ -9,7 +9,6 @@ mkdir %DC_INSTALL_DIR%
mkdir %DC_INSTALL_DIR%\plugins
rem WCX plugins directories
mkdir %DC_INSTALL_DIR%\plugins\wcx
mkdir %DC_INSTALL_DIR%\plugins\wcx\deb
mkdir %DC_INSTALL_DIR%\plugins\wcx\rpm
mkdir %DC_INSTALL_DIR%\plugins\wcx\sevenzip
mkdir %DC_INSTALL_DIR%\plugins\wcx\unrar
@ -42,7 +41,6 @@ copy *.dll %DC_INSTALL_DIR%\
rem copy plugins
rem WCX
copy plugins\wcx\deb\lib\deb.wcx %DC_INSTALL_DIR%\plugins\wcx\deb\
copy plugins\wcx\rpm\lib\rpm.wcx %DC_INSTALL_DIR%\plugins\wcx\rpm\
copy plugins\wcx\sevenzip\sevenzip.wcx %DC_INSTALL_DIR%\plugins\wcx\sevenzip\
copy plugins\wcx\unrar\lib\unrar.wcx %DC_INSTALL_DIR%\plugins\wcx\unrar\

View file

@ -176,6 +176,15 @@ begin
gWCXPlugins.FileName[I]:= Folder + 'sevenzip' + PathDelim + 'sevenzip.wcx';
end;
I:= gWCXPlugins.IndexOfName('deb');
if I < 0 then
gWCXPlugins.Add('deb', 4, Folder + 'sevenzip' + PathDelim + 'sevenzip.wcx')
else begin
gWCXPlugins.Flags[I]:= 4;
// For deb used another plugin, so update path too
gWCXPlugins.FileName[I]:= Folder + 'sevenzip' + PathDelim + 'sevenzip.wcx';
end;
I:= gWCXPlugins.IndexOfName('arj');
if I < 0 then
gWCXPlugins.Add('arj', 4, Folder + 'sevenzip' + PathDelim + 'sevenzip.wcx');
@ -245,13 +254,13 @@ begin
gWCXPlugins.Add('cpio', 4, Folder + 'cpio' + PathDelim + 'cpio.wcx')
else
gWCXPlugins.Flags[I]:= 4;
{$ENDIF}
I:= gWCXPlugins.IndexOfName('deb');
if I < 0 then
gWCXPlugins.Add('deb', 4, Folder + 'deb' + PathDelim + 'deb.wcx')
else
gWCXPlugins.Flags[I]:= 4;
{$ENDIF}
I:= gWCXPlugins.IndexOfName('rpm');
if I < 0 then