Skip to content

Instantly share code, notes, and snippets.

@baba-s
Last active Apr 12, 2021
Embed
What would you like to do?
SET BUNDLETOOL=C:\bundletool-all-1.2.0.jar
SET AAB_PATH=%1
SET APKS_PATH=%~p1%~n1.apks
REM 同名の .apks が存在するとエラーが発生するので削除しておく
del %APKS_PATH%
REM .aab から .apks を生成
java -Xmx1G -jar ^
%BUNDLETOOL% ^
build-apks ^
--bundle=%AAB_PATH% ^
--output=%APKS_PATH% ^
--local-testing
REM 生成した .apks を端末にインストール
java -Xmx1G -jar ^
%BUNDLETOOL% ^
install-apks ^
--apks=%APKS_PATH%
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment