From 9c4cff617bffa674c67e67a02190bbaf24683080 Mon Sep 17 00:00:00 2001 From: Bruce Steers Date: Thu, 18 Feb 2021 23:12:08 +0000 Subject: [PATCH] Make executable dialog: Fix $(VERSION) substitution. [DEVELOPMENT ENVIRONMENT] * BUG: Make executable dialog: $(VERSION) is now correctly replaced by project version in the after command. * NEW: Make executable dialog: Don't show the console automatically when running the after command. --- app/src/gambas3/.src/Project.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/gambas3/.src/Project.module b/app/src/gambas3/.src/Project.module index 2ea037c9d..af31da7ae 100644 --- a/app/src/gambas3/.src/Project.module +++ b/app/src/gambas3/.src/Project.module @@ -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")