A simple C# tool to refresh Unity's .upmconfig.toml
with the current Google Cloud Platform token.
This tool relies on the Google Cloud SDK being installed, and notably the gcloud
CLI being present.
Install as global tool via dotnet tool install -g GCPRefreshUpmToken
,
or see next section.
Example command line:
GCPRefreshUpmToken -r https://region-location-npm.pkg.dev/organization/registry -c ~/.upmconfig.toml
-r
,--registry
precises the registry URL and is required.-c
,--config
precises the config file, i.e.~/.upmconfig.toml
, and defaults to aforementioned file.
Out-of-the-box, dotnet build
will rebuild from source.
TBD
.gcprefresh.toml
and .gcprefresh.json
can be used to precise the default registry and the default config file as well.
Please refer to COLLABORATION.md
for further details, but generally talking,
I'm open for bug fixes.