可否以更友好的界面来显示许可证错误信息? #2066
Replies: 8 comments 4 replies
-
在线文档搜索 |
Beta Was this translation helpful? Give feedback.
-
请参考最新的文档,刚刚增加了示例代码获取设备ID |
Beta Was this translation helpful? Give feedback.
-
bootstrap 提供了在加密脚本没有运行之前,运行不加密的代码的一种方式,加密后的代码没有 key 是无法运行的,这就是 Pyarmor 的功能特点 |
Beta Was this translation helpful? Give feedback.
-
错误信息可以定制的,支持多语言,请参阅文档 |
Beta Was this translation helpful? Give feedback.
-
关于缺少 key 文件这种情况,可能无法定制,需要用户使用 bootstrap 进行友好提示 |
Beta Was this translation helpful? Give feedback.
-
明白了, 除了缺少key这种情况之外, 其他都是可以定制的 |
Beta Was this translation helpful? Give feedback.
-
或者直接修改加密后的脚本
这还需要禁用主脚本的约束模式以允许修改加密脚本 |
Beta Was this translation helpful? Give feedback.
-
更好的解决方案是在运行辅助包 pytransform_xxxxx/init.py 检查许可证是否存在 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
当前用户如果使用--outer这样的选项来管理许可情况时,用户在打开许可信息不正确的加密程序时,会弹出一个异常提示窗口:提示RuntimeError: missing license key to run the script,这对于用户来说太不友好了,而且用户要提供用户的设备信息给开发者,开发者才能够根据用户的设备信息来生成许可证文件。这个界面什么设备信息都不提供,开发者咋生成许可证文件?
Beta Was this translation helpful? Give feedback.
All reactions