We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40891da commit 45b3801Copy full SHA for 45b3801
1 file changed
Secrandom.spec
@@ -47,14 +47,22 @@ a = Analysis(
47
48
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
49
50
+import sys
51
+
52
+# 根据平台设置不同的EXE名称
53
+exename = "SecRandom"
54
+if sys.platform == "linux":
55
+ # 在Linux上,EXE会创建一个无扩展名的文件,为避免与COLLECT目录冲突,添加.bin扩展名
56
+ exename = "SecRandom.bin"
57
58
exe = EXE(
59
pyz,
60
a.scripts,
61
a.binaries,
62
a.zipfiles,
63
a.datas,
64
[],
- name="SecRandom",
65
+ name=exename,
66
debug=False,
67
bootloader_ignore_signals=False,
68
strip=False,
0 commit comments