This repository was archived by the owner on Sep 8, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfall_in.spec
More file actions
98 lines (90 loc) · 2.13 KB
/
Copy pathfall_in.spec
File metadata and controls
98 lines (90 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# -*- mode: python ; coding: utf-8 -*-
# PyInstaller spec for 헤쳐 모여! (Fall In!)
# Build: pyinstaller fall_in.spec
import sys
block_cipher = None
# Platform-specific icon
if sys.platform == "win32":
icon_file = "assets/fall_in_icon.ico"
elif sys.platform == "darwin":
icon_file = "assets/fall_in_icon.icns"
else:
icon_file = "assets/fall_in_icon.png"
a = Analysis(
["src/fall_in/main.py"],
pathex=[".", "src"],
binaries=[],
datas=[
("assets", "assets"), # All game assets
("data", "data"), # Game data (soldiers.json, etc.)
],
hiddenimports=[
"pygame",
"pygame.mixer",
"pygame.font",
"pygame.image",
"pygame.display",
"pygame._sdl2",
"pygame._sdl2.video",
"pygame.gfxdraw",
],
hookspath=[],
hooksconfig={},
runtime_hooks=["runtime_hook_production.py"],
excludes=[
"tkinter",
"unittest",
"email",
"html",
"http",
"xml",
"test",
],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name="fall-in",
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
console=False, # No terminal window
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=icon_file,
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=False,
upx_exclude=[],
name="fall-in",
)
# macOS: wrap COLLECT into .app bundle
if sys.platform == "darwin":
app = BUNDLE(
coll,
name="Fall In.app",
icon=icon_file,
bundle_identifier="com.bnbong.fall-in",
info_plist={
"NSHighResolutionCapable": True,
"LSMinimumSystemVersion": "10.13.0",
"CFBundleName": "헤쳐 모여!",
"CFBundleDisplayName": "헤쳐 모여! (Fall In!)",
},
)