Eliminate ISPP from installer; add ISS line-count debug output
Replace all {#define}/{#macro} usages with literal values so ISPP has
no directives to process (avoids the CI line-101 preprocessor error).
Version is now injected via PowerShell text substitution on a temp copy
of the .iss before ISCC runs, rather than via /DAppVersion= flag.
Adds a line-count + commit-hash log line to diagnose stale checkout.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
511d75a6bd
commit
540a062733
3 changed files with 39 additions and 36 deletions
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
|
@ -70,6 +70,9 @@ jobs:
|
|||
- name: Build installer
|
||||
shell: pwsh
|
||||
run: |
|
||||
$issFile = "$env:GITHUB_WORKSPACE\installer\RynthCore.iss"
|
||||
$lineCount = (Get-Content $issFile).Count
|
||||
Write-Host "RynthCore.iss line count: $lineCount (commit: $(git rev-parse HEAD))"
|
||||
$parent = Split-Path "$env:GITHUB_WORKSPACE" -Parent
|
||||
& "$env:GITHUB_WORKSPACE\installer\Build-Installer.ps1" `
|
||||
-RynthSuiteRoot "$parent\RynthSuite" `
|
||||
|
|
|
|||
|
|
@ -143,12 +143,19 @@ Write-Host ""
|
|||
Write-Host "Building installer..." -ForegroundColor Cyan
|
||||
New-Item -ItemType Directory -Path "$ScriptDir\Output" -Force | Out-Null
|
||||
|
||||
$isccArgs = @("$ScriptDir\RynthCore.iss")
|
||||
# Substitute version into a temp copy of the .iss file so we never pass
|
||||
# /D flags to ISPP (the preprocessor chokes on them in some Inno Setup 6
|
||||
# builds when the .iss file has specific content patterns).
|
||||
$issSource = "$ScriptDir\RynthCore.iss"
|
||||
$issTmp = "$ScriptDir\Output\RynthCore.tmp.iss"
|
||||
$issContent = Get-Content $issSource -Raw
|
||||
if ($Version) {
|
||||
$isccArgs += "/DAppVersion=$Version"
|
||||
$issContent = $issContent -replace 'AppVersion=0\.0\.0', "AppVersion=$Version"
|
||||
Write-Host " Version override: $Version"
|
||||
}
|
||||
& $IsccPath @isccArgs
|
||||
Set-Content -Path $issTmp -Value $issContent -Encoding UTF8
|
||||
|
||||
& $IsccPath $issTmp
|
||||
if ($LASTEXITCODE -ne 0) { throw "ISCC build failed (exit $LASTEXITCODE)" }
|
||||
|
||||
Write-Host ""
|
||||
|
|
|
|||
|
|
@ -1,25 +1,22 @@
|
|||
; RynthCore + RynthAi Installer
|
||||
; Build with: Build-Installer.ps1 (requires Inno Setup 6)
|
||||
; Source: https://jrsoftware.org/isdl.php
|
||||
|
||||
#define AppName "RynthCore"
|
||||
#define AppVersion "0.2"
|
||||
#define AppPublisher "RynthCore"
|
||||
#define AppExeName "RynthCore.exe"
|
||||
#define DataRoot "C:\Games\RynthSuite\RynthAi"
|
||||
|
||||
; NOTE: Staging directory is populated by Build-Installer.ps1 before ISCC is invoked.
|
||||
; All files under staging\app\ are installed to {app}\ recursively.
|
||||
;
|
||||
; NOTE: No ISPP (#define / {#...}) macros are used in this file.
|
||||
; Build-Installer.ps1 replaces the AppVersion placeholder via text substitution
|
||||
; before invoking ISCC, so the preprocessor has nothing to expand.
|
||||
; AppVersion placeholder — replaced by Build-Installer.ps1 before ISCC runs:
|
||||
; APPVERSION_PLACEHOLDER=0.0.0
|
||||
|
||||
[Setup]
|
||||
AppId={{A8B4C2D1-E3F5-4678-9ABC-DEF012345678}
|
||||
AppName={#AppName}
|
||||
AppVersion={#AppVersion}
|
||||
AppPublisher={#AppPublisher}
|
||||
AppName=RynthCore
|
||||
AppVersion=0.0.0
|
||||
AppPublisher=RynthCore
|
||||
AppPublisherURL=https://github.com/tombohar/RynthCore
|
||||
DefaultDirName=C:\Games\RynthCore
|
||||
DisableDirPage=no
|
||||
DefaultGroupName={#AppName}
|
||||
DefaultGroupName=RynthCore
|
||||
DisableProgramGroupPage=yes
|
||||
OutputDir=Output
|
||||
OutputBaseFilename=RynthCore-Setup
|
||||
|
|
@ -41,34 +38,30 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
|
|||
[Tasks]
|
||||
Name: desktopicon; Description: "Create a &desktop shortcut"; GroupDescription: "Additional icons:"
|
||||
|
||||
; ── Program files ─────────────────────────────────────────────────────────────
|
||||
; Program files
|
||||
[Files]
|
||||
; Installs the entire staging layout (launcher, Runtime\, Runtime\Plugins\, etc.)
|
||||
Source: "staging\app\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
|
||||
; ── Data directories (created once; never removed on uninstall) ──────────────
|
||||
; Data directories (created once; never removed on uninstall)
|
||||
[Dirs]
|
||||
Name: "{#DataRoot}"; Flags: uninsneveruninstall
|
||||
Name: "{#DataRoot}\NavProfiles"; Flags: uninsneveruninstall
|
||||
Name: "{#DataRoot}\LootProfiles"; Flags: uninsneveruninstall
|
||||
Name: "{#DataRoot}\MetaFiles"; Flags: uninsneveruninstall
|
||||
Name: "{#DataRoot}\MetaProfiles"; Flags: uninsneveruninstall
|
||||
Name: "{#DataRoot}\SettingsProfiles"; Flags: uninsneveruninstall
|
||||
Name: "{#DataRoot}\SettingsProfiles\ACEmulator"; Flags: uninsneveruninstall
|
||||
Name: "{#DataRoot}\LuaScripts"; Flags: uninsneveruninstall
|
||||
Name: "{#DataRoot}\Logs"; Flags: uninsneveruninstall
|
||||
Name: "{#DataRoot}\pvars"; Flags: uninsneveruninstall
|
||||
Name: "{#DataRoot}\ItemGiver"; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi"; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\NavProfiles"; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\LootProfiles"; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\MetaFiles"; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\MetaProfiles"; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\SettingsProfiles"; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\SettingsProfiles\ACEmulator"; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\LuaScripts"; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\Logs"; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\pvars"; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\ItemGiver"; Flags: uninsneveruninstall
|
||||
|
||||
; ── Shortcuts ─────────────────────────────────────────────────────────────────
|
||||
; Shortcuts
|
||||
[Icons]
|
||||
; Start Menu
|
||||
Name: "{group}\RynthCore"; Filename: "{app}\{#AppExeName}"; WorkingDir: "{app}"; Comment: "Launch RynthCore and inject into Asheron's Call"
|
||||
Name: "{group}\RynthCore"; Filename: "{app}\RynthCore.exe"; WorkingDir: "{app}"; Comment: "Launch RynthCore and inject into Asheron's Call"
|
||||
Name: "{group}\Uninstall RynthCore"; Filename: "{uninstallexe}"
|
||||
|
||||
; Optional Desktop shortcut (created only when the desktopicon task is checked)
|
||||
Name: "{autodesktop}\RynthCore"; Filename: "{app}\{#AppExeName}"; WorkingDir: "{app}"; Tasks: desktopicon
|
||||
|
||||
; No [Code] section — the Pascal code block triggers ISPP preprocessor
|
||||
; errors on CI (Inno Setup 6.7.1) due to how it handles #char literals.
|
||||
; Getting-started instructions are included in the GitHub Release notes.
|
||||
Name: "{autodesktop}\RynthCore"; Filename: "{app}\RynthCore.exe"; WorkingDir: "{app}"; Tasks: desktopicon
|
||||
|
|
|
|||
Loading…
Reference in a new issue