mob-sakai / unity-activate Goto Github PK
View Code? Open in Web Editor NEWA tool to activate Unity license.
License: MIT License
A tool to activate Unity license.
License: MIT License
Describe the bug
I'm using this in a workflow installed from npm. Getting this error when I try to activate the license.
Start activating '/Unity_v2021.3.12f1.alf'
> goto manual activation page
> valid the username and password
> close cookie dialog
> enter the username and password
> login
> close update dialog
> upload alf file
> select license options
Error: Cannot read properties of undefined (reading 'length')
does this work for unity 2023
I use cli way to activate license, I am pretty sure UNITY_USERNAME, UNITY_PASSWORDand UNITY_SERIAL are given correctly. The UNITY_ULF_DIR is assigned as "/app" and Unity_vX.alf is correct(as I did this process manually to get ulf file to check)
node /app/dist/index.js \ --out "$UNITY_ULF_DIR" \ --username "$UNITY_USERNAME" \ --password "$UNITY_PASSWORD" \ --serial "$UNITY_SERIAL" \ --debug \ "/app/Unity_vX.alf"
I just don't know no matter how many times I try, I keep getting
Current DOM has been saved at error.html
Download failed
Run unity-activate --help
to show help.
Unsure which part I miss. Can anyone give me a hint?
Few weeks back then, it is working.
Today it shows "Navigation timeout of 30000 ms exceeded" error when I tried to renew the license.
Logs
Run unity-activate --username "***" -*** --key "***" "Unity_v***.alf"
Start activating 'Unity_v***.alf'
> goto manual activation page
> enter the username and password
> login
> upload alf file
Navigation timeout of 30000 ms exceeded
Run `unity-activate --help` to show help.
Error: Process completed with exit code 1.
My .yml File
name: Renew Unity license
on:
workflow_dispatch: {}
env:
# License
ULF_FILE: Unity_v2020.x.ulf
# Project
UNITY_VERSION: ${{ secrets.UNITY_VERSION }}
jobs:
request_alf:
name: Request .alf file π
runs-on: ubuntu-latest
outputs:
alf: ${{ steps.output.outputs.alf }}
steps:
- name: Request manual activation file
id: alfFile
uses: game-ci/unity-request-activation-file@main
with:
unityVersion: ${{ env.UNITY_VERSION }}
# Upload artifact (Unity_v20XX.X.XXXX.alf)
- name: Expose as artifact
uses: actions/upload-artifact@v1
with:
name: ${{ steps.alfFile.outputs.filePath }}
path: ${{ steps.alfFile.outputs.filePath }}
- name: Output
id: output
run: |
echo "::set-output name=alf::${{ steps.alfFile.outputs.filePath }}"
acquire_ulf:
needs: [request_alf]
name: Acquire .ulf file π
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Download .alf artifact
uses: actions/download-artifact@v2
with:
name: ${{ needs.request_alf.outputs.alf }}
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
#- name: Install node package, `unity-license-activate`
# run: npm install --global unity-license-activate
- name: Install node package, `unity-activate`
run: npm install --global unity-activate
- name: Install node package, `unity-verify-code`
run: npm install --global unity-verify-code
- name: Activate license
run: unity-activate --username "${{ secrets.UNITY_EMAIL }}" --password "${{ secrets.UNITY_PASSWORD }}" --key "${{ secrets.UNITY_AUTHENTICATOR_KEY }}" "Unity_v${{ env.UNITY_VERSION }}.alf"
#- name: Activate the license
# continue-on-error: true
# run: unity-license-activate "${{ secrets.UNITY_EMAIL }}" "${{ secrets.UNITY_PASSWORD }}" "${{ needs.request_alf.outputs.alf }}" "${{ secrets.UNITY_AUTHENTICATOR_KEY }}"
- name: Read ulf
id: ulfRead
uses: juliangruber/[email protected]
with:
path: ${{ env.ULF_FILE }}
- name: Update secret UNITY_LICENSE
uses: hmanzur/[email protected]
with:
name: 'UNITY_LICENSE'
value: '${{ steps.ulfRead.outputs.content }}'
token: ${{ secrets.ACCESS_TOKEN }}
I got this error when trying this cli tool.
Any idea? I think it would be helpful if the tool itself print out more information about the error!
beta
branch failed. π¨I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. Iβm sure you can resolve this πͺ.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the beta
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here is some links that can help you:
If those donβt help, or if this issue is reporting something you think isnβt right, you can always ask the humans behind semantic-release.
An npm token must be created and set in the NPM_TOKEN
environment variable on your CI environment.
Please make sure to create an npm token and to set it in the NPM_TOKEN
environment variable on your CI environment. The token must allow to publish to the registry https://registry.npmjs.org/
.
Good luck with your project β¨
Your semantic-release bot π¦π
Describe the bug
Happens occasionally.
Error: waiting for selector `#new_conversations_create_session_form #conversations_create_session_form_password` failed: timeout 2000ms exceeded
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.