Update build script

This commit is contained in:
topjohnwu 2017-03-12 01:24:30 +08:00
parent 212a303347
commit c55aa92d4f
2 changed files with 16 additions and 16 deletions

View File

@ -53,14 +53,14 @@ EXIT /B %ERRORLEVEL%
ECHO ************************ ECHO ************************
ECHO * Copying binaries ECHO * Copying binaries
ECHO ************************ ECHO ************************
COPY /Y libs\armeabi-v7a\* zip_static\arm CALL :mkcp libs\armeabi-v7a\* zip_static\arm
COPY /Y libs\arm64-v8a\* zip_static\arm64 CALL :mkcp libs\arm64-v8a\* zip_static\arm64
COPY /Y libs\x86\* zip_static\x86 CALL :mkcp libs\x86\* zip_static\x86
COPY /Y libs\x86_64\* zip_static\x64 CALL :mkcp libs\x86_64\* zip_static\x64
CALL :mkcp libs\armeabi-v7a\bootimgtools uninstaller\arm CALL :mkcp libs\armeabi-v7a\magiskboot uninstaller\arm
CALL :mkcp libs\arm64-v8a\bootimgtools uninstaller\arm64 CALL :mkcp libs\arm64-v8a\magiskboot uninstaller\arm64
CALL :mkcp libs\x86\bootimgtools uninstaller\x86 CALL :mkcp libs\x86\magiskboot uninstaller\x86
CALL :mkcp libs\x86_64\bootimgtools uninstaller\x64 CALL :mkcp libs\x86_64\magiskboot uninstaller\x64
EXIT /B %ERRORLEVEL% EXIT /B %ERRORLEVEL%
:clean :clean
@ -94,7 +94,7 @@ EXIT /B %ERRORLEVEL%
CALL :usage CALL :usage
EXIT /B %ERRORLEVEL% EXIT /B %ERRORLEVEL%
) )
IF NOT EXIST "zip_static\arm\bootimgtools" CALL :error "Missing binaries! Please run '%me% build' before zipping!" IF NOT EXIST "zip_static\arm\magiskboot" CALL :error "Missing binaries! Please run '%me% build' before zipping!"
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL% IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
ECHO ************************ ECHO ************************
ECHO * Adding version info ECHO * Adding version info
@ -124,7 +124,7 @@ EXIT /B %ERRORLEVEL%
:uninstaller :uninstaller
SET OK=y SET OK=y
IF NOT EXIST "uninstaller\arm\bootimgtools" CALL :error "Missing binaries! Please run '%me% build' before zipping!" IF NOT EXIST "uninstaller\arm\magiskboot" CALL :error "Missing binaries! Please run '%me% build' before zipping!"
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL% IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
ECHO ************************ ECHO ************************
ECHO * Copying Files ECHO * Copying Files

View File

@ -58,17 +58,17 @@ build_bin() {
echo "* Copying binaries" echo "* Copying binaries"
echo "************************" echo "************************"
mkcp "libs/armeabi-v7a/*" zip_static/arm mkcp "libs/armeabi-v7a/*" zip_static/arm
mkcp libs/armeabi-v7a/bootimgtools uninstaller/arm mkcp libs/armeabi-v7a/magiskboot uninstaller/arm
mkcp "libs/arm64-v8a/*" zip_static/arm64 mkcp "libs/arm64-v8a/*" zip_static/arm64
mkcp libs/arm64-v8a/bootimgtools uninstaller/arm64 mkcp libs/arm64-v8a/magiskboot uninstaller/arm64
mkcp "libs/x86/*" zip_static/x86 mkcp "libs/x86/*" zip_static/x86
mkcp libs/x86/bootimgtools uninstaller/x86 mkcp libs/x86/magiskboot uninstaller/x86
mkcp "libs/x86_64/*" zip_static/x64 mkcp "libs/x86_64/*" zip_static/x64
mkcp libs/x86_64/bootimgtools uninstaller/x64 mkcp libs/x86_64/magiskboot uninstaller/x64
} }
zip_package() { zip_package() {
[ ! -f "zip_static/arm/bootimgtools" ] && error "Missing binaries!! Please run '$0 build' before zipping" [ ! -f "zip_static/arm/magiskboot" ] && error "Missing binaries!! Please run '$0 build' before zipping"
echo "************************" echo "************************"
echo "* Adding version info" echo "* Adding version info"
echo "************************" echo "************************"
@ -98,7 +98,7 @@ zip_package() {
} }
zip_uninstaller() { zip_uninstaller() {
[ ! -f "uninstaller/arm/bootimgtools" ] && error "Missing binaries!! Please run '$0 build' before zipping" [ ! -f "uninstaller/arm/magiskboot" ] && error "Missing binaries!! Please run '$0 build' before zipping"
echo "************************" echo "************************"
echo "* Copying files" echo "* Copying files"
echo "************************" echo "************************"