{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "a5470bfd", "metadata": {}, "outputs": [], "source": [ "python.exe -m venv .venv\n", "# 激活虚拟环境\n", ".venv\\Scripts\\Activate.ps1" ] }, { "cell_type": "markdown", "id": "e28e227b", "metadata": {}, "source": [ "### Install the BeeWare tools" ] }, { "cell_type": "code", "execution_count": null, "id": "fbe4e77f", "metadata": {}, "outputs": [], "source": [ "pip install briefcase" ] }, { "cell_type": "markdown", "id": "1143705e", "metadata": {}, "source": [ "### 创建一个名为 项目" ] }, { "cell_type": "code", "execution_count": null, "id": "7e5634a3", "metadata": {}, "outputs": [], "source": [ "briefcase new" ] }, { "cell_type": "code", "execution_count": null, "id": "e215d061", "metadata": {}, "outputs": [], "source": [ "cd pytransmitter \n", "\n", "# 开发者(或 dev)模式启动项目\n", "briefcase dev" ] }, { "cell_type": "markdown", "id": "55dcb676", "metadata": {}, "source": [ "### 打包/分发" ] }, { "cell_type": "code", "execution_count": null, "id": "6b4b4e18", "metadata": {}, "outputs": [], "source": [ "briefcase create # 创建应用程序脚手架\n", "briefcase build # 构建您的应用程序" ] }, { "cell_type": "markdown", "id": "3995f193", "metadata": {}, "source": [ "#### 构建安卓包\n", "briefcase create android # 创建应用程序脚手架\n", "briefcase build android # 构建您的应用程序\n", "briefcase run android # 在虚拟设备上运行应用程序" ] } ], "metadata": { "kernelspec": { "display_name": ".venv", "language": "python", "name": "python3" }, "language_info": { "name": "python", "version": "3.13.5" } }, "nbformat": 4, "nbformat_minor": 5 }