[Windows] Rework installer builder script (#4)

Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
2026-03-25 12:27:33 +01:00
parent c609e0e90e
commit 44ac517223
2 changed files with 13 additions and 7 deletions
+6
View File
@@ -0,0 +1,6 @@
cd $PSScriptRoot
# Build the Windows application using Flutter
flutter build windows --release
# Build the Windows installer using Inno Setup Compiler (ISCC.exe)
ISCC.exe ./busylight-buddy-windows-installer-builder.iss
@@ -3,7 +3,7 @@
; Non-commercial use only
#define MyAppName "BusyLight Buddy"
#define MyAppVersion "0.1"
#define MyAppVersion "0.0.1"
#define MyAppPublisher "iGoX"
#define MyAppURL "https://github.com/igox/busylight-buddy"
#define MyAppExeName "busylight_buddy.exe"
@@ -30,13 +30,13 @@ ArchitecturesAllowed=x64compatible
; the 64-bit view of the registry.
ArchitecturesInstallIn64BitMode=x64compatible
DisableProgramGroupPage=yes
LicenseFile="LICENSE"
LicenseFile="..\LICENSE"
; Uncomment the following line to run in non administrative install mode (install for current user only).
;PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
OutputDir="windows\installer"
OutputDir="installer"
OutputBaseFilename=BusyLight-Buddy-Installer
SetupIconFile="windows\runner\resources\app_icon.ico"
SetupIconFile="runner\resources\app_icon.ico"
SolidCompression=yes
WizardStyle=modern dynamic
@@ -47,9 +47,9 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "build\windows\x64\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "build\windows\x64\runner\Release\flutter_windows.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "build\windows\x64\runner\Release\data\*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "..\build\windows\x64\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\x64\runner\Release\flutter_windows.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\build\windows\x64\runner\Release\data\*"; DestDir: "{app}\data"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]