File tree Expand file tree Collapse file tree 2 files changed +15
-30
lines changed
Expand file tree Collapse file tree 2 files changed +15
-30
lines changed Original file line number Diff line number Diff line change @@ -231,37 +231,10 @@ jobs:
231231 Write-Output "Building for target: $target"
232232 cargo build --release --target=$target
233233
234- # Generate ISS Script
235- - name : Generate Inno Setup Script
236- shell : pwsh
237- run : |
238- $arch = "${{ matrix.arch }}"
239- $issContent = @"
240- [Setup]
241- AppName=Damus Notedeck
242- AppVersion=0.1
243- DefaultDirName={pf}\Notedeck
244- DefaultGroupName=Damus Notedeck
245- OutputDir=..\packages\$arch
246- OutputBaseFilename=DamusNotedeckInstaller
247- Compression=lzma
248- SolidCompression=yes
249-
250- [Files]
251- Source: "..\target\$arch-pc-windows-msvc\release\notedeck.exe"; DestDir: "{app}"; Flags: ignoreversion
252-
253- [Icons]
254- Name: "{group}\Damus Notedeck"; Filename: "{app}\notedeck.exe"
255-
256- [Run]
257- Filename: "{app}\notedeck.exe"; Description: "Launch Damus Notedeck"; Flags: nowait postinstall skipifsilent
258- "@
259- Set-Content -Path "scripts/windows-installer-$arch.iss" -Value $issContent
260-
261234 # Build Installer
262235 - name : Run Inno Setup Script
263236 run : |
264- & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "scripts\windows-installer- ${{ matrix.arch }}.iss"
237+ & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /DBuildArch= ${{ matrix.arch }} "scripts\windows-installer .iss"
265238
266239 # Move output
267240 - name : Move Inno Script outputs to architecture-specific folder
Original file line number Diff line number Diff line change 1+ #ifndef BuildArch
2+ #define BuildArch " "
3+ #endif
4+
5+ #if BuildArch != " "
6+ #define ExeSource " ..\target\" + BuildArch + " -pc-windows-msvc\release\notedeck.exe"
7+ #define PkgOutputDir " ..\packages\" + BuildArch
8+ #else
9+ #define ExeSource " ..\target\release\notedeck.exe"
10+ #define PkgOutputDir " ..\packages"
11+ #endif
12+
113[Setup]
214AppName = Damus Notedeck
315AppVersion = 0.1
416DefaultDirName = {autopf}\Notedeck
517DefaultGroupName = Damus Notedeck
6- OutputDir = ..\packages
18+ OutputDir = {#PkgOutputDir}
719OutputBaseFilename = DamusNotedeckInstaller
820Compression = lzma
921SolidCompression = yes
1022ArchitecturesAllowed = x64compatible
1123ArchitecturesInstallIn64BitMode = x64compatible
1224
1325[Files]
14- Source : " ..\target\release\notedeck.exe " ; DestDir : " {app} " ; Flags : ignoreversion
26+ Source : " {#ExeSource} " ; DestDir : " {app} " ; Flags : ignoreversion
1527
1628[Icons]
1729Name : " {group} \Damus Notedeck" ; Filename : " {app} \notedeck.exe"
You can’t perform that action at this time.
0 commit comments