GithubHelp home page GithubHelp logo

mob-sakai / unity-activate Goto Github PK

View Code? Open in Web Editor NEW
82.0 6.0 19.0 278 KB

A tool to activate Unity license.

License: MIT License

JavaScript 26.54% TypeScript 73.46%
unity unity3d npm-package license-management activate

unity-activate's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

unity-activate's Issues

Cannot read properties of undefined (reading 'length')

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')

Download failed several times

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?

Navigation timeout of 30000 ms exceeded

Few weeks back then, it is working.
Today it shows "Navigation timeout of 30000 ms exceeded" error when I tried to renew the license.

  • Used in Github Action
  • Unity Version 2020.3.15f2
  • Personal license
  • Activate with authenticator key

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 }}

Download failed

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!

The automated release is failing 🚨

🚨 The automated release from the 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.


No npm token specified.

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 πŸ“¦πŸš€

Timout On Activation

Describe the bug
Happens occasionally.

Error: waiting for selector `#new_conversations_create_session_form #conversations_create_session_form_password` failed: timeout 2000ms exceeded

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.