Skip to content

Commit

Permalink
Merge pull request #316 from DHancock/dev
Browse files Browse the repository at this point in the history
Add separate platform install scripts
  • Loading branch information
DHancock authored Apr 3, 2024
2 parents 3dec7b1 + 7151105 commit 8d0c22e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
5 changes: 5 additions & 0 deletions SudokuSolver/Installer/build_arm64.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; builds the arm64 installer

#define platform "arm64"

#include "inno_script.iss"
5 changes: 5 additions & 0 deletions SudokuSolver/Installer/build_x64.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; builds the x64 installer

#define platform "x64"

#include "inno_script.iss"
5 changes: 5 additions & 0 deletions SudokuSolver/Installer/build_x86.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; builds the x86 installer

#define platform "x86"

#include "inno_script.iss"
21 changes: 14 additions & 7 deletions SudokuSolver/Installer/inno_script.iss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
; This script assumes that all release configurations have been published
; and the WinAppSdk and .Net framework are self contained.
; This worker script is intended to be called from one of the build_XXX scripts
; where the platform variable is defined. It assumes that all release configurations
; have been published and the WinAppSdk and .Net framework are self contained.
; Inno 6.2.2

#define appDisplayName "Sudoku Solver"
Expand All @@ -19,7 +20,7 @@ OutputDir={#SourcePath}\bin
UninstallDisplayIcon={app}\{#appExeName}
Compression=lzma2/ultra64
SolidCompression=yes
OutputBaseFilename={#appName}_v{#appVer}
OutputBaseFilename={#appName}_{#platform}_v{#appVer}
InfoBeforeFile="{#SourcePath}\unlicense.txt"
PrivilegesRequired=lowest
WizardStyle=classic
Expand All @@ -32,12 +33,18 @@ MinVersion=10.0.17763
AppPublisher=David
AppUpdatesURL=https://github.com/DHancock/SudokuSolver/releases
ArchitecturesInstallIn64BitMode=x64 arm64
ArchitecturesAllowed=x86 x64 arm64
ArchitecturesAllowed={#platform}

[Files]
Source: "..\bin\Release\win-x64\publish\*"; DestDir: "{app}"; Check: IsX64; Flags: recursesubdirs;
Source: "..\bin\Release\win-arm64\publish\*"; DestDir: "{app}"; Check: IsARM64; Flags: recursesubdirs solidbreak;
Source: "..\bin\Release\win-x86\publish\*"; DestDir: "{app}"; Check: IsX86; Flags: recursesubdirs solidbreak;
#if platform == "x64"
Source: "..\bin\Release\win-x64\publish\*"; DestDir: "{app}"; Flags: recursesubdirs;
#elif platform == "arm64"
Source: "..\bin\Release\win-arm64\publish\*"; DestDir: "{app}"; Flags: recursesubdirs;
#elif platform == "x86"
Source: "..\bin\Release\win-x86\publish\*"; DestDir: "{app}"; Flags: recursesubdirs;
#else
#error unknown platform
#endif

[Icons]
Name: "{group}\{#appDisplayName}"; Filename: "{app}\{#appExeName}"
Expand Down

0 comments on commit 8d0c22e

Please sign in to comment.