Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check env var to determine the apk path #40

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions scripts/rundocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

CONTAINER_HOME=/home/kivy
CONTAINER_NAME=android_container
APK_CONTAINER_PATH="${CONTAINER_HOME}/dist/"

# create the container to be used throughout the script
echo -ne "Creating container ${CONTAINER_NAME} \n\t id: "
Expand Down Expand Up @@ -32,9 +33,13 @@ fi
echo "Starting ${CONTAINER_NAME}"
docker start -i ${CONTAINER_NAME}

# check env var to determine the apk path
if [ "${P4A_RELEASE_KEYSTORE}" == "/home/kivy/" ]; then
APK_CONTAINER_PATH=${CONTAINER_HOME}
fi
# copy the apk to our host. Handles permissions.
echo -e "Coping APK \n\t From ${CONTAINER_NAME}:${CONTAINER_HOME}/dist/ to ${PWD}"
docker cp ${CONTAINER_NAME}:${CONTAINER_HOME}/dist/ .
echo -e "Coping APK \n\t From ${CONTAINER_NAME}:${APK_CONTAINER_PATH} to ${PWD}"
docker cp ${CONTAINER_NAME}:${APK_CONTAINER_PATH} .

# manually remove the container afterward
echo -n "Removing "
Expand Down