Skip to content

v1.1.0 - Single-file Windows EXE (no Python needed)

Latest

Choose a tag to compare

@zhenyu666-debug zhenyu666-debug released this 05 Jul 02:01

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)

  1. Bundles index.html, manifest.json, sw.js, offline.html, and 8 PNG icons
  2. Extracts them at runtime to a temp directory via sys._MEIPASS
  3. Auto-picks a free port in 8080-8089
  4. Starts a local HTTP server serving the bundled PWA
  5. Opens the user default browser after 3 seconds
  6. Console window shows URL + port + shutdown instructions
  7. Closes cleanly when the user closes the console

How to Use (30 seconds)

  1. Download ditiediantu-v1.1.0.exe below (8 MB)
  2. Double-click the EXE
  3. Wait 3 seconds - browser opens with the app
  4. 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.