代码拉取完成,页面将自动刷新
echo begin build apk
@REM echo curDir:%~dp0
set LOCAL_PATH=%~dp0
echo LOCAL_PATH:%LOCAL_PATH%
set MID_APK=mid.apk
set MID_APK2=mid2.apk
set DST_APK=dst_signed.apk
set OUT_DIR=apkdir
set KEYSTORE_PATH=my.jks
set STORE_PASSWD=123456
set STORE_ALIAS=my
set JAR_SIGNER_DIR=C:\Program Files\Java\jdk1.8.0_321\bin
set ZIP_ALIGN_DIR=D:\DevelopTools\Android\Sdk\build-tools\30.0.2
del /s /q /f %DST_APK%
@REM java -jar apktool.jar d -f %LOCAL_PATH%/%SRC_APK% -o %OUT_DIR%
java -jar apktool.jar b -o %LOCAL_PATH%/%MID_APK% %OUT_DIR%
@REM C:
@REM cd %JAR_SIGNER_DIR%
cd /d %JAR_SIGNER_DIR%
jarsigner -verbose -keystore %LOCAL_PATH%/%KEYSTORE_PATH% -storepass %STORE_PASSWD% -signedjar %LOCAL_PATH%/%MID_APK2% %LOCAL_PATH%/%MID_APK% %STORE_ALIAS%
@REM D:
@REM cd %ZIP_ALIGN_DIR%
cd /d %ZIP_ALIGN_DIR%
zipalign -v 4 %LOCAL_PATH%/%MID_APK2% %LOCAL_PATH%/%DST_APK%
cd /d %LOCAL_PATH%
del /s /q /f %MID_APK%
del /s /q /f %MID_APK2%
echo end build apk
pause
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。