This document shows you how to publish your game on Google Play Games on PC.
Before you begin
Integrate the Google Play Games SDK into your game.
Package your game as a WAB file
Google Play Games on PC requires your game's installer to be uploaded to Google Play Console as a Windows app bundle (WAB) file. To create a WAB file, follow these steps:
Download the Play publishing tool. You can run this tool on the Windows command line or Powershell.
Create the Play publishing config file, with any name. For example,
play_publishing_config.xml
with the following format:<?xml version="1.0" encoding="UTF-8"?> <play-publishing-config version="1.0"> <application> <package-name>PACKAGE_NAME</package-name> <version-name>VERSION</version-name> </application> <installer requiresElevation=REQUIRES_ELEVATION> <path>PATH</path> <installation-path-registry-location> <key-name>KEY1</key-name> <value-name>VALUE1</value-name> </installation-path-registry-location> </installer> <launcher requiresElevation=REQUIRES_ELEVATION> <launch-path-registry-location > <key-name>KEY2</key-name> <value-name>VALUE2</value-name> </launch-path-registry-location> <executable-invocation> <filename>FILENAME</filename> <arguments>ARGS</arguments> </executable-invocation> </launcher> <uninstaller requiresElevation=REQUIRES_ELEVATION> <uninstall-path-registry-location> <key-name>KEY3</key-name> <value-name>VALUE3</value-name> </uninstall-path-registry-location> </uninstaller> </play-publishing-config>
Replace the following:
PACKAGE_NAME
: The package name for your game. For example,test.package.name
.VERSION
: The game's version. For example,1.0
.REQUIRES_ELEVATION
: Indicates if the executable needs to be run with elevated permissions such as an admin."true": Run the executable with elevated permissions.
"false": Run the executable without elevated permissions.
PATH
: The path to the installer EXE file for your game. This path can be either absolute or relative to the parent directory of the Play publishing config. For example,path\to\test\installer
. Use authenticode and code signing to sign your game's installer EXE.KEY1
,VALUE1
: Specify the windows registry key value pairs in theinstaller
element.KEY2
,VALUE2
: Specify the windows registry key value pairs in thelauncher
element.KEY3
,VALUE3
: Specify the windows registry key value pairs in theuninstaller
element.FILENAME
: Specify the path to your game's launcher executable. For example,path\to\launcher.exe
.ARGS
: The arguments to your game's launcher executable. These are optional.
Example Play publishing config file
Consider a game called
MyGame
, with game installergame_installer.exe
, game's launcherlauncher.exe
. The example also shows how to use CDATA. The following is what theplay_publishing_config.xml
will look like:<?xml version="1.0" encoding="UTF-8"?> <play-publishing-config version="1.0"> <application> <package-name>test.package.name</package-name> <version-name>1.0</version-name> </application> <installer requiresElevation="true"> <path>game_installer.exe</path> <installation-path-registry-location> <key-name>SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MyGame</key-name> <value-name>InstallPath</value-name> </installation-path-registry-location> </installer> <launcher requiresElevation="true"> <launch-path-registry-location > <key-name>SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MyGame</key-name> <value-name>ExePath</value-name> </launch-path-registry-location> <executable-invocation> <filename>launcher.exe</filename> <arguments><![CDATA[arg1&arg2>arg3]]></arguments> </executable-invocation> </launcher> <uninstaller requiresElevation="true"> <uninstall-path-registry-location> <key-name>SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MyGame</key-name> <value-name>UninstallString</value-name> </uninstall-path-registry-location> </uninstaller> </play-publishing-config>
Run the Play publishing tool on the Windows command line or Powershell.
playpublishingtool.exe build-installer-bundle --input=PLAY_PUBLISHING_CONFIG_PATH --output=WAB_OUTPUT_PATH
To overwrite an existing WAB file with the same name, use the
--force
argument.playpublishingtool.exe build-installer-bundle --input=PLAY_PUBLISHING_CONFIG_PATH --output=WAB_OUTPUT_PATH --force
Replace the following:
PLAY_PUBLISHING_CONFIG_PATH
: The path to the Play publishing config. For example,path\to\play_publishing_config.xml
.WAB_OUTPUT_PATH
: The path to the WAB file. For example,path\to\output_bundle.wab
.
How to use Play publishing tool
Consider that you have the Play publishing tool binary
playpublishingtool.exe
, Play publishing configplay_publishing_config.xml
and your game installergame_installer.exe
in the current working directory.Your current working directory should look like this:
.\ ├── game_installer.exe ├── play_publishing_config.xml ├── playpublishingtool.exe
To create a WAB with the name, say,
installer_bundle.wab
in the same directory, the command would look like:playpublishingtool.exe build-installer-bundle --input=play_publishing_config.xml --output=installer_bundle.wab
With the
--force
argument, the command would look like:playpublishingtool.exe build-installer-bundle --input=play_publishing_config.xml --output=installer_bundle.wab --force
On success, you should see output similar to the following:
Successfully built the installer bundle at installer_bundle.wab
Find the WAB file in the folder:
.\ ├── game_installer.exe ├── installer_bundle.wab ├── play_publishing_config.xml ├── playpublishingtool.exe
Publish the game using Play Console
After you successfully create the WAB for your game, upload it to Play Console and manage its settings and requirements. Follow the steps to publish your game:
Add the Google Play Games on PC form factor
Publish a game only requires this step the first time.
- In the Play Console on the left menu, select Test and release > Setup > Advanced settings (direct link).
Go to the Form factors tab and add
Google Play Games on PC
from the + Add form factor drop-down.Click the Manage button corresponding to the Google Play Games on PC form factor on the right-hand side.
Select the option Use a dedicated track for your Windows app bundle game.
Click Save and then Save again on the confirmation dialog.
Upload the WAB file
To upload the WAB file:
- In the Play Console on the left menu, select Test and release > Production (direct link).
- In the Production page, select Google Play Games on PC (Windows) only from the form factor drop-down on the right-hand side.
- In the Windows app bundle tab, click Upload a Windows app bundle button and upload the WAB file. Alternatively, you can also click the Upload a Windows app bundle button on the right side of the form factor drop-down.
- Click Save.
Configure the windows PC requirements
To configure the windows PC requirements:
- In the Play Console on the left menu, select Grow users > Store presence > Store settings (direct link).
- In the PC requirements section, click the Edit button on the right-hand side.
- Update the fields and click Save.
Configure the in-app purchase graphic
This is an optional step. To configure the in-app purchase graphic:
- In the Play Console on the left menu, select Grow users > Store presence > Store listings(direct link).
- In the Default store listing section in the Listings tab, click the -> (arrow) button on the right-hand side. This will take you to the Default store listing page.
- Navigate to the Google Play Games on PC section and upload the image at Google Play Games on PC (Windows) in-app purchase graphic.
- Click Save.
Send changes for review
- In the Play Console on the left menu, select Publishing overview.
- In the Changes not yet sent for review section, click Send changes for review.
When the Review team has approved your changes, your game will be discoverable on Google Play.