https://github.com/aswinmurali-io/flutter_innosetup
Make windows installer 🪟 for flutter powered apps💻.
https://github.com/aswinmurali-io/flutter_innosetup
dart flutter innosetup library windows
Last synced: 4 months ago
JSON representation
Make windows installer 🪟 for flutter powered apps💻.
- Host: GitHub
- URL: https://github.com/aswinmurali-io/flutter_innosetup
- Owner: aswinmurali-io
- License: mit
- Created: 2022-06-29T15:05:13.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T11:40:44.000Z (almost 2 years ago)
- Last Synced: 2025-10-23T05:42:41.290Z (8 months ago)
- Topics: dart, flutter, innosetup, library, windows
- Language: Dart
- Homepage: https://pub.dev/packages/innosetup
- Size: 43 KB
- Stars: 13
- Watchers: 1
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Flutter Inno Setup
Make windows installer for Flutter & vanilla Dart powered apps powered by Inno Setup.
## Installing
Run this command:
With Dart:
```sh
dart pub add -d innosetup
```
With Flutter:
```sh
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.
```dart
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:
```bash
dart build.dart
```
## Advanced Usage
For full customisation of the installer.
```dart
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
```sh
git clone https://github.com/aswinmurali-io/flutter_innosetup.git
cd flutter_innosetup
dart pub get
```