@@ -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