File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ Windows 下使用,`.sh` 的在 Linux,MacOS 等上面使用。他们都存放
2222
2323* [ pack-obfuscated-scripts.bat] ( pack-obfuscated-scripts.bat ) / [ pack-obfuscated-scripts.sh] ( pack-obfuscated-scripts.sh )
2424
25- 使用这个脚本模板通过第三方工具 (py2exe, py2app, cx_Freeze) 来打包加密的脚本。
25+ 使用这个脚本模板通过第三方工具 (PyInstaller, py2exe, py2app,
26+ cx_Freeze) 来打包加密的脚本。
2627
2728
2829除了这些脚本之外,这里还有一些真实的例子。现在打开一个命令窗口,按照下
@@ -44,7 +45,7 @@ Pyarmor 的安装路径是 `/path/to/pyarmor`
4445```
4546 cd /path/to/pyarmor
4647
47- # 使用 pyarmor 提供的命令 obfuscate 加密路径下 `examples/simple` 的所有脚本
48+ # 使用 obfuscate 加密路径 `examples/simple` 的下面的所有脚本
4849 pyarmor obfuscate --recursive examples/simple/queens.py
4950
5051 # 加密后的脚本存放在 `dist`
@@ -69,10 +70,10 @@ Pyarmor 的安装路径是 `/path/to/pyarmor`
6970```
7071 cd /path/to/pyarmor
7172
72- # 使用 pyarmor 提供的命令 obfuscate 去加密包,加密后的脚本存放在 `dist/mypkg`
73+ # 使用 obfuscate 去加密包,加密后的脚本存放在 `dist/mypkg`
7374 pyarmor obfuscate --output=dist/mypkg examples/testpkg/mypkg/__init__.py
7475
75- # 使用命令 license 生成一个有效期到 2019-01-01 的授权文件
76+ # 使用命令 licenses 生成一个有效期到 2019-01-01 的授权文件
7677 pyarmor licenses --expired 2019-01-01 mypkg2018
7778
7879 # 使用新的授权文件覆盖默认的授权文件
Original file line number Diff line number Diff line change @@ -194,6 +194,8 @@ must be written. For py2exe, here is an example script
194194` examples/py2exe/setup.py ` . It will pack the entry script ` hello.py `
195195and ` queens.py ` . To be sure it works
196196
197+ cd /path/to/pyarmor
198+
197199 # Install py2exe at first
198200 pip install py2exe
199201
@@ -202,11 +204,11 @@ and `queens.py`. To be sure it works
202204
203205Then run command ` pack ` to pack obfuscated scripts
204206
205- pyarmor pack --type py2exe py2exe/ hello.py
207+ pyarmor pack --type py2exe hello.py
206208
207209Run the final executeable file
208210
209- cd py2exe /dist
211+ cd . /dist/
210212 ./hello
211213
212214Check they're obfuscated
You can’t perform that action at this time.
0 commit comments