| 1 |
REM build the installer artifact |
| 2 |
|
| 3 |
REM XXX: make this a variable with the branch name |
| 4 |
cd platform-* |
| 5 |
|
| 6 |
REM XXX: This is redundant with the previous scripts, we could centralize it |
| 7 |
REM In fact, the variable is only needed to access bash |
| 8 |
SET CYGROOT=C:\ci\cygwin%ARCH% |
| 9 |
SET BASH=%CYGROOT%\bin\bash |
| 10 |
|
| 11 |
MKDIR %GITHUB_WORKSPACE%\artifacts |
| 12 |
|
| 13 |
%BASH% --login -c "pwd && ls -la && cd /platform && windows/create_installer_windows.sh" || GOTO ErrorExit |
| 14 |
|
| 15 |
REM Output is in cygwin home; in general the script has a bit of a |
| 16 |
REM mess in terms of using the GITHUB_WORKSPACE sometimes, and the |
| 17 |
REM CYGWIN home some others. I use the path here directly as to avoid |
| 18 |
REM issues with quoting, which in the previous script required some |
| 19 |
REM really obscure code. |
| 20 |
COPY /v /b %CYGROOT%\platform\windows_installer\*.exe %GITHUB_WORKSPACE%\artifacts || GOTO ErrorExit |
| 21 |
|
| 22 |
GOTO :EOF |
| 23 |
|
| 24 |
:ErrorExit |
| 25 |
ECHO ERROR %0 failed |
| 26 |
EXIT /b 1 |