Setup windows installer

This commit is contained in:
2025-08-12 15:25:41 +08:00
parent 4bde708878
commit 3a36915140
4 changed files with 32 additions and 0 deletions

3
.gitignore vendored
View File

@@ -12,6 +12,9 @@
.swiftpm/
migrate_working_dir/
# Inno Setup
Installer/
# IntelliJ related
*.iml
*.ipr

View File

@@ -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;

View File

@@ -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

19
setup.iss Normal file
View File

@@ -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