# Windows Flutter Exe

> Build, verify, and package Flutter desktop apps for Windows into a distributable executable bundle (EXE plus required DLL/data dependencies, optional installer-ready artifacts). Use when a user asks to generate a Windows Flutter executable, ship a Windows desktop release, include runtime dependencies, or troubleshoot missing DLL/runtime issues in Windows Flutter distribution.

- **Type:** Skill
- **Install:** `agentstack add skill-boltzmannentropy-osxskills-windows-flutter-exe`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [BoltzmannEntropy](https://agentstack.voostack.com/s/boltzmannentropy)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [BoltzmannEntropy](https://github.com/BoltzmannEntropy)
- **Source:** https://github.com/BoltzmannEntropy/OSXSkills/tree/main/skills/windows-flutter-exe
- **Website:** https://qneura.ai/apps.html

## Install

```sh
agentstack add skill-boltzmannentropy-osxskills-windows-flutter-exe
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Windows Flutter Executable Packaging

## Overview

Produce a Windows Flutter release bundle that runs on end-user machines by packaging the complete `build/windows/x64/runner/Release` output instead of only the `.exe`.
Use this workflow to avoid broken deliveries caused by missing plugin DLLs, `flutter_windows.dll`, or `data/` assets.

## Required Inputs

- App root containing `pubspec.yaml`
- Windows build host (or CI runner) with Flutter + Visual Studio C++ desktop workload
- Target architecture (default: `x64`)
- Output directory for shipping artifacts

## Workflow

### 1) Preflight

- Confirm Windows target is enabled:
  ```bash
  flutter config --enable-windows-desktop
  ```
- Confirm toolchain:
  ```bash
  flutter doctor -v
  ```
- Ensure `flutter doctor` shows no blocking Windows desktop issues.

### 2) Build Release

- From app root:
  ```bash
  flutter pub get
  flutter build windows --release
  ```
- Release output location:
  `build/windows/x64/runner/Release`

### 3) Bundle All Runtime Dependencies

Package the full `Release` folder, not only `.exe`.
Required runtime surfaces:
- `.exe`
- `flutter_windows.dll`
- `data/` directory
- Plugin/native DLLs generated by Flutter plugins

### 4) Create a Distributable Archive

Run the bundled helper:

```bash
bash ./skills/windows-flutter-exe/scripts/build_windows_flutter_bundle.sh \
  --app-root  \
  --out-dir 
```

This script can:
- Build Windows release
- Validate required runtime files
- Copy full Release payload into a versioned bundle directory
- Generate SHA256 manifest
- Produce a `.zip` artifact

### 5) Optional VC++ Redistributable Inclusion

If your distribution policy requires bundling the VC++ runtime installer, provide it to the script:

```bash
bash ./skills/windows-flutter-exe/scripts/build_windows_flutter_bundle.sh \
  --app-root  \
  --out-dir  \
  --vc-redist-path 
```

### 6) Clean-Machine Validation (Release Gate)

- Test the packaged bundle on a clean Windows machine/VM.
- Confirm app launch without missing DLL errors.
- Confirm plugin features that depend on native libraries.

## Troubleshooting

- `Missing flutter_windows.dll`:
  package entire `Release` directory, not exe-only.
- `MSVCP140.dll` or `VCRUNTIME140.dll` errors:
  install or ship Microsoft Visual C++ Redistributable (x64).
- App runs locally but not on user machine:
  validate on clean VM and compare bundle contents with CI artifact.
- Plugin feature fails in release only:
  verify plugin DLLs are present in packaged bundle.

## Deliverables Checklist

- [ ] `windows-x64/` folder containing exe + all dependencies
- [ ] `windows-x64.zip` archive
- [ ] `SHA256SUMS.txt`
- [ ] Optional `vc_redist.x64.exe` inside bundle (if policy requires)

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [BoltzmannEntropy](https://github.com/BoltzmannEntropy)
- **Source:** [BoltzmannEntropy/OSXSkills](https://github.com/BoltzmannEntropy/OSXSkills)
- **License:** MIT
- **Homepage:** https://qneura.ai/apps.html

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-boltzmannentropy-osxskills-windows-flutter-exe
- Seller: https://agentstack.voostack.com/s/boltzmannentropy
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
