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

Commit b213599

Browse files
committed
[[ CmdLineBuilder ]] Enable command line server .zip builds
1 parent cd26cc2 commit b213599

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

builder/builder_utilities.livecodescript

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ function builderBuiltDocsFolder
248248
return builderRepoFolder() & slash & "_build/docs"
249249
end builderBuiltDocsFolder
250250

251+
function builderBuiltNotesFolder
252+
return builderRepoFolder() & slash & "_build/notes"
253+
end builderBuiltNotesFolder
254+
251255
function builderCommercialFolder
252256
set the itemDel to slash
253257
return item 1 to -4 of the filename of me & "/livecode-commercial"

builder/server_builder.livecodescript

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ command serverBuilderRun pPlatform, pEdition
2424
local tEngineFolder
2525
builderFetchEngine tVersion, pPlatform
2626
put the result into tEngineFolder
27-
if pPlatform is "linux" then
28-
put "/i386/release" after tEngineFolder
29-
else if pPlatform is "linux-x64" then
30-
put "/x86_64/release" after tEngineFolder
31-
else if pPlatform is "linux-armv6hf" then
32-
put "/armv6-hf/release" after tEngineFolder
33-
end if
34-
27+
28+
-- Make sure that the output directory exists
29+
local tOutputDir
30+
put builderWorkspaceFolder() & slash & "deploy" into tOutputDir
31+
builderEnsureFolder tOutputDir
32+
3533
local tOutputFile
36-
put builderWorkspaceFolder() & "/deploy/" & getZipFilenameStub(tVersion, pPlatform, pEdition) into tOutputFile
34+
put tOutputDir & slash & getZipFilenameStub(tVersion, pPlatform, pEdition) into tOutputFile
35+
36+
-- Clean up any existing output file
3737
delete file tOutputFile
3838

3939
if pPlatform is "windows" then
@@ -146,7 +146,8 @@ command serverBuilderRun pPlatform, pEdition
146146
replace "-" with "_" in tVersion
147147
replace "." with "_" in tVersionClean
148148
replace "-" with "_" in tVersionClean
149-
get $HOME & "/Builds/Installers/LiveCode/" & tVersion & "/LiveCodeNotes-" & tVersionClean & "-Server.pdf"
149+
get builderBuiltNotesFolder() & "/LiveCodeNotes-" & tVersionClean & ".pdf"
150+
150151
if there is a file it then
151152
builderLog "message", "Adding server release notes"
152153
revZipAddItemWithFile tOutputFile, "LiveCodeNotes-" & tVersionClean & "-Server.pdf", it

0 commit comments

Comments
 (0)