Code Monkey home page Code Monkey logo

flutter_innosetup's Introduction

Flutter Inno Setup

Make windows installer for Flutter & vanilla Dart powered apps powered by Inno Setup.

Installing

Run this command:

With Dart:

dart pub add -d innosetup

With Flutter:

flutter pub add -d innosetup

Usage

Create a dart file in your project root directory to store the build instructions and type the below code.

InnoSetup(
  app: InnoSetupApp(
    name: 'Test App',
    version: Version.parse('0.1.0'),
    publisher: 'author',
    urls: InnoSetupAppUrls(
      homeUrl: Uri.parse('https://example.com/'),
    ),
  ),
  files: InnoSetupFiles(
    executable: File('build/windows/runner/test_app.exe'),
    location: Directory('build/windows/runner'),
  ),
  name: const InnoSetupName('windows_installer'),
  location: InnoSetupInstallerDirectory(
    Directory('build/windows'),
  ),
  icon: InnoSetupIcon(
    File('assets/icon.ico'),
  ),
).make();

Final step is to execute this build script by running this command:

dart build.dart

Advanced Usage

For full customisation of the installer.

InnoSetup(
  name: const InnoSetupName(
    'windows_installer',
  ),
  app: InnoSetupApp(
    name: 'Test App',
    version: Version.parse('0.1.0'),
    publisher: 'author',
    urls: InnoSetupAppUrls(
      homeUrl: Uri.parse('https://example.com/home'),
      publisherUrl: Uri.parse('https://example.com/author'),
      supportUrl: Uri.parse('https://example.com/support'),
      updatesUrl: Uri.parse('https://example.com/updates'),
    ),
  ),
  files: InnoSetupFiles(
    executable: File('build/windows/runner/test_app.exe'),
    location: Directory('build/windows/runner'),
  ),
  location: InnoSetupInstallerDirectory(
    Directory('build/windows'),
  ),
  icon: InnoSetupIcon(
    File('assets/icon.ico'),
  ),
  runAfterInstall: false,
  compression: InnoSetupCompressions().lzma2(
    InnoSetupCompressionLevel.ultra64,
  ),
  languages: InnoSetupLanguages().all,
  license: InnoSetupLicense(
    File('LICENSE'),
  ),
).make();

Source

git clone https://github.com/aswinmurali-io/flutter_innosetup.git
cd flutter_innosetup
dart pub get

flutter_innosetup's People

Contributors

aswinmurali-io avatar fernthedev avatar ekrem-qb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.