Releases: zhenyu666-debug/ditiediantu
Release list
v1.1.0 - Single-file Windows EXE (no Python needed)
What is new in v1.1.0
Add a single-file Windows EXE so anyone can run the app with zero setup - no Python, no Node, no dependencies. Just double-click.
New
- ditiediantu.exe (8.2 MB) - single-file Windows executable
- launcher.py - the Python source that gets bundled into the EXE
- .gitignore - excludes build/, dist/, *.spec, pycaches, logs
How the EXE Works (built with PyInstaller 6.x)
- Bundles index.html, manifest.json, sw.js, offline.html, and 8 PNG icons
- Extracts them at runtime to a temp directory via sys._MEIPASS
- Auto-picks a free port in 8080-8089
- Starts a local HTTP server serving the bundled PWA
- Opens the user default browser after 3 seconds
- Console window shows URL + port + shutdown instructions
- Closes cleanly when the user closes the console
How to Use (30 seconds)
- Download ditiediantu-v1.1.0.exe below (8 MB)
- Double-click the EXE
- Wait 3 seconds - browser opens with the app
- Close the console window to stop
Test Results
- pyinstaller --onefile --console build: OK, 8.2 MB
- End-to-end run of the EXE: OK
- GET /: 200, 33,964 bytes
- GET /manifest.json: 200, 1,561 bytes
- GET /sw.js: 200, 3,948 bytes
- GET /icons/icon-192.png: 200, 2,837 bytes
- GET /missing: 404 (correct)
Compatibility
- Windows 7 SP1 / 8 / 10 / 11 (any x64)
- No installer needed
- No admin rights needed
- No Python needed
Built on top of v1.0.1.
v1.0.1 - One-click launchers (double-click to run)
What is New in v1.0.1
Add double-click launcher files so anyone can run the app without touching a terminal.
New Files
- start.bat - Windows (double-click)
- start.py - Cross-platform Python (double-click)
- start.sh - Linux (chmod +x, run from terminal)
- start.command - macOS (double-click)
Launcher Behavior
- Detects Python automatically (py -3 / python3 / python)
- Auto-selects a free port in 8080-8089
- Opens your default browser 3 seconds after server start
- Shows clear status (URL, port, instructions)
- Close the launcher window to stop the server
Test Results
- start.bat: syntax-checked in cmd
- start.py: ast.parse OK, end-to-end run tested - all 13 PWA endpoints returned 200, missing resource returned 404
- start.sh, start.command: bash syntax-checked
How to Use
- Download ditiediantu-v1.0.1.zip below (or any source archive)
- Extract
- Double-click the appropriate launcher:
- Windows: start.bat
- macOS: start.command
- Linux: ./start.sh
- Cross-platform: start.py
No terminal required.
Note
If Python is not installed, the launcher will print install instructions. Download Python 3.6+ from https://www.python.org/downloads/ (check Add Python to PATH during install).
Built on top of v1.0.0 (same index.html, manifest.json, sw.js, 8 icons).
🚇 v1.0.0 — 北京地铁客流监控 PWA 首发
🚇 北京地铁实时客流监控 PWA v1.0.0
首发正式版 — 22 条北京地铁运营线路、实时模拟客流点云、可离线访问的渐进式 Web 应用。
✨ 功能
- 22 条北京地铁线路(含 1/2/4-10/13-17/19 号线 + 昌平/亦庄/房山/S1/西郊/首都机场/大兴机场线)
- 每秒刷新点云形式的实时客流模拟(基于早晚高峰、平峰、夜间的客流因子 + 随机噪声)
- 线路切换 / 站点筛选 — 点击线路切换查看某条线路详情,点击站点筛选单站数据
- 离线访问 — Service Worker 缓存静态资源 + 网络优先缓存策略 + 离线兜底页
- PWA 可安装 — iOS / Android / 桌面浏览器可添加到主屏,独立窗口运行
- 响应式移动端设计 — sticky header + 触摸优化 + 全屏 / 分享 API
📦 Artifacts
| 文件 | 说明 |
|---|---|
| ditiediantu-v1.0.0.zip | 完整 PWA 包(解压即可通过 python -m http.server 运行) |
| Source code (zip) / (tar.gz) | GitHub 自动生成 |
✅ 本次测试结果
| 项目 | 结果 |
|---|---|
| manifest.json JSON 解析 | OK(包含 8 个图标声明) |
| 全部 8 个图标 PNG 文件存在且尺寸正确 (72/96/128/144/152/192/384/512) | OK |
| sw.js JS 语法检查 ( | |
| ode --check) | OK |
| index.html 内嵌 JS 语法检查 | OK |
| Service Worker 关键事件 (install / �ctivate / etch) | 全部注册 |
| 本地 HTTP server 端到端响应(13 资源 + 1 错误用例) | 13×200, 1×404 |
| generate_icons.py(Pillow)端到端重生成 | OK |
🚀 快速部署
\�ash
解压
unzip ditiediantu-v1.0.0.zip -d metro-pwa
cd metro-pwa
本地预览
python -m http.server 8080
浏览器打开 http://localhost:8080
或者启用 GitHub Pages:在仓库 Settings → Pages → Source 选 main 分支 → Save,几分钟后即可在 https://.github.io/ditiediantu/ 访问。
🛠 技术栈
- 原生 HTML / CSS / JavaScript(无构建工具,无依赖)
- Canvas 2D 点云渲染(每帧 60 个数据点,DPR 自适应)
- Web App Manifest + Service Worker(PWA 标准)
📋 浏览器兼容
Chrome 67+ · Safari 11.1+ · Firefox 44+ · Edge 79+ · iOS Safari 11.3+ · Android Chrome 67+
📜 许可证
MIT