Created
November 8, 2022 08:26
-
-
Save junjanjon/6e0cd26ff38418c9739e0bb0c2ad6d20 to your computer and use it in GitHub Desktop.
apk ファイルを unzip 展開するスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -xeu | |
export TARGET_APK_PATH='target/debug.apk' | |
export TARGET_APK_NAME=$(basename "${TARGET_APK_PATH}") | |
export UNZIP_DIR='unziped_apk' | |
# clean | |
rm -rf ${UNZIP_DIR} | |
# unzip | |
mkdir -p ${UNZIP_DIR} | |
cp ${TARGET_APK_PATH} ${UNZIP_DIR} | |
mv ${UNZIP_DIR}/${TARGET_APK_NAME} ${UNZIP_DIR}/apk.zip | |
unzip ${UNZIP_DIR}/apk.zip -d ${UNZIP_DIR} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment