Skip to content

Commit dcf3daa

Browse files
committed
feat: Add initial Jiyu_udp_attack.spec configuration file
1 parent 0bc19af commit dcf3daa

File tree

3 files changed

+65
-13
lines changed

3 files changed

+65
-13
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ MANIFEST
3030
# Usually these files are written by a python script from a template
3131
# before PyInstaller builds the exe, so as to inject date/other infos into it.
3232
*.manifest
33-
*.spec
33+
# *.spec
3434

3535
# Installer logs
3636
pip-log.txt

Jiyu_udp_attack.spec

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
4+
a = Analysis(
5+
['Jiyu_udp_attack\\__main__.py'],
6+
pathex=[],
7+
binaries=[],
8+
datas=[],
9+
hiddenimports=[],
10+
hookspath=[],
11+
hooksconfig={},
12+
runtime_hooks=[],
13+
excludes=[],
14+
noarchive=False,
15+
optimize=0,
16+
)
17+
pyz = PYZ(a.pure)
18+
19+
exe = EXE(
20+
pyz,
21+
a.scripts,
22+
a.binaries,
23+
a.datas,
24+
[],
25+
name='Jiyu_udp_attack',
26+
debug=False,
27+
bootloader_ignore_signals=False,
28+
strip=False,
29+
upx=True,
30+
upx_exclude=[],
31+
runtime_tmpdir=None,
32+
console=True,
33+
disable_windowed_traceback=False,
34+
argv_emulation=False,
35+
target_arch=None,
36+
codesign_identity=None,
37+
entitlements_file=None,
38+
uac_admin=True,
39+
icon='NONE',
40+
)

Jiyu_udp_attack/__main__.py

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,30 @@
1414

1515
from typing import Any, Optional, Sequence, cast
1616

17-
from sender import broadcast_packet
18-
from packet import (
19-
pkg_close_top_window,
20-
pkg_close_windows,
21-
pkg_message,
22-
pkg_shutdown,
23-
pkg_rename,
24-
pkg_website,
25-
pkg_execute,
26-
pkg_customize,
27-
)
28-
17+
try:
18+
from sender import broadcast_packet
19+
from packet import (
20+
pkg_close_top_window,
21+
pkg_close_windows,
22+
pkg_message,
23+
pkg_shutdown,
24+
pkg_rename,
25+
pkg_website,
26+
pkg_execute,
27+
pkg_customize,
28+
)
29+
except ImportError:
30+
from Jiyu_udp_attack.sender import broadcast_packet
31+
from Jiyu_udp_attack.packet import (
32+
pkg_close_top_window,
33+
pkg_close_windows,
34+
pkg_message,
35+
pkg_shutdown,
36+
pkg_rename,
37+
pkg_website,
38+
pkg_execute,
39+
pkg_customize,
40+
)
2941

3042
class ModeOptionalAction(argparse.Action):
3143
"""

0 commit comments

Comments
 (0)