Git Product home page Git Product logo

unitypackageupdater's Introduction

Unity Package Updater

Utility to update several unity packages at once.

preview

Usage

Select Window > Tools > Window/Tools/Update Packages and check/uncheck the package you want to update.

The utility will not show you preview updates if the package version is not already in a preview version.

Installation

Using Open UPM

You can install this package using OpenUPM's command line tool:

openupm add dev.bullrich.package-updater

Adding the package to the Unity project manifest

  • Navigate to the Packages directory of your project.

  • Adjust the project manifest file manifest.json in a text editor.

    • Ensure https://registry.npmjs.org/ is part of scopedRegistries.
      • Ensure dev.bullrich is part of scopes.
    • Add dev.bullrich.package-updater to dependencies, stating the latest version.

    A minimal example ends up looking like this. Please note that the version X.Y.Z stated here is to be replaced with the latest released version which is currently openupm.

    {
      "scopedRegistries": [
        {
          "name": "npmjs",
          "url": "https://registry.npmjs.org/",
          "scopes": [
            "dev.bullrich"
          ]
        }
      ],
      "dependencies": {
        "dev.bullrich.package-updater": "X.Y.Z"
      }
    }
  • Switch back to the Unity software and wait for it to finish importing the added package.

Add editor test

If you want to ensure that all packages are always up to date, you can add the unit tests which ensures that there is no update available.

If you want to add this test to your project you can add it following this steps:

  • Navigate to the Packages directory of your project.

  • Adjust the project manifest file manifest.json in a text editor.

    • Ensure dev.bullrich.package-updater is part of testables.

    A minimal example ends up looking like this.

    {
      "scopedRegistries": [
        ...
      ],
      "testables": [
        "dev.bullrich.package-updater"
      ],
      "dependencies": {
        ...
      }
    }
  • In the Unity software select Main Menu -> Window -> Test Runner.

  • Within the Test Runner window click on the EditMode tab and the click Run All button.

  • If all the tests pass then the installation was successful.

unitypackageupdater's People

Contributors

bullrich avatar

Stargazers

Jesse Talavera avatar

Watchers

James Cloos avatar  avatar  avatar

unitypackageupdater's Issues

Newtonsoft.Json packages conflicts

I'm using this version of Newtonsoft.Json and after adding the Package Updater there are a lot of conflict errors, such as:

GUID [a8a90c35b04530c4f971aaef6fdf3612] for asset 'Packages/com.unity.nuget.newtonsoft-json/link.xml' conflicts with:
  'Packages/jillejr.newtonsoft.json-for-unity/link.xml' (current owner)
We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.

GUID [6c694cfdc33ae264fb33e0cd1c7e25cf] for asset 'Packages/com.unity.nuget.newtonsoft-json/Runtime/AOT/Newtonsoft.Json.dll' conflicts with:
  'Packages/jillejr.newtonsoft.json-for-unity/Plugins/Newtonsoft.Json AOT/Newtonsoft.Json.dll' (current owner)
We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.