com.kagekirin.unitygcprefresh

0.0.5 • Public • Published

GCPRefresh for Unity

A Unity Editor extension to run gcloud auth every n minutes to refresh the ~/.upmconfig.toml with an updated GCP auth token.

Installation

Add the following registry to Unity's scoped registries, and this package to the dependencies.

{
  "scopedRegistries": [
    {
      "name": "npmjs",
      "url": "https://registry.npmjs.org",
      "scopes": [
        "com.kagekirin"
      ]
    }
  ],
  "dependencies": {
    "com.kagekirin.unitygcprefresh": "0.0.4"
  }

Setup

After installing GCPRefresh, you will need to set up the Google Cloud Artifact Registry for which to automatically refresh the auth token. The menu is under Project Settings / GCPRefresh.

Project Settings

Automatically refreshing the GCP auth token

You might have noticed the new entry GCP / Refresh GCP Token in the menu bar. This opens the window below:

GCPRefresh Window

Clicking on the Start button will directly refresh the token, and then enter a waiting phase depending on the refresh rate in the Project Settings.

Clicking on the Stop button will stop the automatic refreshing process.

/com.kagekirin.unitygcprefresh/

    Package Sidebar

    Install

    npm i com.kagekirin.unitygcprefresh

    Weekly Downloads

    0

    Version

    0.0.5

    License

    none

    Unpacked Size

    890 kB

    Total Files

    27

    Last publish

    Collaborators

    • kagekirin