Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 43bd3b3

Browse files
committed
[[ Bug 19793 ]] Produce separate zip files for Indy / Business server engines
1 parent ec3b149 commit 43bd3b3

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
lines changed

buildbot.mk

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ dist-docs-guide:
121121
--stage guide --warn-as-error
122122

123123
ifeq ($(BUILD_EDITION),commercial)
124-
dist-server: dist-server-commercial
124+
dist-server: dist-server-indy dist-server-business
125125
endif
126126

127127
dist-server: dist-server-community
@@ -130,10 +130,14 @@ dist-server-community:
130130
$(buildtool_command) --platform mac --platform win --platform linux \
131131
--stage server --edition community --warn-as-error
132132

133-
dist-server-commercial:
133+
dist-server-indy:
134134
$(buildtool_command) --platform mac --platform win --platform linux \
135-
--stage server --edition commercial --warn-as-error
135+
--stage server --edition indy --warn-as-error
136136

137+
dist-server-business:
138+
$(buildtool_command) --platform mac --platform win --platform linux \
139+
--stage server --edition business --warn-as-error
140+
137141
ifeq ($(BUILD_EDITION),commercial)
138142
dist-tools: dist-tools-commercial
139143
distmac-disk: distmac-disk-communityplus distmac-disk-indy distmac-disk-business

builder/server_builder.livecodescript

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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"
191194
end getZipFilenameStub

0 commit comments

Comments
 (0)