| ... | ... | @@ -211,6 +211,10 @@ export LANG=C.UTF-8 | 
| 211 | 211 |      cp obj-*/testing/geckodriver/x86_64-unknown-linux-gnu/release/geckodriver $distdir
 | 
| 212 | 212 |    [% END %]
 | 
| 213 | 213 |    cp -a obj-*/dist/[% c('var/exe_name') %]/* $distdir/Browser/
 | 
|  | 214 | +  mkdir -p $distdir/Debug
 | 
|  | 215 | +  # Some include files are symlinks, so use -Lr, or the tarball will fail
 | 
|  | 216 | +  # silently. Also, on Linux we populate the debug symbols by stripping later.
 | 
|  | 217 | +  cp -Lr obj-*/dist/include $distdir/Debug/
 | 
| 214 | 218 |    # Remove firefox-bin (we don't use it, see ticket #10126)
 | 
| 215 | 219 |    rm -f "$distdir/Browser/[% c('var/exe_name') %]-bin"
 | 
| 216 | 220 |    # TODO: There goes FIPS-140.. We could upload these somewhere unique and
 | 
| ... | ... | @@ -232,6 +236,11 @@ RBM_TB_EOF | 
| 232 | 236 |    [% ELSE %]
 | 
| 233 | 237 |      cp -a /var/tmp/dist/fxc2/bin/d3dcompiler_47.dll $distdir/Browser
 | 
| 234 | 238 |    [% END %]
 | 
|  | 239 | +  mkdir -p $distdir/Debug/Browser
 | 
|  | 240 | +  pushd obj-*
 | 
|  | 241 | +  cp -Lr dist/include $distdir/Debug/
 | 
|  | 242 | +  find . \( -path ./dist -o -path ./_tests \) -prune -o -name '*.pdb' -exec cp -l {} $distdir/Debug/Browser/ \;
 | 
|  | 243 | +  popd
 | 
| 235 | 244 |  [% END %]
 | 
| 236 | 245 |  
 | 
| 237 | 246 |  [% IF c("var/updater_enabled") -%]
 | 
| ... | ... | @@ -279,8 +288,8 @@ RBM_TB_EOF | 
| 279 | 288 |  
 | 
| 280 | 289 |  cd $distdir
 | 
| 281 | 290 |  
 | 
| 282 |  | -[% IF c("var/linux-x86_64") %]
 | 
| 283 |  | -  [% IF !c("var/asan") %]
 | 
|  | 291 | +[% IF c("var/linux") -%]
 | 
|  | 292 | +  [% IF c("var/linux-x86_64") && !c("var/asan") -%]
 | 
| 284 | 293 |      # No need for an unstripped geckodriver
 | 
| 285 | 294 |      strip geckodriver
 | 
| 286 | 295 |    [% END %]
 | 
| ... | ... | @@ -334,17 +343,22 @@ END; | 
| 334 | 343 |          tar_args => '-czf ' _ dest_dir _ '/' _ c('filename') _ '/browser.tar.gz',
 | 
| 335 | 344 |      }) %]
 | 
| 336 | 345 |  
 | 
| 337 |  | -[% IF c("var/linux-x86_64") %]
 | 
|  | 346 | +[% IF c("var/linux") -%]
 | 
| 338 | 347 |  [% c('tar', {
 | 
| 339 | 348 |          tar_src => [ 'Debug' ],
 | 
| 340 | 349 |          tar_args => '-cJf ' _ dest_dir _ '/' _ c('filename') _ '/browser-debug.tar.xz',
 | 
| 341 | 350 |      }) %]
 | 
| 342 |  | -  [% IF !c("var/asan") %]
 | 
|  | 351 | +  [% IF c("var/linux-x86_64") && !c("var/asan") -%]
 | 
| 343 | 352 |      [% c('tar', {
 | 
| 344 | 353 |              tar_src => [ 'geckodriver' ],
 | 
| 345 | 354 |              tar_args => '-cJf ' _ dest_dir _ '/' _ c('filename') _ '/geckodriver-linux64.tar.xz',
 | 
| 346 | 355 |          }) %]
 | 
| 347 | 356 |    [% END %]
 | 
|  | 357 | +[% ELSIF c("var/windows") -%]
 | 
|  | 358 | +  [% c('zip', {
 | 
|  | 359 | +      zip_src => [ 'Debug' ],
 | 
|  | 360 | +      zip_args => dest_dir _ '/' _ c('filename') _ '/browser-debug.zip',
 | 
|  | 361 | +    }) %]
 | 
| 348 | 362 |  [% END %]
 | 
| 349 | 363 |  
 | 
| 350 | 364 |  [% IF c("var/updater_enabled") -%]
 |