@@ -15,7 +15,7 @@ command toolsBuilderRun pPlatform, pEdition, pVersion
1515 -- If on windows or linux, we can't do anything macosxy due to lack of lipo/strip :o(
1616 local tEngineFolders
1717
18- get "windows linux-x86 linux-x86_64 linux-armv6hf macosx ios android-armeabi-v7a android-arm64-v8a android-x86 android-x86_64 emscripten"
18+ get "win-x86 win-x86_64 linux-x86 linux-x86_64 linux-armv6hf macosx ios android-armeabi-v7a android-arm64-v8a android-x86 android-x86_64 emscripten"
1919
2020 repeat for each word tPlatform in it
2121 builderFetchEngine pVersion , tPlatform
@@ -112,9 +112,6 @@ private command toolsBuilderFilterExternals pFolder, pPlatform
112112 end repeat
113113 end if
114114
115- -- remove windows 64 bit builds only required for filemaker
116- get shell ("rm -fv *x86_64.dll" )
117-
118115 -- If the directory contains no code any more, remove it
119116 put the files & return & the folders into tFiles
120117 filter lines of tFiles with regex pattern "^.*\.(so|dylib|bundle|dll|lcext)$"
@@ -195,7 +192,8 @@ private command toolsBuilderMakePackage pVersion, pEdition, pPlatform, pEngineFo
195192 packageCompilerConfigureSource tPackager , "linux-x86" , pEngineFolders ["linux-x86" ]
196193 packageCompilerConfigureSource tPackager , "linux-x86_64" , pEngineFolders ["linux-x86_64" ]
197194 packageCompilerConfigureSource tPackager , "linux-armv6-hf" , pEngineFolders ["linux-armv6hf" ]
198- packageCompilerConfigureSource tPackager , "windows" , pEngineFolders ["windows" ]
195+ packageCompilerConfigureSource tPackager , "win-x86" , pEngineFolders ["win-x86" ]
196+ packageCompilerConfigureSource tPackager , "win-x86_64" , pEngineFolders ["win-x86_64" ]
199197 packageCompilerConfigureSource tPackager , "ios" , pEngineFolders ["ios" ]
200198 packageCompilerConfigureSource tPackager , "android-armeabi-v7a" , pEngineFolders ["android-armeabi-v7a" ]
201199 packageCompilerConfigureSource tPackager , "android-arm64-v8a" , pEngineFolders ["android-arm64-v8a" ]
@@ -223,6 +221,8 @@ private command toolsBuilderMakePackage pVersion, pEdition, pPlatform, pEngineFo
223221 end if
224222 if pPlatform begins with "linux" then
225223 packageCompilerConfigureVariable tPackager , "TargetPlatform" , "linux"
224+ else if pPlatform begins with "win" then
225+ packageCompilerConfigureVariable tPackager , "TargetPlatform" , "windows"
226226 else
227227 packageCompilerConfigureVariable tPackager , "TargetPlatform" , pPlatform
228228 end if
@@ -231,11 +231,11 @@ private command toolsBuilderMakePackage pVersion, pEdition, pPlatform, pEngineFo
231231 packageCompilerConfigureVariable tPackager , "EscapedVersionTag" , tVersionEscaped
232232 packageCompilerConfigureVariable tPackager , "ProductBranch" , char 1 to 3 of pVersion
233233 packageCompilerConfigureVariable tPackager , "TargetArchitectures" , "i386"
234- if pPlatform is "linux -x86" then
234+ if pPlatform ends with " -x86" then
235235 packageCompilerConfigureVariable tPackager , "TargetArchitecture" , "x86"
236- else if pPlatform is "linux -x86_64" then
236+ else if pPlatform ends with " -x86_64" then
237237 packageCompilerConfigureVariable tPackager , "TargetArchitecture" , "x86_64"
238- else if pPlatform is "linux -armv6hf" then
238+ else if pPlatform ends with " -armv6hf" then
239239 packageCompilerConfigureVariable tPackager , "TargetArchitecture" , "armv6-hf"
240240 end if
241241
@@ -423,7 +423,8 @@ private command toolsBuilderMakeInstaller pVersion, pEdition, pPlatform, pIdeFol
423423 put return & "insert script of stack" && quote & "InstallerUtilities" & quote && "into back" after tParams ["startup_script" ]
424424
425425 switch pPlatform
426- case "windows"
426+ case "win-x86"
427+ case "win-x86_64"
427428 -- Process the manifest appropriately
428429 local tManifestFile
429430 get windowsManifest()
@@ -434,7 +435,7 @@ private command toolsBuilderMakeInstaller pVersion, pEdition, pPlatform, pIdeFol
434435 put tManifestFile into tParams ["manifest" ]
435436
436437 -- First we deploy the installer unsigned
437- put abstractPinFile(builderInstallerEngine("windows" )) into tParams ["engine" ]
438+ put abstractPinFile(builderInstallerEngine(pPlatform )) into tParams ["engine" ]
438439 put tInstallerStackfile into tParams ["stackfile" ]
439440 put pPackageFile into tParams ["payload" ]
440441 put tOutputFileStub & ".unsigned.exe" into tParams ["output" ]
@@ -938,8 +939,10 @@ function getInstallerFilenameStub pVersion, pPlatform, pEdition
938939 replace "." with "_" in pVersion
939940 if pPlatform is "macosx" then
940941 put "Mac" into pPlatform
941- else if pPlatform is "windows" then
942- put "Windows" into pPlatform
942+ else if pPlatform is "win-x86" then
943+ put "Windows-x86" into pPlatform
944+ else if pPlatform is "win-x86_64" then
945+ put "Windows-x86_64" into pPlatform
943946 else if pPlatform begins with "linux" then
944947 put "Linux" into pPlatform
945948 end if
@@ -956,8 +959,10 @@ function getDmgFilenameStub pVersion, pPlatform, pEdition
956959 replace "." with "_" in pVersion
957960 if pPlatform is "macosx" then
958961 put "Mac" into pPlatform
959- else if pPlatform is "windows" then
960- put "Windows" into pPlatform
962+ else if pPlatform is "win-x86" then
963+ put "Windows-x86" into pPlatform
964+ else if pPlatform is "win-x86_64" then
965+ put "Windows-x86_64" into pPlatform
961966 else if pPlatform is "linux" or pPlatform is "linux-x64" or pPlatform is "linux-armv6hf" then
962967 put "Linux" into pPlatform
963968 end if
0 commit comments