2020-01-08 10:55:08 +00:00
@ ECHO OFF
2020-01-08 09:33:09 +00:00
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
cd ..
2020-01-08 10:24:26 +00:00
set TIMEX = %TIME: =0%
2020-01-08 11:41:04 +00:00
set archive = qb64_%DATE:~10,4% -%DATE:~4,2% -%DATE:~7,2% -%TIMEX:~0,2% -%TIMEX:~3,2% -%TIMEX:~6,2% _%GITHUB_SHA:~0,7% _win-%PLATFORM% .7z
2020-01-08 15:58:00 +00:00
7z a -xr@qb64\.ci\common-exclusion.list -xr@qb64\.ci\win-exclusion.list %archive% qb64
2020-01-08 19:00:39 +00:00
FOR /L %% i IN ( 1 ,1 ,10 ) DO (
scp %archive% remote-server:autobuilds/development/
IF ERRORLEVEL 1 (
2020-01-29 15:34:21 +00:00
ECHO scp %archive% failed - attempt %% i/10
2020-01-08 19:00:39 +00:00
) ELSE (
2020-01-29 15:34:21 +00:00
GOTO : doversion
2020-01-08 19:00:39 +00:00
)
)
2020-01-08 09:33:09 +00:00
2020-01-29 15:34:21 +00:00
: doversion
set archive = versioninfo.txt
2020-02-02 04:55:51 +00:00
echo Dev build generated on %DATE:~10,4% -%DATE:~4,2% -%DATE:~7,2% , from git ^< a href=" https://github.com/QB64Team/qb64/commits/development " target=" _blank " ^> %GITHUB_SHA:~0,7% ^< /a^> > %archive%
2020-01-29 15:34:21 +00:00
FOR /L %% i IN ( 1 ,1 ,10 ) DO (
scp %archive% remote-server:autobuilds/development/
IF ERRORLEVEL 1 (
ECHO scp %archive% failed - attempt %% i/10
) ELSE (
EXIT /B 0
)
)