-
Notifications
You must be signed in to change notification settings - Fork 2
/
zdkrimson.spec
72 lines (65 loc) · 1.97 KB
/
zdkrimson.spec
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
# -*- mode: python ; coding: utf-8 -*-
import sys
from PyInstaller.utils.hooks import collect_data_files
# Modify these paths as needed
source_folder = 'C:/Users/User/Documents/mt/Sublime Text/Projects/zdkrimson'
# static_folder = f'{source_folder}/static'
# source_folder = ''
a = Analysis(
['main.py'], # Replace with your main script
pathex=[source_folder],
binaries=[],
datas=[
(f'{source_folder}/favicon.ico', '.'),
(f'{source_folder}/help.css', 'static'),
(f'{source_folder}/help.html', 'static'),
(f'{source_folder}/help.js', 'static'),
(f'{source_folder}/index.css', 'static'),
(f'{source_folder}/index.html', 'static'),
(f'{source_folder}/index.js', 'static'),
(f'{source_folder}/instances.css', 'static'),
(f'{source_folder}/instances.html', 'static'),
(f'{source_folder}/instances.js', 'static'),
(f'{source_folder}/LICENSE', '.'),
# (f'{source_folder}/main.py', '.'),
# (f'{source_folder}/modelfetch.py', '.'),
(f'{source_folder}/settings.css', 'static'),
(f'{source_folder}/settings.html', 'static'),
(f'{source_folder}/settings.js', 'static'),
(f'{source_folder}/assets', 'assets'),
],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
cipher=None,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=None)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='zdkrimson',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False, # Disable UPX compression
console=True, # Run in console mode
cipher=None,
icon=f'{source_folder}/favicon.ico', # Path to icon file
hookspath=[],
hooksconfig={},
runtime_hooks=[],
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=False, # Disable UPX compression
cipher=None,
clean=True, # Clean the build directory
name='zdkrimson'
)