github dashingsoft/pyarmor v5.7.0
Release 5.7.0

latest releases: v9.0.5, v9.0.4, v9.0...
5 years ago

There are 2 major changes in this version:

  1. The runtime files are saved in the separated folder pytransform as package:
    dist/
        obf_foo.py

        pytransform/
            __init__.py
            license.lic
            pytransform.key
            ...

Upgrade notes:

  • If you have generated new runtime file license.lic, it should be copied to
    dist/pytransform other than dist/

  • If you'd like to save the runtime files in the same folder with obfuscated
    scripts as before, obfuscating the scripts with option package-runtime like
    this:

    pyarmor obfuscate --package-runtime=0 foo.py
    pyarmor build --package-runtime=0
  1. The bootstrap code must be in the obfuscated scripts, and it must be entry
    script as obfuscating.

Upgrade notes:

  • If you have inserted bootstrap code into the obfuscated script dist/foo.py
    which is obfuscated but not as entry script manually. Do it by this command
    after v5.7.0:
    pyarmor obfuscate --no-runtime --exact foo.py
  • If you need insert bootstrap code into plain script, first obfuscate an empty
    script like this:
    echo "" > pytransform_bootstrap.py
    pyarmor obfuscate --no-runtime --exact pytransform_bootstrap.py

Then import pytransform_bootstrap in the plain script.

Other changes:

  • Change default value of project attribute package_runtime from 0 to 1
  • Change default value of option --package-runtime from 0 to 1 in command obfuscate
  • Add option --no-runtime for command obfuscate
  • Add optioin --disable-restrict-mode for command licenses

Don't miss a new pyarmor release

NewReleases is sending notifications on new releases.