diff --git a/appveyor.yml b/appveyor.yml index 170ecd0..67b35f1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -21,7 +21,7 @@ assembly_info: assembly_informational_version: '{version}' install: - ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1')) - - cmd: appveyor-tools\secure-file -decrypt cert.enc -secret %pwe% -salt %senc% + - cmd: if "%pwe%" NEQ "" (appveyor-tools\secure-file -decrypt cert.enc -secret %pwe% -salt %senc%) before_build: - cmd: premake5.exe vs2017 - ps: >- diff --git a/sign.bat b/sign.bat index 3498fad..24b4bd8 100644 --- a/sign.bat +++ b/sign.bat @@ -1,8 +1,16 @@ -@echo off +REM @echo off +if not defined (cenc) goto end +%comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" IF %PLATFORM%==Win32 ( signtool sign /t http://timestamp.globalsign.com/scripts/timstamp.dll /f "cert" /p %cenc% /d .\build\bin\release\output\OpenParrot.dll .\build\bin\release\output\OpenParrot.dll signtool sign /t http://timestamp.globalsign.com/scripts/timstamp.dll /f "cert" /p %cenc% /d .\build\bin\release\output\OpenParrotLoader.exe .\build\bin\release\output\OpenParrotLoader.exe signtool sign /t http://timestamp.globalsign.com/scripts/timstamp.dll /f "cert" /p %cenc% /d .\build\bin\release\output\OpenParrotKonamiLoader.exe .\build\bin\release\output\OpenParrotKonamiLoader.exe) ELSE (IF %PLATFORM%==x64 ( signtool sign /t http://timestamp.globalsign.com/scripts/timstamp.dll /f "cert" /p %cenc% /d .\build\bin\release\output\OpenParrot64.dll .\build\bin\release\output\OpenParrot64.dll signtool sign /t http://timestamp.globalsign.com/scripts/timstamp.dll /f "cert" /p %cenc% /d .\build\bin\release\output\OpenParrotLoader64.exe .\build\bin\release\output\OpenParrotLoader64.exe - )) \ No newline at end of file + ) + ) +exit + +:end +echo Pull Request +exit \ No newline at end of file