Update 7-Zip to 22.01
and remove 7za.dll
as it's not needed. [skip ci]
This commit is contained in:
parent
a18cb1ecab
commit
d486b6270f
2
.github/release.sh
vendored
2
.github/release.sh
vendored
@ -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
|
||||
|
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -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
|
||||
|
@ -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 "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 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
|
||||
|
Loading…
Reference in New Issue
Block a user