Fix Inno Setup compile error and release script sed pattern

- Declare ErrorCode variable in InitializeSetup function
- Remove orphan var block at end of Code section
- Fix sed pattern in release.sh to only match version inside quotes
- Restore AboutForm.cs variable name damaged by previous sed

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
duffyduck 2026-04-03 10:52:21 +02:00
parent 8ac4c12b46
commit abd52b351a
2 changed files with 5 additions and 6 deletions

View File

@ -72,6 +72,8 @@ begin
end; end;
function InitializeSetup(): Boolean; function InitializeSetup(): Boolean;
var
ErrorCode: Integer;
begin begin
Result := True; Result := True;
@ -81,11 +83,8 @@ begin
'Soll die Download-Seite geoeffnet werden?', 'Soll die Download-Seite geoeffnet werden?',
mbConfirmation, MB_YESNO) = IDYES then mbConfirmation, MB_YESNO) = IDYES then
begin begin
ShellExec('open', 'https://dotnet.microsoft.com/download/dotnet/8.0/runtime', '', '', SW_SHOWNORMAL, ewNoWait, ResultCode); ShellExec('open', 'https://dotnet.microsoft.com/download/dotnet/8.0/runtime', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
end; end;
Result := False; Result := False;
end; end;
end; end;
var
ResultCode: Integer;

View File

@ -122,8 +122,8 @@ sed -i "s|<Version>.*</Version>|<Version>${VERSION}</Version>|g" "$PROJECT"
sed -i "s|<AssemblyVersion>.*</AssemblyVersion>|<AssemblyVersion>${VERSION}</AssemblyVersion>|g" "$PROJECT" sed -i "s|<AssemblyVersion>.*</AssemblyVersion>|<AssemblyVersion>${VERSION}</AssemblyVersion>|g" "$PROJECT"
sed -i "s|<FileVersion>.*</FileVersion>|<FileVersion>${VERSION}</FileVersion>|g" "$PROJECT" sed -i "s|<FileVersion>.*</FileVersion>|<FileVersion>${VERSION}</FileVersion>|g" "$PROJECT"
# AboutForm.cs # AboutForm.cs - nur den Text im String-Literal ersetzen, nicht Variablennamen
sed -i "s|Version [0-9.]*|Version ${VERSION}|g" "$ABOUT_FORM" sed -i "s|\"Version [0-9.]*\"|\"Version ${VERSION}\"|g" "$ABOUT_FORM"
# Inno Setup # Inno Setup
sed -i "s|#define MyAppVersion \".*\"|#define MyAppVersion \"${VERSION}\"|g" "$INNO_SCRIPT" sed -i "s|#define MyAppVersion \".*\"|#define MyAppVersion \"${VERSION}\"|g" "$INNO_SCRIPT"