This directory contains scripts to build Windows executable installers for MiroFish.
- Windows 10 or later
- PowerShell 5.1+
- Python 3.9+ (for embedded mode)
- Node.js 18+ (for frontend build)
- Inno Setup (optional, for creating setup.exe)
Smaller file size (~200-300MB), faster build:
.\installer\build.ps1Self-contained executable, but larger file size (~1GB+):
.\installer\build.ps1 -PyInstaller# Skip frontend build (if unchanged)
.\installer\build.ps1 -SkipFrontend
# Skip backend processing (if unchanged)
.\installer\build.ps1 -SkipBackend
# Skip installer creation (only generate executables)
.\installer\build.ps1 -SkipInstaller
# Clean old builds and start fresh
.\installer\build.ps1 -Cleandist/MiroFish_Setup_0.1.1.exe- Windows installerdist/MiroFish_Portable/- Portable version (no installation required)
- User downloads and runs
MiroFish_Setup_0.1.1.exe - Setup wizard prompts for API key
- Installation completes
- User can launch via desktop shortcut or start menu
- Browser opens automatically to
http://localhost:5000
installer/
├── build.ps1 # Main build script
├── setup.iss # Inno Setup configuration
├── embedded/ # Embedded Python files
│ ├── python.zip # Python runtime
│ └── requirements.txt
├── assets/ # Installer assets
│ ├── icon.ico # Application icon
│ └── banner.bmp # Setup wizard banner
└── templates/ # Configuration templates
├── config.json.template
└── start.ps1.template
To modify the installer:
- Edit
build.ps1for build process changes - Edit
setup.issfor installer UI changes - Edit
start.ps1.templatefor launch behavior changes
Ensure Python 3.9+ is in your PATH:
python --versionInstall Inno Setup from https://jrsoftware.org/isdl.php
Use -SkipFrontend if frontend hasn't changed, or use embedded mode instead of PyInstaller.