Update 7-Zip to 22.01 and remove 7za.dll as it's not needed. [skip ci]

This commit is contained in:
chase 2023-01-12 18:50:48 -06:00 committed by GitHub
parent a18cb1ecab
commit d486b6270f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 16 deletions

2
.github/release.sh vendored
View File

@ -7,4 +7,4 @@ zip -r redists.zip *
mv redists.zip ../
cd ..
rm -rf redists/
zip -r offlineInstall.zip 7za.exe 7za.dll redists.zip Redist-Installer.bat
zip -r offlineInstall.zip 7za.exe redists.zip Redist-Installer.bat

View File

@ -8,8 +8,6 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: "bash ${GITHUB_WORKSPACE}/.github/release.sh"
@ -21,7 +19,6 @@ jobs:
title: "Release"
files: |
Redist-Installer.bat
7za.dll
7za.exe
redists.zip
offlineInstall.zip

BIN
7za.dll

Binary file not shown.

View File

@ -11,25 +11,20 @@ title Redist Installer
md %temp%\Redist-Installer >nul 2>&1
:: If we have all the offline installer files, copy and skip the downloading.
if exist "7za.dll" (
if exist "7za.exe" (
if exist "redists.zip" (
copy /Y 7za.dll %temp%\Redist-Installer >nul
copy /Y 7za.exe %temp%\Redist-Installer >nul
copy /Y redists.zip %temp%\Redist-Installer >nul
goto offlineInstall
)
if exist "7za.exe" (
if exist "redists.zip" (
copy /Y 7za.exe %temp%\Redist-Installer >nul
copy /Y redists.zip %temp%\Redist-Installer >nul
goto offlineInstall
)
)
:: If we do not have the offline installer files, download them.
:onlineInstall
cd %temp%\Redist-Installer
echo Downloading 1/3...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/chxseh/Redist-Installer/releases/download/latest/7za.dll', '7za.dll')"
echo Downloading 2/3...
echo Downloading 1/2...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/chxseh/Redist-Installer/releases/download/latest/7za.exe', '7za.exe')"
echo Downloading 3/3...
echo Downloading 2/2...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://github.com/chxseh/Redist-Installer/releases/download/latest/redists.zip', 'redists.zip')"
:offlineInstall