Skip to content

Instantly share code, notes, and snippets.

@junjanjon
Created November 8, 2022 08:26
Show Gist options
  • Save junjanjon/6e0cd26ff38418c9739e0bb0c2ad6d20 to your computer and use it in GitHub Desktop.
Save junjanjon/6e0cd26ff38418c9739e0bb0c2ad6d20 to your computer and use it in GitHub Desktop.
apk ファイルを unzip 展開するスクリプト
#!/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