Skip to content

Commit

Permalink
Found is issue where inno is compiling x64 while its x32
Browse files Browse the repository at this point in the history
  • Loading branch information
mas6y6 committed Dec 6, 2024
1 parent c5cbdf2 commit b9dc63c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/automatic_cipheros_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,18 @@ jobs:
- name: Package with Inno Setup
if: runner.os == 'Windows'
run: |
# Detect architecture
$arch = if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64") { "x64" } else { "x32" }
# Detect architecture more reliably
$arch = if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64" -and $env:ProgramFiles -match "x86") { "x32" }
elseif ($env:PROCESSOR_ARCHITECTURE -eq "AMD64") { "x64" }
else { "x32" }
# Set the path to the ISS file based on architecture
$issFile = if ($arch -eq "x64") { "installer_x64.iss" } else { "installer_x32.iss" }

# Run the Inno Setup Compiler
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" $issFile
shell: pwsh



- name: Upload Build Artifacts
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ plugins/hacknet/__pycache__
tools
downloads
.vscode/launch.json
releaseprep

0 comments on commit b9dc63c

Please sign in to comment.