Files
owlTransmitter/docs/venv.ipynb
2026-04-10 11:43:54 +08:00

109 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"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
}