-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-demo.bat
More file actions
29 lines (24 loc) · 778 Bytes
/
Copy pathrun-demo.bat
File metadata and controls
29 lines (24 loc) · 778 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
27
28
29
@echo off
setlocal
cd /d "%~dp0"
echo [1/3] Building FastMouseLogger...
call mvn clean install -DskipTests -q
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] FastMouseLogger build failed.
pause
exit /b %ERRORLEVEL%
)
powershell -NoProfile -Command "Unblock-File -Path '%USERPROFILE%\.fastcore\native\fastmouse\*', '%~dp0release\*' -ErrorAction SilentlyContinue" >nul 2>&1
echo [2/3] Compiling Demo...
cd examples\Demo
call mvn compile dependency:build-classpath "-Dmdep.outputFile=cp.txt" "-DincludeScope=runtime" -q
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] Demo compilation failed.
pause
exit /b %ERRORLEVEL%
)
echo [3/3] Running Demo...
set /p CP=<cp.txt
java --enable-native-access=ALL-UNNAMED -cp "target\classes;%CP%" fastmouselogger.demo.Demo
cd ..\..
pause