There are 2 major changes in this version:
- 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 thandist/
-
If you'd like to save the runtime files in the same folder with obfuscated
scripts as before, obfuscating the scripts with optionpackage-runtime
like
this:
pyarmor obfuscate --package-runtime=0 foo.py
pyarmor build --package-runtime=0
- 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 commandobfuscate
- Add option
--no-runtime
for commandobfuscate
- Add optioin
--disable-restrict-mode
for commandlicenses