Giter Site home page Giter Site logo

kuler90 / activate-unity Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 16.0 183 KB

GitHub Action to activate Unity Personal or Professional license on Ubuntu, macOS or Windows

License: MIT License

JavaScript 100.00%
unity github-actions continuous-integration activation

activate-unity's People

Contributors

davidmfinol avatar igmat avatar js6pak avatar kuler90 avatar rbehshad avatar tiagosantos01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

activate-unity's Issues

Unable to activate Unity

After the alf file is created, It is stuck in License robot. Login...

Unity Editor version:    2020.3.33f1 (915a7af8b0d5)
Branch:                  2020.3/staging
Build type:              Release
Batch mode:              YES
System name:             Linux
Distro version:          #25~20.04.1-Ubuntu SMP Thu Sep 1 19:20:56 UTC 2022
Kernel version:          5.15.0-1020-azure
Architecture:            x86_64
Available memory:        6944 MB
[LicensingClient] Channel doesn't exist: "LicenseClient-runner"
[Licensing::Module] Successfully launched the LicensingClient (PId: 4045)
[SignatureVerifier] Application signature verification not supported on this platform.
[Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-runner" (connect: 1.09s, validation: 0.11s, handshake: 0.00s)
[Licensing::Module] Connected to LicensingClient (PId: 4045, launch time: 0.00, total connection time: 1.19s)
Entitlement-based licensing initiated
[LicensingClient] Licenses updated successfully
[Licensing::Module] Error: License is not active (com.unity.editor.headless). HasEntitlements will fail.
Pro License: NO

 Generating manual activation license file.

LICENSE SYSTEM [2022927 13:12:18] License activate file written to: Unity_v2020.3.33f1.alf

 Manual activation license file saved.
License robot. Start
License robot. Login...
TimeoutError: Navigation timeout of 120000 ms exceeded
    at /home/runner/work/_actions/kuler90/activate-unity/v1/node_modules/puppeteer/lib/cjs/puppeteer/common/LifecycleWatcher.js:108:111
    at async FrameManager.waitForFrameNavigation (/home/runner/work/_actions/kuler90/activate-unity/v1/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:168:23)
    at async Frame.waitForNavigation (/home/runner/work/_actions/kuler90/activate-unity/v1/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:5[36](https://github.com/****/myracle-andromeda/actions/runs/3135801316/jobs/5091916067#step:4:37):16)
    at async Page.waitForNavigation (/home/runner/work/_actions/kuler90/activate-unity/v1/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:1229:16)
    at async Promise.all (index 1)
    at async licensePage_login (/home/runner/work/_actions/kuler90/activate-unity/v1/src/license-robot.js:49:5)
    at async browser_getPersonalLicense (/home/runner/work/_actions/kuler90/activate-unity/v1/src/license-robot.js:23:9)
    at async retry (/home/runner/work/_actions/kuler90/activate-unity/v1/src/license-robot.js:1[40](https://github.com/****/myracle-andromeda/actions/runs/3135801316/jobs/5091916067#step:4:41):20)
    at async Object.getPersonalLicense (/home/runner/work/_actions/kuler90/activate-unity/v1/src/license-robot.js:12:25)
    at async run (/home/runner/work/_actions/kuler90/activate-unity/v1/src/activate-license.js:23:33)
License robot. Login...

Error: "Couldn't set project path to:"

Hello,
Unity is failing on the activation step with these logs:

COMMAND LINE ARGUMENTS:
/Applications/Unity/Hub/Editor/2022.3.4f1/Unity.app/Contents/MacOS/Unity
-batchmode
-nographics
-quit
-logFile
-
-projectPath
?
-username
***
-password
(hidden)
-serial
(hidden)
Couldn't set project path to: 

Aborting batchmode due to failure:
Couldn't set project path to: 

[Package Manager] Server::Kill -- Server was shutdown
Error: Activation failed

How can we fix this error?

Great work! May we please steal it? :)

Hi @kuler90,

Very nice and clean setup for activating Unity.
Since it's licensed MIT, are you ok with us using it for unity-actions? Currently unity-builder and unity-test-runner require manual setup still for free licenses, where everyone has to activate following the "Activation" documentation.

We work together under the open source community of unity-ci, we share our docs in a central place and we have a discord server. Please feel free to join us, or just drop by for a chat and let us know if you're ok with us reusing some of your activation logic.

Thanks again!

I Got this error during activatation

Cancelling DisplayDialog: Information The license file directory does not exist and needs to be created in a process with elevated privileges. A separate process will be spawned to do this, and you will be prompted for permissions. To avoid this, run the installer which automatically creates this directory.
This should not be called in batch mode.

And the action stay in pending status since then.

How to solve it?

using macos-latest for running action

Action Failing

Hello.

This action has worked great for me in the past, but it recently stopped working.

my workflow:

- name: Setup Unity
  uses: kuler90/[email protected]
  with:
    unity-version: 2020.2.2f1
    unity-modules: 
      mac-il2cpp
      windows-il2cpp
      ios
      android
      
- name: Activate Unity
  uses: kuler90/activate-unity@v1
  with:
    unity-username: ${{ secrets.UNITY_USERNAME }}
    unity-password: ${{ secrets.UNITY_PASSWORD }}

the error:

/Applications/Unity/Hub/Editor/2020.2.2f1/Unity.app/Contents/MacOS/Unity -batchmode -nographics -quit -logFile - -createManualActivationFile
[Licensing::Module] Channel doesn't exist: "LicenseClient-runner"
Launching external process: /Applications/Unity/Hub/Editor/2020.2.2f1/Unity.app/Contents/Frameworks/UnityLicensingClient.app/Contents/Resources/Unity.Licensing.Client
[Licensing::Module] Successfully launched the LicensingClient (PId: 1771)
[Licensing::Module] Successfully connected to LicensingClient on channel: "LicenseClient-runner" (connect: 0.70s, validation: 0.07s, handshake: 0.30s)
[Licensing::Module] Connected to LicensingClient (PId: 1771, launch time: 0.00, total connection time: 1.07s)
Entitlement-based licensing initiated
[LicensingClient] Licenses updated successfully

 Generating manual activation license file.

LICENSE SYSTEM [202156 5:26:40] License activate file written to: Unity_v2020.2.2f1.alf

 Manual activation license file saved.
Error: Navigation timeout of 30000 ms exceeded

Any help would be greatly appreciated.

Thanks!

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.