Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPORTANT] Pyarmor 9 Upgrade Notes #1958

Closed
jondy opened this issue Oct 18, 2024 · 0 comments
Closed

[IMPORTANT] Pyarmor 9 Upgrade Notes #1958

jondy opened this issue Oct 18, 2024 · 0 comments

Comments

@jondy
Copy link
Contributor

jondy commented Oct 18, 2024

Because Pyarmor License is paid once in Pyarmor 8, but online verification for using Pyarmor License in CI/CD pipeline will continue consuming a lot of Pyarmor Server resources.

So Pyarmor 9 has a big change about using Pyarmor in CI/CD pipeline:

  • Pyarmor Pro License couldn't be used in CI/CD pipeline since Pyarmor 9
  • Pyarmor CI License is right for CI/CD pipeline case
  • Pyarmor Basic still could be used in CI/CD pipeline, but it need request one extra CI regfile

In a short

If not use Pyarmor License in CI/CD pipeline, almost nothing changed
If not upgrade to Pyarmor 9, but still use Pyarmor 8, nothing changed
Pyarmor Pro License purchased after 2024-10-20 could not be used in CI/CD pipeline even use it with Pyarmor 8
Pyarmor CI License is paid each year, and couldn't be used in local machine

Fair use

Pyarmor Pro License still could be used in CI/CD pipeline for low volume, 100 runs per month


Upgrade Basic or Pro License to Pyarmor 9

  1. If Pyarmor License has been registered in this device

    • First upgrade to Pyarmor 9

          $ pip install -U pyarmor
    • When first time to obfuscate scripts, it will show hints

          $ pyarmor gen foo.py
      
          ...
          Pyarmor 9 has big change on CI/CD pipeline
          If not using Pyarmor License in CI/CD pipeline
          Press "c" to continue
          Otherwise press "h" to check Pyarmor 9.0 Upgrade Notes
      
          Continue (c), Help (h), Quit (q):
    • Just press c to continue, there is no prompt later

  2. If Pyarmor License isn't registered in this device

    • First use activation file to generate new registration file

          $ pip install -U pyarmor
      
          # Please replace XXX with real product name
          $ pyarmor reg -p XXX pyarmor-regcode-xxxx.txt
    • Save and backup new registration file pyarmor-regfile-xxxx.zip

    • Use this new regfile to register Pyarmor in other new device

          $ pyarmor reg pyarmor-regfile-xxxx.zip
          $ pyarmor -v

    If activation file is used too many times, please first install Pyarmor 8, then upgrade to Pyarmor 9

Upgrade Group License to Pyarmor 9

It need generate device regfile again with Pyarmor 9.0+

  • First upgrade to Pyarmor 9

        $ pip install -U pyarmor
  • Then generate device regfile as before.

    For example, generate device regfile pyarmor-device-regfile-6000.1.zip for device no. 1

        $ pyarmor reg -g 1 /path/to/pyarmor-regfile-6000.zip
  • Finally, use new one to register Pyarmor in offline device

        $ pyarmor reg pyarmor-device-regfile-6000.1.zip

Refer to
What need to do after upgrading Pyarmor
How to use Pyarmor in CI/CD pipeline

@jondy jondy pinned this issue Oct 19, 2024
@dashingsoft dashingsoft locked and limited conversation to collaborators Oct 19, 2024
@jondy jondy closed this as completed Nov 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant