275ac72fa9
Add a PowerShell installer builder (build/build-installer.ps1) and a pre-tag release checklist (docs/plans/PRE_TAG_RELEASE_CHECKLIST.md); update packaging docs to recommend the new script and document Inno Setup theming. Make Inno Setup scripts (Installer/setup.iss and Installer/Installer.iss) more configurable by introducing MyWizardStyle and guarding MyAppBuildDir so WizardStyle can use dynamic Windows theming. Persist system theme preference when the user has no explicit preference (App.xaml.cs and MainWindow.xaml.cs) and switch to IsHitTestVisible for the performance-overlay blur to avoid disabling input globally. Prevent closing the app while the performance intro is visible with a user-facing message. Minor .gitignore cleanup and packaging text updates.
64 lines
2.2 KiB
Plaintext
64 lines
2.2 KiB
Plaintext
; ThreadPilot Installer Script for Inno Setup
|
|
; Copyright (C) 2025 Prime Build
|
|
|
|
#define MyAppName "ThreadPilot"
|
|
#define MyAppPublisher "Prime Build"
|
|
#define MyAppURL "https://github.com/PrimeBuild-pc/ThreadPilot"
|
|
#define MyAppExeName "ThreadPilot.exe"
|
|
|
|
#ifndef MyWizardStyle
|
|
#define MyWizardStyle "modern dynamic windows11"
|
|
#endif
|
|
|
|
#ifndef MyAppVersion
|
|
#define MyAppVersion "1.1.1"
|
|
#endif
|
|
|
|
#ifndef MyAppSourceDir
|
|
#define MyAppSourceDir "..\\artifacts\\release\\singlefile"
|
|
#endif
|
|
|
|
[Setup]
|
|
AppId={{E8F7A3B2-5C4D-4E6F-8A9B-1C2D3E4F5A6B}
|
|
AppName={#MyAppName}
|
|
AppVersion={#MyAppVersion}
|
|
AppVerName={#MyAppName} {#MyAppVersion}
|
|
AppPublisher={#MyAppPublisher}
|
|
AppPublisherURL={#MyAppURL}
|
|
AppSupportURL={#MyAppURL}/issues
|
|
AppUpdatesURL={#MyAppURL}/releases
|
|
DefaultDirName={autopf}\{#MyAppName}
|
|
DefaultGroupName={#MyAppName}
|
|
AllowNoIcons=yes
|
|
LicenseFile=..\LICENSE
|
|
PrivilegesRequired=admin
|
|
OutputDir=..\artifacts\release\installer
|
|
OutputBaseFilename=ThreadPilot_v{#MyAppVersion}_Setup
|
|
SetupIconFile=..\assets\icons\ico.ico
|
|
Compression=lzma2/ultra64
|
|
SolidCompression=yes
|
|
WizardStyle={#MyWizardStyle}
|
|
ArchitecturesInstallIn64BitMode=x64compatible
|
|
ArchitecturesAllowed=x64compatible
|
|
UninstallDisplayIcon={app}\{#MyAppExeName}
|
|
|
|
[Languages]
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
|
|
[Tasks]
|
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
|
|
[Files]
|
|
Source: "{#MyAppSourceDir}\ThreadPilot.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
Source: "{#MyAppSourceDir}\*.dll"; DestDir: "{app}"; Flags: ignoreversion skipifsourcedoesntexist
|
|
Source: "{#MyAppSourceDir}\*.pdb"; DestDir: "{app}"; Flags: ignoreversion skipifsourcedoesntexist
|
|
Source: "{#MyAppSourceDir}\Powerplans\*"; DestDir: "{app}\Powerplans"; Flags: ignoreversion recursesubdirs createallsubdirs
|
|
|
|
[Icons]
|
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
|
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
|
|
|
[Run]
|
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: shellexec nowait postinstall skipifsilent
|