Last updated:
0 purchases
innosetup
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
copied to clipboard
With Flutter:
flutter pub add -d innosetup
copied to clipboard
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();
copied to clipboard
Final step is to execute this build script by running this command:
dart build.dart
copied to clipboard
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();
copied to clipboard
Source #
git clone https://github.com/aswinmurali-io/flutter_innosetup.git
cd flutter_innosetup
dart pub get
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.