Skip to content

hahouari/inno_bundle

Repository files navigation

Inno Bundle

pub package inno setup hahouari-inno-setup

CLI tool that simplifies bundling flutter apps into Windows installers using Inno Setup.

Guide

1. Install inno_bundle package into your project

dart pub add dev:inno_bundle

2. Build the Installer

Run the build command on release mode

dart run inno_bundle

Note: This will generate the initial configuration if not present in your pubspec.yaml.

Use Shorebird for the app build (optional)

To build using Shorebird instead of Flutter (enables code-push workflows):

dart run inno_bundle --build-tool shorebird

Pass extra Shorebird args if needed (example):

dart run inno_bundle --build-tool shorebird --shorebird-args "--artifact=exe"

More Options and Examples

You can find detailed documentation on customizing inno_bundle, including examples, on the GitHub wiki pages.

To configure your installer, see Configuration Options, and if you need other use cases with our CLI tool, look up CLI Options.

Using GitHub Workflow?

To automate the process of building the installer with GitHub Actions, refer to this demo.

You can copy the build.yaml file into your project and make sure to update the push branch. This setup will build the installer and publish it to GitHub Releases with the appropriate versioning.

DLL Files Handling

inno_bundle handles including all necessary DLL files within the installer. For more info, refer to this page.

Reporting Issues

If you encounter any issues please report them here.

Shorebird support (optional)

By default, inno_bundle uses the Flutter CLI to build your app (flutter build windows). You can opt into Shorebird releases to enable code-push based workflows.

  • CLI flags:
    • --build-tool shorebird to use Shorebird
    • --shorebird-args "--artifact=exe --staged" to pass extra args to shorebird release windows
  • YAML config (inno_bundle.yaml or pubspec.yaml under inno_bundle):
    • build_tool: shorebird

Commands executed:

  • Shorebird: shorebird release windows [--debug|--profile] <shorebird-args>
  • Flutter (default): flutter build windows ./lib/main.dart --<mode> --obfuscate --split-debug-info=build/obfuscate --build-name <x> --build-number <y> <build-args>

This is non-breaking; existing usage requires no changes.

About

CLI tool for automating Windows installer creation using Inno Setup.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7