| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 772991e commit 0d59caf
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,8 +44,10 @@ on startup | |||
| 44 | 44 | if it is "linux" then | |
| 45 | 45 | put true into tPlatforms["linux-x86"] | |
| 46 | 46 | put true into tPlatforms["linux-x86_64"] | |
| 47 | + else if it is "win" then | ||
| 48 | + put true into tPlatforms["win-x86"] | ||
| 49 | + put true into tPlatforms["win-x86_64"] | ||
| 47 | 50 | else | |
| 48 | - if it begins with "win" then get "windows" | ||
| 49 | 51 | if it is "mac" then get "macosx" | |
| 50 | 52 | put true into tPlatforms[it] | |
| 51 | 53 | end if | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -133,7 +133,13 @@ function builderPlatform | |||
| 133 | 133 | end if | |
| 134 | 134 | throw "Unknown Linux architecture:" && the processor | |
| 135 | 135 | case "win32" | |
| 136 | - return "windows" | ||
| 136 | + if the processor is "x86" then | ||
| 137 | + return "win-x86" | ||
| 138 | + end if | ||
| 139 | + if the processor is "x86_64" then | ||
| 140 | + return "win-x86_64" | ||
| 141 | + end if | ||
| 142 | + throw "Unknown Windows architecture:" && the processor | ||
| 137 | 143 | case "macos" | |
| 138 | 144 | return "macosx" | |
| 139 | 145 | case "iphone" | |
@@ -153,8 +159,10 @@ command builderFetchEngine pVersion, pPlatform | |||
| 153 | 159 | end if | |
| 154 | 160 | if sEngineDir is not empty then | |
| 155 | 161 | switch pPlatform | |
| 156 | - case "windows" | ||
| 162 | + case "win-x86" | ||
| 157 | 163 | return sEngineDir & slash & "win-x86-bin" | |
| 164 | + case "win-x86_64" | ||
| 165 | + return sEngineDir & slash & "win-x86_64-bin" | ||
| 158 | 166 | case "linux-x86" | |
| 159 | 167 | return sEngineDir & slash & "linux-x86-bin" | |
| 160 | 168 | case "linux-x86_64" | |
@@ -183,7 +191,8 @@ command builderFetchEngine pVersion, pPlatform | |||
| 183 | 191 | end if | |
| 184 | 192 | local tPlatform | |
| 185 | 193 | switch pPlatform | |
| 186 | - case "windows" | ||
| 194 | + case "win-x86" | ||
| 195 | + case "win-x86_64" | ||
| 187 | 196 | get "windows/release" | |
| 188 | 197 | break | |
| 189 | 198 | case "linux-x86" | |
@@ -453,7 +462,8 @@ function builderInstallerEngine pPlatform | |||
| 453 | 462 | put the result into tEngineFolder | |
| 454 | 463 | ||
| 455 | 464 | switch pPlatform | |
| 456 | - case "windows" | ||
| 465 | + case "win-x86" | ||
| 466 | + case "win-x86_64" | ||
| 457 | 467 | return tEngineFolder & slash & "installer.exe" | |
| 458 | 468 | case "linux-x86" | |
| 459 | 469 | return tEngineFolder & slash & "installer" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,7 @@ command serverBuilderRun pPlatform, pEdition | |||
| 36 | 36 | -- Clean up any existing output file | |
| 37 | 37 | delete file tOutputFile | |
| 38 | 38 | ||
| 39 | - if pPlatform is "windows" then | ||
| 39 | + if pPlatform begins with "win-" then | ||
| 40 | 40 | repeat for each word tExternal in "revdb revzip revxml dbsqlite dbmysql dbpostgresql dbodbc" | |
| 41 | 41 | get "server-" & tExternal & ".dll" | |
| 42 | 42 | if there is not a file (tEngineFolder & slash & it) then | |
@@ -61,7 +61,7 @@ command serverBuilderRun pPlatform, pEdition | |||
| 61 | 61 | end if | |
| 62 | 62 | ||
| 63 | 63 | local tExeExtension, tOutExeExtension | |
| 64 | - if pPlatform is "windows" then | ||
| 64 | + if pPlatform begins with "win-" then | ||
| 65 | 65 | put ".exe" into tExeExtension | |
| 66 | 66 | put ".exe" into tOutExeExtension | |
| 67 | 67 | --else if pPlatform is "linux" then | |
@@ -73,7 +73,7 @@ command serverBuilderRun pPlatform, pEdition | |||
| 73 | 73 | end if | |
| 74 | 74 | ||
| 75 | 75 | local tLibExtension | |
| 76 | - if pPlatform is "windows" then | ||
| 76 | + if pPlatform begins with "win-" then | ||
| 77 | 77 | put ".dll" into tLibExtension | |
| 78 | 78 | else if pPlatform is "macosx" then | |
| 79 | 79 | put ".dylib" into tLibExtension | |
@@ -173,8 +173,10 @@ function getZipFilenameStub pVersion, pPlatform, pEdition | |||
| 173 | 173 | replace "." with "_" in pVersion | |
| 174 | 174 | if pPlatform is "macosx" then | |
| 175 | 175 | put "Mac" into pPlatform | |
| 176 | - else if pPlatform is "windows" then | ||
| 177 | - put "Windows" into pPlatform | ||
| 176 | + else if pPlatform is "win-x86" then | ||
| 177 | + put "Windows-x86" into pPlatform | ||
| 178 | + else if pPlatform is "win-x86_64" then | ||
| 179 | + put "Windows-x86_64" into pPlatform | ||
| 178 | 180 | else if pPlatform is "linux-x86" then | |
| 179 | 181 | put "Linux" into pPlatform | |
| 180 | 182 | else if pPlatform is "linux-x86_64" then | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ command toolsBuilderRun pPlatform, pEdition, pVersion | |||
| 15 | 15 | -- If on windows or linux, we can't do anything macosxy due to lack of lipo/strip :o( | |
| 16 | 16 | local tEngineFolders | |
| 17 | 17 | ||
| 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" | ||
| 19 | 19 | ||
| 20 | 20 | repeat for each word tPlatform in it | |
| 21 | 21 | builderFetchEngine pVersion, tPlatform | |
@@ -112,9 +112,6 @@ private command toolsBuilderFilterExternals pFolder, pPlatform | |||
| 112 | 112 | end repeat | |
| 113 | 113 | end if | |
| 114 | 114 | ||
| 115 | - -- remove windows 64 bit builds only required for filemaker | ||
| 116 | - get shell("rm -fv *x86_64.dll") | ||
| 117 | - | ||
| 118 | 115 | -- If the directory contains no code any more, remove it | |
| 119 | 116 | put the files & return & the folders into tFiles | |
| 120 | 117 | filter lines of tFiles with regex pattern "^.*\.(so|dylib|bundle|dll|lcext)$" | |
@@ -195,7 +192,8 @@ private command toolsBuilderMakePackage pVersion, pEdition, pPlatform, pEngineFo | |||
| 195 | 192 | packageCompilerConfigureSource tPackager, "linux-x86", pEngineFolders["linux-x86"] | |
| 196 | 193 | packageCompilerConfigureSource tPackager, "linux-x86_64", pEngineFolders["linux-x86_64"] | |
| 197 | 194 | 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"] | ||
| 199 | 197 | packageCompilerConfigureSource tPackager, "ios", pEngineFolders["ios"] | |
| 200 | 198 | packageCompilerConfigureSource tPackager, "android-armeabi-v7a", pEngineFolders["android-armeabi-v7a"] | |
| 201 | 199 | packageCompilerConfigureSource tPackager, "android-arm64-v8a", pEngineFolders["android-arm64-v8a"] | |
@@ -223,6 +221,8 @@ private command toolsBuilderMakePackage pVersion, pEdition, pPlatform, pEngineFo | |||
| 223 | 221 | end if | |
| 224 | 222 | if pPlatform begins with "linux" then | |
| 225 | 223 | packageCompilerConfigureVariable tPackager, "TargetPlatform", "linux" | |
| 224 | + else if pPlatform begins with "win" then | ||
| 225 | + packageCompilerConfigureVariable tPackager, "TargetPlatform", "windows" | ||
| 226 | 226 | else | |
| 227 | 227 | packageCompilerConfigureVariable tPackager, "TargetPlatform", pPlatform | |
| 228 | 228 | end if | |
@@ -231,11 +231,11 @@ private command toolsBuilderMakePackage pVersion, pEdition, pPlatform, pEngineFo | |||
| 231 | 231 | packageCompilerConfigureVariable tPackager, "EscapedVersionTag", tVersionEscaped | |
| 232 | 232 | packageCompilerConfigureVariable tPackager, "ProductBranch", char 1 to 3 of pVersion | |
| 233 | 233 | packageCompilerConfigureVariable tPackager, "TargetArchitectures", "i386" | |
| 234 | - if pPlatform is "linux-x86" then | ||
| 234 | + if pPlatform ends with "-x86" then | ||
| 235 | 235 | packageCompilerConfigureVariable tPackager, "TargetArchitecture", "x86" | |
| 236 | - else if pPlatform is "linux-x86_64" then | ||
| 236 | + else if pPlatform ends with "-x86_64" then | ||
| 237 | 237 | packageCompilerConfigureVariable tPackager, "TargetArchitecture", "x86_64" | |
| 238 | - else if pPlatform is "linux-armv6hf" then | ||
| 238 | + else if pPlatform ends with "-armv6hf" then | ||
| 239 | 239 | packageCompilerConfigureVariable tPackager, "TargetArchitecture", "armv6-hf" | |
| 240 | 240 | end if | |
| 241 | 241 | ||
@@ -423,7 +423,8 @@ private command toolsBuilderMakeInstaller pVersion, pEdition, pPlatform, pIdeFol | |||
| 423 | 423 | put return & "insert script of stack" && quote & "InstallerUtilities" & quote && "into back" after tParams["startup_script"] | |
| 424 | 424 | ||
| 425 | 425 | switch pPlatform | |
| 426 | - case "windows" | ||
| 426 | + case "win-x86" | ||
| 427 | + case "win-x86_64" | ||
| 427 | 428 | -- Process the manifest appropriately | |
| 428 | 429 | local tManifestFile | |
| 429 | 430 | get windowsManifest() | |
@@ -434,7 +435,7 @@ private command toolsBuilderMakeInstaller pVersion, pEdition, pPlatform, pIdeFol | |||
| 434 | 435 | put tManifestFile into tParams["manifest"] | |
| 435 | 436 | ||
| 436 | 437 | -- First we deploy the installer unsigned | |
| 437 | - put abstractPinFile(builderInstallerEngine("windows")) into tParams["engine"] | ||
| 438 | + put abstractPinFile(builderInstallerEngine(pPlatform)) into tParams["engine"] | ||
| 438 | 439 | put tInstallerStackfile into tParams["stackfile"] | |
| 439 | 440 | put pPackageFile into tParams["payload"] | |
| 440 | 441 | put tOutputFileStub & ".unsigned.exe" into tParams["output"] | |
@@ -938,8 +939,10 @@ function getInstallerFilenameStub pVersion, pPlatform, pEdition | |||
| 938 | 939 | replace "." with "_" in pVersion | |
| 939 | 940 | if pPlatform is "macosx" then | |
| 940 | 941 | 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 | ||
| 943 | 946 | else if pPlatform begins with "linux" then | |
| 944 | 947 | put "Linux" into pPlatform | |
| 945 | 948 | end if | |
@@ -956,8 +959,10 @@ function getDmgFilenameStub pVersion, pPlatform, pEdition | |||
| 956 | 959 | replace "." with "_" in pVersion | |
| 957 | 960 | if pPlatform is "macosx" then | |
| 958 | 961 | 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 | ||
| 961 | 966 | else if pPlatform is "linux" or pPlatform is "linux-x64" or pPlatform is "linux-armv6hf" then | |
| 962 | 967 | put "Linux" into pPlatform | |
| 963 | 968 | end if | |
| Back | FazBrowse Home | New Git URL |
0 commit comments