mirror of https://github.com/procxx/kepka.git
Retry signing if failed.
This commit is contained in:
parent
e97d014a01
commit
a8c94deca8
|
@ -55,7 +55,6 @@ set "PortableFile=tportable.%AppVersionStrFull%.zip"
|
||||||
set "ReleasePath=%HomePath%\..\out\Release"
|
set "ReleasePath=%HomePath%\..\out\Release"
|
||||||
set "DeployPath=%ReleasePath%\deploy\%AppVersionStrMajor%\%AppVersionStrFull%"
|
set "DeployPath=%ReleasePath%\deploy\%AppVersionStrMajor%\%AppVersionStrFull%"
|
||||||
set "SignPath=%HomePath%\..\..\TelegramPrivate\Sign.bat"
|
set "SignPath=%HomePath%\..\..\TelegramPrivate\Sign.bat"
|
||||||
set "SignAppxPath=%HomePath%\..\..\TelegramPrivate\AppxSign.bat"
|
|
||||||
set "BinaryName=Telegram"
|
set "BinaryName=Telegram"
|
||||||
set "DropboxSymbolsPath=Y:\Telegram\symbols"
|
set "DropboxSymbolsPath=Y:\Telegram\symbols"
|
||||||
set "FinalReleasePath=Z:\Telegram\backup"
|
set "FinalReleasePath=Z:\Telegram\backup"
|
||||||
|
@ -131,20 +130,32 @@ echo Done!
|
||||||
set "PATH=%PATH%;C:\Program Files\7-Zip;C:\Program Files (x86)\Inno Setup 5"
|
set "PATH=%PATH%;C:\Program Files\7-Zip;C:\Program Files (x86)\Inno Setup 5"
|
||||||
|
|
||||||
cd "%ReleasePath%"
|
cd "%ReleasePath%"
|
||||||
|
|
||||||
|
:sign1
|
||||||
call "%SignPath%" "%BinaryName%.exe"
|
call "%SignPath%" "%BinaryName%.exe"
|
||||||
if %errorlevel% neq 0 goto error
|
if %errorlevel% neq 0 (
|
||||||
|
timeout /t 3
|
||||||
|
goto sign1
|
||||||
|
)
|
||||||
|
|
||||||
if %BuildUWP% equ 0 (
|
if %BuildUWP% equ 0 (
|
||||||
|
:sign2
|
||||||
call "%SignPath%" "Updater.exe"
|
call "%SignPath%" "Updater.exe"
|
||||||
if %errorlevel% neq 0 goto error
|
if %errorlevel% neq 0 (
|
||||||
|
timeout /t 3
|
||||||
|
goto sign2
|
||||||
|
)
|
||||||
|
|
||||||
if %AlphaVersion% equ 0 (
|
if %AlphaVersion% equ 0 (
|
||||||
iscc /dMyAppVersion=%AppVersionStrSmall% /dMyAppVersionZero=%AppVersionStr% /dMyAppVersionFull=%AppVersionStrFull% "/dReleasePath=%ReleasePath%" "%FullScriptPath%setup.iss"
|
iscc /dMyAppVersion=%AppVersionStrSmall% /dMyAppVersionZero=%AppVersionStr% /dMyAppVersionFull=%AppVersionStrFull% "/dReleasePath=%ReleasePath%" "%FullScriptPath%setup.iss"
|
||||||
if %errorlevel% neq 0 goto error
|
if %errorlevel% neq 0 goto error
|
||||||
if not exist "tsetup.%AppVersionStrFull%.exe" goto error
|
if not exist "tsetup.%AppVersionStrFull%.exe" goto error
|
||||||
|
:sign3
|
||||||
call "%SignPath%" "tsetup.%AppVersionStrFull%.exe"
|
call "%SignPath%" "tsetup.%AppVersionStrFull%.exe"
|
||||||
if %errorlevel% neq 0 goto error
|
if %errorlevel% neq 0 (
|
||||||
|
timeout /t 3
|
||||||
|
goto sign3
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
call Packer.exe -version %VersionForPacker% -path %BinaryName%.exe -path Updater.exe %AlphaBetaParam%
|
call Packer.exe -version %VersionForPacker% -path %BinaryName%.exe -path Updater.exe %AlphaBetaParam%
|
||||||
|
|
Loading…
Reference in New Issue