kuler90 / activate-unity Goto Github PK
View Code? Open in Web Editor NEWGitHub Action to activate Unity Personal or Professional license on Ubuntu, macOS or Windows
License: MIT License
GitHub Action to activate Unity Personal or Professional license on Ubuntu, macOS or Windows
License: MIT License
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...
Versions prior to 2018 didn't have CLI for activation, only a GUI one: https://docs.unity3d.com/2017.4/Documentation/Manual/ManualActivationGuide.html
Which means that the only way to activate them headlessly is by creating the .ulf
ourselves.
It contains a bunch of encrypted HWIDs but we could workaround all of that just by using @unityhub/unity-editor-license
node library which could be extracted from the unityhub asar
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?
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!
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
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.