Skip to content

Commit

Permalink
build_mpcvr.cmd - изменение для возможности сборки на github action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksoid1978 committed Feb 13, 2024
1 parent 2e8e844 commit 473d1f4
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions build_mpcvr.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@ECHO OFF
REM (C) 2018-2021 see Authors.txt
REM (C) 2018-2024 see Authors.txt
REM
REM This file is part of MPC-BE.
REM
Expand Down Expand Up @@ -27,6 +27,7 @@ SET "BUILDTYPE=Build"
SET "BUILDCFG=Release"
SET "SUFFIX="
SET "SIGN=False"
SET "Wait=True"

FOR %%A IN (%*) DO (
IF /I "%%A" == "Debug" (
Expand All @@ -36,8 +37,12 @@ FOR %%A IN (%*) DO (
IF /I "%%A" == "Sign" (
SET "SIGN=True"
)
IF /I "%%A" == "NoWait" (
SET "Wait=False"
)
)


IF /I "%SIGN%" == "True" (
IF NOT EXIST "%~dp0signinfo.txt" (
CALL :SubMsg "WARNING" "signinfo.txt not found."
Expand Down Expand Up @@ -119,7 +124,9 @@ IF DEFINED SEVENZIP (
)

TITLE Compiling %TITLE% [FINISHED]
TIMEOUT /T 3
IF /I "%Wait%" == "True" (
TIMEOUT /T 3
)
ENDLOCAL
EXIT

Expand Down Expand Up @@ -163,8 +170,10 @@ IF /I "%~1" == "ERROR" (
)
ECHO ------------------------------ & ECHO.
IF /I "%~1" == "ERROR" (
ECHO Press any key to close this window...
PAUSE >NUL
IF /I "%Wait%" == "True" (
ECHO Press any key to close this window...
PAUSE >NUL
)
ENDLOCAL
EXIT
) ELSE (
Expand Down

0 comments on commit 473d1f4

Please sign in to comment.