It is a game launcher and updater ought to compare and download updated files to game directory from Google Drive.
- Create a new project in Google Cloud Platform.
- Add Google Drive API to it.
- Create a new IAM Service Account, memorize the technical E-mail of the service account.
- At the Permissions tab give it a role Viewer.
- At the Keys tab create a new key, name the given json file
config.json
and put it to this project root. - From any Google Drive account, share a directory with a game client with the service account E-mail.
- Copy game client directory ID/slug from page URL when you open it in browser
- Add
"root_id": "ID from the previous step"
to theconfig.json
. - Build. Compress with UPX if you need to reduce the file size.
- Share the binary file (
config.json
should not be shared with it).
- Update may have trouble locating files when updater current directory contains non-UTF8 characters in its path.
If you need to compile Windows x32+x64, use GOX package:
-
Run
go get github.com/mitchellh/gox
to getgox
binary (go/bin should be in yourPATH
). -
Once you've got gox, call
gox -os="windows"
to build i386 + amd64 executables right in project directory.