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:
parent
8ac4c12b46
commit
abd52b351a
|
|
@ -72,6 +72,8 @@ begin
|
|||
end;
|
||||
|
||||
function InitializeSetup(): Boolean;
|
||||
var
|
||||
ErrorCode: Integer;
|
||||
begin
|
||||
Result := True;
|
||||
|
||||
|
|
@ -81,11 +83,8 @@ begin
|
|||
'Soll die Download-Seite geoeffnet werden?',
|
||||
mbConfirmation, MB_YESNO) = IDYES then
|
||||
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;
|
||||
Result := False;
|
||||
end;
|
||||
end;
|
||||
|
||||
var
|
||||
ResultCode: Integer;
|
||||
|
|
|
|||
|
|
@ -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|<FileVersion>.*</FileVersion>|<FileVersion>${VERSION}</FileVersion>|g" "$PROJECT"
|
||||
|
||||
# AboutForm.cs
|
||||
sed -i "s|Version [0-9.]*|Version ${VERSION}|g" "$ABOUT_FORM"
|
||||
# AboutForm.cs - nur den Text im String-Literal ersetzen, nicht Variablennamen
|
||||
sed -i "s|\"Version [0-9.]*\"|\"Version ${VERSION}\"|g" "$ABOUT_FORM"
|
||||
|
||||
# Inno Setup
|
||||
sed -i "s|#define MyAppVersion \".*\"|#define MyAppVersion \"${VERSION}\"|g" "$INNO_SCRIPT"
|
||||
|
|
|
|||
Loading…
Reference in New Issue