You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .ci/build_windows.bat
+2-9Lines changed: 2 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -28,15 +28,8 @@
28
28
:: https://stackoverflow.com/a/6362922
29
29
for /f "tokens=* USEBACKQ"%%gin (`python "scripts\mumble-version.py"`) do (set "VERSION=%%g")
30
30
31
-
:: For some really stupid reason we can't have this statement and the one where we set the VERSION variable in the same if body as
32
-
:: in that case the variable substitution of that variable in the expression below fails (is replaced with empty string)
33
-
:: Also we can't anything else inside the if body as this will cause the curl command to always be executed.
34
-
ifdefined MUMBLE_BUILD_NUMBER_TOKEN (
35
-
for /f "tokens=* USEBACKQ"%%gin (`curl "https://mumble.info/get-build-number?commit=%MUMBLE_SOURCE_COMMIT%&version=%VERSION%&token=%MUMBLE_BUILD_NUMBER_TOKEN%"`) do (set "BUILD_NUMBER=%%g")
36
-
) else (
37
-
echo Build number token not set - defaulting to 0
38
-
setBUILD_NUMBER=0
39
-
)
31
+
for /f "tokens=* USEBACKQ"%%gin (`python "scripts\mumble-build-number.py" --commit "%MUMBLE_SOURCE_COMMIT%" --version "%VERSION%"^
32
+
--password "%MUMBLE_BUILD_NUMBER_TOKEN%" --default 0`) do (set "BUILD_NUMBER=%%g")
0 commit comments