Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@baba-s
Last active April 12, 2021 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baba-s/e035511887952d4223662a6c70952a92 to your computer and use it in GitHub Desktop.
Save baba-s/e035511887952d4223662a6c70952a92 to your computer and use it in GitHub Desktop.
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