@@ -109,18 +109,25 @@ command serverBuilderRun pPlatform, pEdition
109109 end if
110110 end repeat
111111
112- if pEdition is "Community" then
113- get tEngineFolder & slash & "server-community" & tExeExtension
114- else
115- get tEngineFolder & slash & "server-commercial" & tExeExtension
116- end if
117- if there is a file it then
112+ local tServerPath , tServerZipPath
113+ switch pEdition
114+ case "Community"
115+ put tEngineFolder & slash & "server-community" & tExeExtension into tServerPath
116+ put "livecode-community-server" & tOutExeExtension into tServerZipPath
117+ break
118+ case "Indy"
119+ put tEngineFolder & slash & "server-commercial" & tExeExtension into tServerPath
120+ put "livecode-server" & tOutExeExtension into tServerZipPath
121+ break
122+ case "Business"
123+ put tEngineFolder & slash & "server-professional" & tExeExtension into tServerPath
124+ put "livecode-server" & tOutExeExtension into tServerZipPath
125+ break
126+ end switch
127+
128+ if there is a file tServerPath then
118129 builderLog "message" , "Adding livecode-server engine"
119- if pEdition is "Community" then
120- revZipAddItemWithFile tOutputFile , "livecode-community-server" & tOutExeExtension , it
121- else
122- revZipAddItemWithFile tOutputFile , "livecode-server" & tOutExeExtension , it
123- end if
130+ revZipAddItemWithFile tOutputFile , tServerZipPath , tServerPath
124131 if the result is not empty then
125132 throw the result
126133 end if
@@ -183,9 +190,5 @@ function getZipFilenameStub pVersion, pPlatform, pEdition
183190 else if pPlatform is "linux-armv6hf" then
184191 put "Linux-armv6hf" into pPlatform
185192 end if
186- if pEdition is "Community" then
187- return "LiveCodeCommunityServer-" & pVersion & "-" & pPlatform & ".zip"
188- else
189- return "LiveCodeServer-" & pVersion & "-" & pPlatform & ".zip"
190- end if
193+ return "LiveCode" & editionTitleCase(pEdition ) & "Server-" & pVersion & "-" & pPlatform & ".zip"
191194end getZipFilenameStub
0 commit comments