forked from LyraVoid/FolkPatch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild-Debug.bat
More file actions
40 lines (35 loc) · 774 Bytes
/
Build-Debug.bat
File metadata and controls
40 lines (35 loc) · 774 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
30
31
32
33
34
35
36
37
38
39
40
@echo off
chcp 65001 > nul 2>&1
setlocal enabledelayedexpansion
echo [1/4] Entering apd directory...
cd /d apd
if errorlevel 1 (
echo Error: Failed to enter apd directory, please check if the directory exists!
pause
exit /b 1
)
echo [2/4] Executing cargo clean...
cargo clean
if errorlevel 1 (
echo Error: cargo clean execution failed!
pause
exit /b 1
)
echo [3/4] Returning to parent directory...
cd ..
if errorlevel 1 (
echo Error: Failed to return to parent directory!
pause
exit /b 1
)
echo [4/4] Executing gradlew.bat assembleDebug...
.\gradlew.bat assembleDebug
if errorlevel 1 (
echo Error: gradlew.bat assembleDebug execution failed!
pause
exit /b 1
)
echo.
echo All commands executed successfully!
pause
endlocal