-
-
Save Xnuvers007/28d23ff20c0b7961fc08546c78486e1b to your computer and use it in GitHub Desktop.
KivyApp to APK.ipynb
This file contains hidden or 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
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"name": "KivyApp to APK.ipynb", | |
"provenance": [], | |
"collapsed_sections": [], | |
"authorship_tag": "ABX9TyPffW/YNFvEJmN7+ls4hzoD", | |
"include_colab_link": true | |
}, | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3" | |
} | |
}, | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "view-in-github", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"<a href=\"https://colab.research.google.com/gist/kaustubhgupta/0d06ea84760f65888a2488bac9922c25/kivyapp-to-apk.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "Yzg0jnV7dHTp" | |
}, | |
"source": [ | |
"!pip install buildozer" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "XX3isEFydNar" | |
}, | |
"source": [ | |
"!pip install cython==0.29.19" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "QZRYW9UvdcDt" | |
}, | |
"source": [ | |
"!sudo apt-get install -y \\\n", | |
" python3-pip \\\n", | |
" build-essential \\\n", | |
" git \\\n", | |
" python3 \\\n", | |
" python3-dev \\\n", | |
" ffmpeg \\\n", | |
" libsdl2-dev \\\n", | |
" libsdl2-image-dev \\\n", | |
" libsdl2-mixer-dev \\\n", | |
" libsdl2-ttf-dev \\\n", | |
" libportmidi-dev \\\n", | |
" libswscale-dev \\\n", | |
" libavformat-dev \\\n", | |
" libavcodec-dev \\\n", | |
" zlib1g-dev" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "S9Z7KfTOnXuZ" | |
}, | |
"source": [ | |
"!sudo apt-get install -y \\\n", | |
" libgstreamer1.0 \\\n", | |
" gstreamer1.0-plugins-base \\\n", | |
" gstreamer1.0-plugins-good" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "Gjp7v6bTnd5V" | |
}, | |
"source": [ | |
"!sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev openssl libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libncursesw5-dev libffi-dev uuid-dev libffi6" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "DA3BNyuKnrI1" | |
}, | |
"source": [ | |
"!sudo apt-get install libffi-dev" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "EeTysn9dntOO" | |
}, | |
"source": [ | |
"!buildozer init" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "tLbircO10N0a" | |
}, | |
"source": [ | |
"!buildozer -v android debug" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "YZPSi3j4oweu" | |
}, | |
"source": [ | |
"!buildozer android clean" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "wyVLXEgJFeqv" | |
}, | |
"source": [ | |
"" | |
], | |
"execution_count": null, | |
"outputs": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
!pip3 install --upgrade buildozer
!sudo apt update
!sudo apt install -y git zip unzip openjdk-17-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev libssl-dev
!pip3 install --user --upgrade Cython==0.29.33 virtualenv # the --user should be removed if you do this in a venv
!export PATH=$PATH:~/.local/bin/
!buildozer init
!buildozer -v android debug