forked from kpreisser/MouseClickSimulator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.cmd
More file actions
26 lines (21 loc) · 989 Bytes
/
BUILD.cmd
File metadata and controls
26 lines (21 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@echo off
REM This build script allows you to build the TTR Mouse Click Simulator.
REM For information about prerequisites, see the Wiki page at
REM https://github.com/TTExtensions/MouseClickSimulator/wiki/Running-the-Simulator
SetLocal ENABLEDELAYEDEXPANSION
REM Change the working directory to the script's directory.
REM E.g. if the user right-clicks on the script and selects "Run as Administrator",
REM the working directory would be the windows\system32 dir.
cd /d "%~dp0"
echo.Building the TTR Mouse Click Simulator...
echo.
REM Note that we need to specify both "Configuration" and "Platform" parameters, because
REM otherwise MSBuild will fill missing parameters from environment variables (and some
REM systems may have set a "Platform" variable).
"dotnet.exe" publish "TTMouseclickSimulator\TTMouseclickSimulator.csproj" -f net8.0-windows -c Release -p:Platform=AnyCPU --no-self-contained
if not errorlevel 1 (
echo.
echo.Build successful^^!
)
pause
exit /b !ERRORLEVEL!