Skip to content

Commit 3d68a7a

Browse files
Update build-linux.spec
With this "pyinstaller" will create only one fie i.e.... executable file.
1 parent 1ca9f26 commit 3d68a7a

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

build-linux.spec

+23-15
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
1-
# -*- mode: python -*-
1+
# -*- mode: python ; coding: utf-8 -*-
22

33
block_cipher = None
4-
54
added_files = [
65
('./gui', 'gui'),
76
]
87

98
a = Analysis(['./src/index.py'],
109
pathex=['./dist'],
11-
binaries=None,
10+
binaries=[],
1211
datas=added_files,
1312
hiddenimports=['clr'],
13+
hookspath=[],
14+
hooksconfig={},
15+
runtime_hooks=[],
1416
excludes=[],
1517
win_no_prefer_redirects=False,
1618
win_private_assemblies=False,
19+
cipher=block_cipher,
20+
noarchive=False)
21+
pyz = PYZ(a.pure, a.zipped_data,
1722
cipher=block_cipher)
18-
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
23+
1924
exe = EXE(pyz,
2025
a.scripts,
21-
exclude_binaries=True,
22-
name='pywebview-react-app',
26+
a.binaries,
27+
a.zipfiles,
28+
a.datas,
29+
[],
30+
name='pywebview-react',
2331
debug=False,
32+
bootloader_ignore_signals=False,
2433
strip=True,
25-
#icon='./src/assets/\logo.ico',
2634
upx=True,
27-
console=False ) # set this to see error output of the executable
28-
coll = COLLECT(exe,
29-
a.binaries,
30-
a.zipfiles,
31-
a.datas,
32-
strip=False,
33-
upx=False,
34-
name='pywebview-react-app')
35+
upx_exclude=[],
36+
#icon='./src/assets/logo.ico',
37+
runtime_tmpdir=None,
38+
console=False,
39+
disable_windowed_traceback=False,
40+
target_arch=None,
41+
codesign_identity=None,
42+
entitlements_file=None )

0 commit comments

Comments
 (0)