Skip to content

Commit

Permalink
fix: 🐛 with_license option not work in encrypt command
Browse files Browse the repository at this point in the history
Closes: #30
  • Loading branch information
ZhaoQi99 committed Jan 5, 2024
1 parent 4b87b3f commit 75aae54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyencrypt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def encrypt_command(ctx, pathname, replace, key, with_license, mac, ipv4, before
raise Exception(f'{path} is not a valid path.')

cipher_key, d, n = encrypt_key(key.encode()) # 需要放进导入器中
generate_so_file(cipher_key, d, n)
generate_so_file(cipher_key, d, n, license=with_license)
if with_license is True:
generate_license_file(key, Path(os.getcwd()), after, before, mac, ipv4)
click.echo(FINISH_GENERATE_LICENSE_MSG)
Expand Down

0 comments on commit 75aae54

Please sign in to comment.