-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
27 lines (23 loc) · 823 Bytes
/
Copy pathbuild.bat
File metadata and controls
27 lines (23 loc) · 823 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
@echo off
setlocal enabledelayedexpansion
:: Define targets here
set TARGETS=J10_R7CA061 J10_R7CA065 J20_R7CA064 J108_R7EA011 U10_R7AA071 U10_R7BA084 U100_R7AA076 W20_R7DA062 W705_R1GA031 W995_R1HA035
for %%T in (%TARGETS%) do (
echo Building for %%T...
mkdir "build\%%T" 2>nul
set target=%%T
"fasmarm\FASMARM.EXE" arm.asm "build\%%T\arm.bin"
if errorlevel 1 (
echo Failed to build for %%T
pause
exit /b 1
)
:: Create a patched JAR for each target
echo Creating %%T Patcher.jar...
copy /Y "patcher\Patcher.jar" "build\%%T\Patcher.jar" >nul
copy /Y "patcher\Patcher.jad" "build\%%T\Patcher.jad" >nul
jar uf "build\%%T\Patcher.jar" -C "build\%%T" arm.bin
echo done
)
echo Build and packaging completed successfully!
pause