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

Commit 0393069

Browse files
committed
[Symbolicator] Tweaks to support both old and new symbol names
1 parent c7a5741 commit 0393069

File tree

1 file changed

+33
-6
lines changed

1 file changed

+33
-6
lines changed

tools/SymbolicatorScript.livecodescript

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -505,16 +505,43 @@ private command fetchSymbolsForRevision pOutputDir, pServerPath, pFullVersion, p
505505
replace space with "%20" in pFullVersion
506506

507507
-- Generate the URL for the file containing the symbols
508-
local tURL, tMacSymbolsZip
508+
local tURL, tMacSymbolsZip, tCommitHashLength, tBuildNumber
509+
510+
put char 7 to 11 of pFullVersion into tBuildNumber
509511

510512
if pFullVersion begins with "8" then
511-
put "universal-mac-macosx10.6-bin.tar.bz2" into tMacSymbolsZip
512-
else
513-
put "universal-mac-macosx10.9-bin.tar.bz2" into tMacSymbolsZip
513+
514+
if tBuildNumber < 14023 then -- 8.0.0 until 8.1.3
515+
put 7 into tCommitHashLength
516+
put "mac-bin.tar.xz" into tMacSymbolsZip
517+
else if tBuildNumber >= 14023 and tBuildNumber < 14035 then -- 8.1.4 RC-1 until 8.1.6
518+
put 7 into tCommitHashLength
519+
put "universal-mac-macosx10.6-bin.tar.bz2" into tMacSymbolsZip
520+
else if tBuildNumber >= 14035 then -- 8.1.7 RC-1 +
521+
put 10 into tCommitHashLength
522+
put "universal-mac-macosx10.6-bin.tar.bz2" into tMacSymbolsZip
523+
end if
524+
525+
else -- pFullVersion begins with "9"
526+
527+
if tBuildNumber < 15004 then -- DP-1 until DP-4
528+
put 7 into tCommitHashLength
529+
put "mac-bin.tar.xz" into tMacSymbolsZip
530+
else if tBuildNumber is "15004" or tBuildNumber is "15005" then -- DP-5 and DP-6
531+
put 7 into tCommitHashLength
532+
put "mac-bin.tar.bz2" into tMacSymbolsZip
533+
else if tBuildNumber is "15009" or tBuildNumber is "15010" then -- DP-7 and DP-8
534+
put 7 into tCommitHashLength
535+
put "universal-mac-macosx10.6-bin.tar.bz2" into tMacSymbolsZip
536+
else if tBuildNumber >= 15012 then -- DP-9+
537+
put 10 into tCommitHashLength
538+
put "universal-mac-macosx10.6-bin.tar.bz2" into tMacSymbolsZip
539+
end if
540+
514541
end if
515542

516-
put pServerPath & "/" & pFullVersion & "/g" & char 1 to 10 of pCommitHash & slash & tMacSymbolsZip into tURL
517-
543+
put pServerPath & "/" & pFullVersion & "/g" & char 1 to tCommitHashLength of pCommitHash & slash & tMacSymbolsZip into tURL
544+
518545
-- Create the output folder, if required
519546
if there is not a folder pOutputDir then
520547
create folder pOutputDir

0 commit comments

Comments
 (0)