replace 7za.exe to 7z.exe (support more archive formats)

This commit is contained in:
slore 2020-03-21 23:43:43 +08:00
parent e5a17d0621
commit c52c591e39
2 changed files with 8 additions and 8 deletions

View File

@ -1,13 +1,13 @@
@echo off
set MISSING_FILES=0
if not exist "%APP_ROOT%\bin\x64\7z.exe" set MISSING_FILES=1
if not exist "%APP_ROOT%\bin\x86\7z.exe" set MISSING_FILES=1
if not exist "%APP_ROOT%\bin\x64\7za.exe" (
copy "%APP_ROOT%\vendor\7za\7za_x64.exe" "%APP_ROOT%\bin\x64\7za.exe"
)
if not exist "%APP_ROOT%\bin\x86\7za.exe" (
copy "%APP_ROOT%\vendor\7za\7za_x86.exe" "%APP_ROOT%\bin\x86\7za.exe"
if %MISSING_FILES% NEQ 0 (
xcopy /e /y "%APP_ROOT%\vendor\7za\*.*" "%APP_ROOT%\bin\"
)
set MISSING_FILES=0
if not exist "%APP_ROOT%\bin\x64\aria2c.exe" (
copy "%APP_ROOT%\vendor\aria2\aria2c_x64.exe" "%APP_ROOT%\bin\x64\aria2c.exe"
@ -16,8 +16,8 @@ if not exist "%APP_ROOT%\bin\x86\aria2c.exe" (
copy "%APP_ROOT%\vendor\aria2\aria2c_x86.exe" "%APP_ROOT%\bin\x86\aria2c.exe"
)
call :CHECK_FILE 7za.exe x64
call :CHECK_FILE 7za.exe x86
call :CHECK_FILE 7z.exe x64
call :CHECK_FILE 7z.exe x86
if %MISSING_FILES% NEQ 0 (
echo \033[97;104m Some files are missing. Please download them by yourself,|cmdcolor.exe

View File

@ -1,2 +1,2 @@
echo [MACRO]Extract2X %*
7za x "%~1" -o"%~2"
7z x -aoa "%~1" -o"%~2"