.Net Application to Upload APK or AAB to Google Play Console.
- Note: in order to use this application, you must create a service acount
- dotnet run
- dotnet build GooglePlayUploader -c Release
- dotnet publish --runtime osx.10.14-x64
- mv bin/Debug/netcoreapp2.2/osx.10.14-x64/publish/GooglePlayUploader ./GooglePlayUploader
Example: GooglePlayUploader --authFile serviceAccount.json --appId au.com.google.google -appFile package.apk
-a, --authFile Required. Google Auth File
-i, --appId Required. App id
-f, --appFile Required. App File
--help Display this help screen.
--version Display version information.
- Create a service account and get access keys json file
- Open Google Play console. Go to “Settings” > “Developer account” > “API access”.
- In “Service Accounts” section, choose “Create Service Account”.
- You will be sent to “Google Cloud Plaform” console. Continue creating account there.
- Give it a chosen name and ID.
- Set “Service Account User” role.
- Create private key and download it as a json file & rename. This will be our authFile.
- No need to grant any additional access here.
- Copy e-mail of a created user. Should look like some_id@api-12345–12345.iam.gserviceaccount.com
- Return to “Service Accounts” in Google Play. Created account should be visible there. If not, invite it using saved e-mail.
- Press “Grant Access” button next to your service account and allow it to upload apks. When finished choosing permissions, press “add”.