-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiscord-super-pal.spec
More file actions
83 lines (76 loc) · 1.94 KB
/
discord-super-pal.spec
File metadata and controls
83 lines (76 loc) · 1.94 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
# -*- mode: python ; coding: utf-8 -*-
"""
PyInstaller spec file for Discord Super Pal of the Week Bot.
This spec file can be used to build standalone executables for the bot.
Usage: pyinstaller discord-super-pal.spec
"""
import sys
from PyInstaller.utils.hooks import collect_all
# Determine platform-specific settings
if sys.platform == 'darwin':
platform_name = 'macos'
elif sys.platform == 'win32':
platform_name = 'windows'
else:
platform_name = 'linux'
# Collect all discord and aiohttp dependencies
discord_datas, discord_binaries, discord_hiddenimports = collect_all('discord')
aiohttp_datas, aiohttp_binaries, aiohttp_hiddenimports = collect_all('aiohttp')
a = Analysis(
['src/bot.py'],
pathex=['src'],
binaries=discord_binaries + aiohttp_binaries,
datas=discord_datas + aiohttp_datas,
hiddenimports=[
'discord',
'discord.ext.commands',
'discord.ext.tasks',
'discord.app_commands',
'openai',
'superpal.ai',
'superpal.env',
'superpal.static',
'aiohttp',
'async_timeout',
'multidict',
'yarl',
'typing_extensions',
] + discord_hiddenimports + aiohttp_hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
'matplotlib',
'numpy',
'pandas',
'scipy',
'PIL',
'tkinter',
],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=None,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=None)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name=f'discord-super-pal-{platform_name}',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)