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

Commit c7a5741

Browse files
committed
Updated symbolicator to work with new symbols filename
1 parent 4ee648b commit c7a5741

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

tools/SymbolicatorScript.livecodescript

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -505,17 +505,24 @@ 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
509-
put pServerPath & "/" & pFullVersion & "/g" & char 1 to 7 of pCommitHash & "/mac-bin.tar.xz" into tURL
508+
local tURL, tMacSymbolsZip
510509

510+
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
514+
end if
515+
516+
put pServerPath & "/" & pFullVersion & "/g" & char 1 to 10 of pCommitHash & slash & tMacSymbolsZip into tURL
517+
511518
-- Create the output folder, if required
512519
if there is not a folder pOutputDir then
513520
create folder pOutputDir
514521
end if
515522

516523
-- Download the file
517524
local tOutputFile
518-
put pOutputDir & "/mac-bin.tar.xz" into tOutputFile
525+
put pOutputDir & slash & tMacSymbolsZip into tOutputFile
519526
if there is not a file tOutputFile then
520527
verbosePrint "Downloading" && tURL && "to" && tOutputFile
521528

@@ -542,7 +549,7 @@ private command fetchSymbolsForRevision pOutputDir, pServerPath, pFullVersion, p
542549
verbosePrint "Unpacking symbols"
543550
put the defaultFolder into tDefaultFolder
544551
set the defaultFolder to pOutputDir
545-
get shell ("tar --strip-components 1 -xf mac-bin.tar.xz")
552+
get shell ("tar --strip-components 1 -xf " && tMacSymbolsZip)
546553
if the result is not zero then
547554
throw "unpacking staged symbols failed:" && it
548555
end if

0 commit comments

Comments
 (0)