GithubHelp home page GithubHelp logo

lepr0 / unity-activate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mob-sakai/unity-activate

0.0 0.0 0.0 41 KB

A tool to activate Unity license.

License: MIT License

JavaScript 29.00% TypeScript 71.00%

unity-activate's Introduction

unity-activate

A tool to automate the manual activation of unity license using puppeteer.

Inspired by https://github.com/MizoTake/unity-license-activate (@MizoTake).

npm license downloads release semantic-release





Usage as a node module:

npm install unity-activate
const { ActivatorOptions, Activator } = require('unity-activate');

(async () => {
    new Activator({
        file :'input.alf',
        username :'username',
        password :'password',
        serial :'serial_code',
        out :'output_dir',
      }).run();
})();





Usage as a command-line utility:

# Installation:
npm install -g unity-activate
Usage:
  $ unity-activate [opts] <*.alf>

Activate Unity activation license file (Unity_v***.alf or Unity_lic.alf)
NOTE: If two-factor authentication is enabled, the verify code will be requested.

Options:
  -o, --out <dir>              Output ulf file to the specified directory (default: .)
  -u, --username <username>    Username (email) to login Unity (default: $UNITY_USERNAME)
  -p, --password <password>    Password to login Unity (default: $UNITY_PASSWORD)
  -s, --serial <serial>        Serial key to activate (default: $UNITY_SERIAL). If empty, activate as personal license.
NOTE: Unity Personal Edition is not available to companies or organizations that earned more than USD100,000 in the previous fiscal year.
 
  -d, --debug                  Run "headful" puppeteer (default: false)
  -h, --help                   Display this message 
  -v, --version                Display version number



Step 1: Get a license request file

Create a license activation file and import license file by command.

# On Windows:
$ "C:\Program Files\Unity\Editor\Unity.exe" -batchmode -createManualActivationFile

# On macOS:
$ /Applications/Unity/Unity.app/Contents/MacOS/Unity -batchmode -createManualActivationFile

Or, with UnityHub (Settings > License Management > MANUAL ACTIVATION > SAVE LICENSE REQUEST).



Step 2: Request a license (*.ulf)

Run unity-activate to download the *.ulf file.

# For personal license (with interaction):
$ unity-activate ***.alf
$   > enter the username and password
$ username: [email protected]
$ password: *****
...

# For personal license:
$ unity-activate --username [email protected] --password your_password ***.alf

# For professional license (with --serial option):
$ unity-activate --username [email protected] --password your_password --serial your_serial_code ***.alf

# Use environment variables instead of options:
$ export [email protected]
$ export UNITY_PASSWORD=your_password
$ export UNITY_SERIAL=your_serial_code # If empty, activate as personal license.
$ unity-activate ***.alf



Step 3: Activate your license

Now that you have your license file, you can activate your Unity account by command.

# On Windows:
$ "C:\Program Files\Unity\Editor\Unity.exe" -batchmode -manualLicenseFile ***.ulf

# On macOS:
$ /Applications/Unity/Unity.app/Contents/MacOS/Unity -batchmode -manualLicenseFile ***.ulf

Or, with UnityHub.





Contributing

Issues

Issues are very valuable to this project.

  • Ideas are a valuable source of contributions others can make
  • Problems show where this project is lacking
  • With a question you show where contributors can improve the user experience

Pull Requests

Pull requests are, a great way to get your ideas into this repository.

Support

This is an open source project that I am developing in my spare time.
If you like it, please support me.
With your support, I can spend more time on development. :)





License

  • MIT

Author

See Also

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.