--- title: 目录结构与关键文件 type: fact permalink: main/projects/6f47523e-e22e-4cdd-bd18-76e5e474ee0c/目录结构与关键文件 stable_id: aecf7e99-3d31-4d3f-ada5-928eee77c95b scope: project project_id: 6f47523e-e22e-4cdd-bd18-76e5e474ee0c memory_type: fact status: active revision: 1 restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2 created_at: '2026-09-23T15:00:02.264761+00:00' updated_at: '2026-09-23T15:00:02.264816+00:00' tags: - structure - files --- ``` start.py 前后端一键启动(Uvicorn 9001 + Vite 9000) web/server/main.py FastAPI 后端(~1082 行):配置、构建、日志、产物 web/server/catalog.py 软件目录同步逻辑 web/frontend/src/App.vue Vue 前端主界面(~1495 行) scripts/build-docker.ps1 Windows Docker 启动脚本 scripts/build.sh 容器内 OpenWrt 构建主流程 scripts/build_config.py 配置转换(~1192 行):JSON → .config、UCI defaults scripts/patch_ax9000.py AX9000 分区、DTS、升级和内核补丁 scripts/docker-entrypoint.sh 容器入口,gosu 切换 builder 用户 Dockerfile Ubuntu 24.04 构建镜像定义 docker-compose.yml 简化的 Compose 入口 profiles/ax9000/ 设备配置目录 profile.env TARGET_DIR、DEVICE_ID、OPENWRT_REPO seed.config 基础 Kconfig presets.json 主题、Web 服务器、代理、防火墙预设 feeds.json 默认编译 feeds packages.list 基础软件包列表 default-options.json 前端默认选项 package-catalog.json 精选软件目录 kernel-patches/ EMC2305 风扇内核补丁 packages/ 本地 OpenWrt 包(luci-app-ax900-hardware) .runtime/ 运行时缓存(已 gitignore) outputs/ax9000/ 构建产物(已 gitignore) ```