This repository was archived by the owner on Jan 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ configuration: Release+ReleaseDLLStaticDeps
1111platform : x86+x64
1212
1313environment :
14+ GITHUBTOKEN :
15+ secure : aiTcAD/YitqgwuiBdC3ImXiUlHfIIDD7ayjCs3Y3aAO5vEm1gA7flCZpUZ60a5am
1416 matrix :
1517 - MSVC_VER : 12
1618 - MSVC_VER : 14
Original file line number Diff line number Diff line change @@ -97,7 +97,12 @@ SET REPONAME=%~1
9797REM Get latest release
9898ECHO %REPONAME% : Getting latest release...
9999SET UPSTREAMAPIURL = %UPSTREAMURL:github.com =api.github.com/repos %
100- powershell -nologo -noprofile -command " try { Invoke-RestMethod -Uri %UPSTREAMAPIURL% /%REPONAME% /releases/latest > latest.json } catch {exit 1}"
100+ REM Check if secure OAuth is available
101+ IF " %GITHUBTOKEN% " == " " (
102+ powershell -nologo -noprofile -command " try { Invoke-RestMethod -Uri %UPSTREAMAPIURL% /%REPONAME% /releases/latest > latest.json } catch {exit 1}"
103+ ) ELSE (
104+ powershell -nologo -noprofile -command " try { Invoke-RestMethod -Uri %UPSTREAMAPIURL% /%REPONAME% /releases/latest -Headers @{'Authorization' = 'token %GITHUBTOKEN% '} > latest.json } catch {exit 1}"
105+ )
101106IF NOT %ERRORLEVEL% == 0 ( ECHO Failed getting latest %REPONAME% release & EXIT /B 1 )
102107REM Get tag for latest release
103108FOR /F " tokens=* USEBACKQ" %%F IN (`TYPE latest.json ^ | FINDSTR /B " tag_name" `) DO SET TAG = %%F
You can’t perform that action at this time.
0 commit comments