tech df4daea1c7 feat: rewrite APK parser to use version as delimiter
- Changed parseApkFilename to accept version parameter
- New parsing logic splits filename by version string to extract prefix
- detectEnvironment now takes prefix and configured tabs as arguments
- Environments not in APK_TABS are mapped to 'other' instead of hardcoded mapping
- Added getApkTabs helper function to expose configured tabs
- Updated all tests to use new API with version parameter

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 23:33:45 +08:00
2026-03-04 13:06:26 +08:00
2026-03-04 02:16:35 +08:00

资源下载网站

基于 Next.js 构建的内网 APK 资源下载工具。

功能

  • 按项目、版本搜索 APK 文件
  • 支持按 commit id 过滤
  • 简单的用户认证
  • 简洁美观的界面

开发

npm install
npm run dev

访问 http://localhost:3000

环境变量

.env.local 中配置:

AUTH_USERNAME=admin
AUTH_PASSWORD=changeme
RESOURCE_PATH=/Users/tech/workspace/n3-world/handy-tools/ftdl

构建

npm run build
npm start

资源目录结构

RESOURCE_PATH/
├── FT/
│   ├── 0_42/
│   │   └── apks/
│   │       └── *.apk
│   └── 0_44/
│       └── apks/
│           └── *.apk
├── FT_DEV/
│   └── ...
└── FT_Rustore/
    └── ...
Description
基于 Next.js 构建的内网 APK 资源下载工具。
Readme 174 KiB
Languages
TypeScript 97.2%
JavaScript 1.9%
CSS 0.9%