From 8e617a0aaf9df11f65a02528d22cf1464865eae8 Mon Sep 17 00:00:00 2001 From: iGoX Date: Wed, 25 Mar 2026 12:20:39 +0100 Subject: [PATCH 1/3] [Windows] Rework installer builder script --- windows/build-installer.ps1 | 3 +++ ...busylight-buddy-windows-installer-builder.iss | 16 ++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 windows/build-installer.ps1 rename busyligth-buddy-windows-installer-builder.iss => windows/busylight-buddy-windows-installer-builder.iss (80%) diff --git a/windows/build-installer.ps1 b/windows/build-installer.ps1 new file mode 100644 index 0000000..a09afd0 --- /dev/null +++ b/windows/build-installer.ps1 @@ -0,0 +1,3 @@ +cd $PSScriptRoot +flutter build windows --release +ISCC.exe ./busylight-buddy-windows-installer-builder.iss \ No newline at end of file diff --git a/busyligth-buddy-windows-installer-builder.iss b/windows/busylight-buddy-windows-installer-builder.iss similarity index 80% rename from busyligth-buddy-windows-installer-builder.iss rename to windows/busylight-buddy-windows-installer-builder.iss index abf3631..4ae8dad 100644 --- a/busyligth-buddy-windows-installer-builder.iss +++ b/windows/busylight-buddy-windows-installer-builder.iss @@ -3,10 +3,10 @@ ; 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" +#define MyAppExeName "busylight-buddy.exe" [Setup] ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. @@ -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] -- 2.52.0 From ac1914ccb9d958621a7056145a9d85e5d94f678e Mon Sep 17 00:00:00 2001 From: iGoX Date: Wed, 25 Mar 2026 12:23:07 +0100 Subject: [PATCH 2/3] Add comment --- windows/build-installer.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/windows/build-installer.ps1 b/windows/build-installer.ps1 index a09afd0..d3cf9f3 100644 --- a/windows/build-installer.ps1 +++ b/windows/build-installer.ps1 @@ -1,3 +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 \ No newline at end of file -- 2.52.0 From 5cf07c57da6e6847a21d26853b9ea24203172da9 Mon Sep 17 00:00:00 2001 From: iGoX Date: Wed, 25 Mar 2026 12:26:07 +0100 Subject: [PATCH 3/3] Fix typo --- windows/busylight-buddy-windows-installer-builder.iss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/busylight-buddy-windows-installer-builder.iss b/windows/busylight-buddy-windows-installer-builder.iss index 4ae8dad..0075ade 100644 --- a/windows/busylight-buddy-windows-installer-builder.iss +++ b/windows/busylight-buddy-windows-installer-builder.iss @@ -6,7 +6,7 @@ #define MyAppVersion "0.0.1" #define MyAppPublisher "iGoX" #define MyAppURL "https://github.com/igox/busylight-buddy" -#define MyAppExeName "busylight-buddy.exe" +#define MyAppExeName "busylight_buddy.exe" [Setup] ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. -- 2.52.0