Skip to content

Commit 4947545

Browse files
committed
Add fix pack graph
1 parent 2dafbc0 commit 4947545

File tree

3 files changed

+64
-9
lines changed

3 files changed

+64
-9
lines changed

pyarmor/learn/en/index.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ How the documentation is organized
1212
- Usage
1313
- Specification
1414
- Instances
15-
- How to do
16-
- Faq
15+
- How to
1716

18-
目录
19-
====
17+
Table of content
18+
================
2019

2120
.. toctree::
2221
:caption: Learning Pyarmor

pyarmor/learn/zh/how-to.rst

Lines changed: 60 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
==========
2-
怎么去做
3-
==========
1+
==============
2+
如何解决问题
3+
==============
44

55
.. contents:: 目录
66
:depth: 2
@@ -49,3 +49,60 @@
4949

5050
如何解决运行打包的可执行文件出现的问题
5151
--------------------------------------
52+
53+
.. graphviz::
54+
:caption: 打包脚本运行问题的解决方案
55+
:align: center
56+
:name: graph-run-packed-script-issue
57+
58+
digraph G {
59+
node [shape=box, style=rounded]
60+
61+
start [shape="doublecircle", label="",
62+
style="filled", fillcolor="wheat"]
63+
64+
subgraph P0 {
65+
rankdir="TB"
66+
style="setlinewidth(0)"
67+
68+
s2 [label="在构建设备上,使用没有加密的脚本\n直接使用 PyInstaller 进行打包\n在客户设备上面运行打包好的可执行文件\n是否出错?"]
69+
s3 [label="在构建设备上面不要使用 --pack 选项\n而是仅仅加密脚本\n然后在客户设备上面直接运行\n是否依旧出错?"]
70+
s4 [label="在构建设备上面尝试去掉一些加密选项\n使用最少的加密选项对脚本进行打包\n然后在客户设备运行\n是否出错?"]
71+
s5 [label="如果脚本中使用了第三方库\n尝试加密打包一个简单脚本,\n然后在客户设备运行,\n是否出错?"]
72+
s6 [
73+
style="filled,rounded",
74+
fillcolor="burlywood",
75+
href="https://github.com/dashingsoft/pyarmor/issues"
76+
label="提交错误报告\n使用的命令行选项\n以及可以重现问题的简单脚本"]
77+
78+
s2 -> s3 -> s4 -> s5 -> s6
79+
}
80+
81+
subgraph P2 {
82+
node [
83+
style="filled,rounded",
84+
fillcolor="burlywood",
85+
]
86+
n1 [
87+
href="https://pyinstaller.org/en/stable/usage.html"
88+
label="请参阅 PyInstaller 文档\n确保没有加密的脚本能够正确打包"]
89+
n2 [
90+
href="#run-obfuscated-script-issue"
91+
label="请使用加密脚本运行错误的解决方案"]
92+
n3 [
93+
href="https://pyarmor.readthedocs.io/zh/latest/how-to/third-party.html"
94+
label="查看第三方库是否能够兼容 Pyarmro+PyInstaller"]
95+
y1 [
96+
href="https://pyarmor.readthedocs.io/zh/latest/topic/repack.html"
97+
label="参考关于打包的详细说明\n使用没有出错的选项进行打包"]
98+
}
99+
100+
start -> s2
101+
102+
edge [tailport=se]
103+
104+
s2 -> n1
105+
s3 -> n2
106+
s4 -> y1
107+
s5 -> n3
108+
}

pyarmor/learn/zh/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
- 使用方法
1313
- 工作原理
1414
- 详细示例
15-
- 怎么去做
16-
- 疑难解惑
15+
- 解决问题
1716

1817
目录
1918
====

0 commit comments

Comments
 (0)