thomastuts / hearthstone-api

0 stars 0 forks source link

Find a way to query Battle.net for HearthStone's version #7

Open thomastuts opened 10 years ago

thomastuts commented 10 years ago

We can find the current Hearthstone version on OSX by opening the Hearthstone.app package contents and checking info.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleExecutable</key>
    <string>Hearthstone</string>
    <key>CFBundleGetInfoString</key>
    <string>Unity Player version 4.2.2f1 (bcf20b1af481). (c) 2013 Unity Technologies ApS. All rights reserved.</string>
    <key>CFBundleIconFile</key>
    <string>UnityPlayer.icns</string>
    <key>CFBundleIdentifier</key>
    <string>unity.Blizzard Entertainment.Hearthstone</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>Hearthstone</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>Unity Player version 4.2.2f1</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>4.2.2f1</string>
    <key>NSMainNibFile</key>
    <string>MainMenu</string>
    <key>NSPrincipalClass</key>
    <string>PlayerApplication</string>
    <key>UnityBuildNumber</key>
    <string>bcf20b1af481</string>
    <key>BlizzardFileVersion</key>
    <string>1.0.0.5506</string>
</dict>
</plist>

(see the last string called BlizzardFileVersion)