Merge branch 'bsteers4-master-patch-65616' into 'master'

Make executable dialog; Fix version string replacement.

See merge request gambas/gambas!190
This commit is contained in:
Benoît Minisini 2021-02-18 23:12:08 +00:00
commit 0cffa7df6a

View file

@ -3220,11 +3220,11 @@ Public Function MakeExecutable(Optional bDoNotIncVersion As Boolean, Optional bS
If RunAfterMakingExec Then
'Shell Replace(RunAfterMakingExec, "$(FILE)", Shell$(sExecPath)) Wait
FDebugInfo.ShowConsole()
'FDebugInfo.ShowConsole()
hTerminal = FOutput.GetTerminal()
sCommand = Replace(RunAfterMakingExec, "$(FILE)", Shell$(sExecPath))
sCommand = Replace(sCommand, "$(DIR)", Shell$(Project.Dir))
sCommand = Replace(sCommand, "$(VERSION)", Shell$(Project.Version))
sCommand = Replace(sCommand, "$(VERSION)", Shell$(FormatVersion()))
sCommand = Replace(sCommand, "$(TITLE)", Shell$(Project.Title))
sCommand = Replace(sCommand, "$(NAME)", Shell$(Project.Name))
hTerminal.Print(sCommand & "\r\n")