anchor.diff:    }
     Write-Verbose "Platform Version: $platform_version"
   
  -  # TODO: When we ship a 64 bit ruby for Windows.
  -  $machine = 'i386'
  -  Write-Verbose "Machine: $machine"
  +  if ($architecture -eq 'auto') {
  +    if (((get-wmiobject win32_operatingsystem).osarchitecture -like '64-bit')) {
  +      $architecture = 'x86_64'
  +    } else {
  +      $architecture = 'i386'
  +    }
  +  }
  +
  +  Write-Verbose "Architecture: $architecture"
     Write-Verbose "Project: $project"
   
     <% artifacts.each do |artifact| %>
  
positive.code:     [switch]
      $prerelease,
      [switch]
      $nightlies
    )
  
    # PowerShell is only on Windows ATM
  
negative.code:     "sha256 <%= artifact.sha256%>" | out-file "$artifact_info_dir/artifact_info" -Append
    <% end %>
  
    $artifact_info_for_platform = Get-Content "$($env:temp)/artifact_info/$($platform)/$($platform_version)/$($architecture)/artifact_info"
  
    $package_metadata = ($artifact_info_for_platform).trim() -split '\n' |
      foreach { $hash = @{} } {$key, $value = $_ -split '\s+'; $hash.Add($key, $value)} {$hash}
  