diff --git a/.gitignore b/.gitignore index 79c113f..6d5e042 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,9 @@ .swiftpm/ migrate_working_dir/ +# Inno Setup +Installer/ + # IntelliJ related *.iml *.ipr diff --git a/lib/main.dart b/lib/main.dart index 9874577..f27a4d1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -62,6 +62,8 @@ void main() async { FirebaseMessaging.onBackgroundMessage( _firebaseMessagingBackgroundHandler, ); + // Although previous if case checked this. Still check is web or not + // Otherwise the web platform will broke due to there is no Platform api on the web if (kIsWeb || !Platform.isWindows) { FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterFatalError; diff --git a/pubspec.yaml b/pubspec.yaml index f94d449..e1b79d9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -227,3 +227,11 @@ flutter_native_splash: image_dark: "assets/icons/icon-dark.png" color: "#ffffff" color_dark: "#121212" + +msix_config: + display_name: Solian + publisher_display_name: Solsynth LLC + identity_name: dev.solian.app + msix_version: 3.2.0.0 + logo_path: .\assets\icons\icon.png + capabilities: internetClientServer, location, microphone, webcam \ No newline at end of file diff --git a/setup.iss b/setup.iss new file mode 100644 index 0000000..2b54b80 --- /dev/null +++ b/setup.iss @@ -0,0 +1,19 @@ + [Setup] + AppName=Solian + AppVersion=3.2.0 + DefaultDirName={pf}\Solian + DefaultGroupName=Solian + OutputDir=C:\Development\Solian\Installer + OutputBaseFilename=Solian + Compression=lzma + SolidCompression=yes + + [Files] + Source: "C:\Development\Solian\build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs + + [Icons] + Name: "{group}\Solian"; Filename: "{app}\Solian.exe" + Name: "{group}\Uninstall Solian"; Filename: "{uninstallexe}" + + [Run] + Filename: "{app}\Solian.exe"; Description: "Launch Solian"; Flags: nowait postinstall skipifsilent \ No newline at end of file